[Jifty-commit] r3104 - in jifty/trunk: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Apr 6 12:09:18 EDT 2007


Author: jesse
Date: Fri Apr  6 12:09:18 2007
New Revision: 3104

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/doc/talks/present-slides
   jifty/trunk/doc/talks/yapc.asia.2007.txt

Log:
 r54443 at dhcp207:  jesse | 2007-04-04 23:33:32 +0900
 * now with support for I18N (japanese)


Modified: jifty/trunk/doc/talks/present-slides
==============================================================================
--- jifty/trunk/doc/talks/present-slides	(original)
+++ jifty/trunk/doc/talks/present-slides	Fri Apr  6 12:09:18 2007
@@ -20,6 +20,8 @@
 my $cmd = q{ osascript -e ' tell application "Terminal"' -e ' do script "tail -f /tmp/next_slide"' -e 'end tell' };
 system($cmd);
 while ( $counter <= $#SLIDES ) {
+    my $translation = '';
+
     my $mode = 'text';
     my ( $cols, $rows, undef, undef ) = GetTerminalSize();
     my $slide = $SLIDES[$counter];
@@ -48,6 +50,9 @@
 	print "$title\n";
 	}
 
+    if ($slide =~ s/#\s*loc-ja\s*(.*?)$//sm) {
+	$translation = $1;
+    }
     if ($slide =~ s/#\s*`(.*?)`//m) {
 	my $cmd = $1;
 	if(!$slides_played->{$counter}) {
@@ -88,6 +93,10 @@
 
     $console->Cursor( 0, ( $rows - 1 ) );
     print colored("$counter/" . $#SLIDES, "bold white");
+    if ($translation) {
+    	$console->Cursor( 10 , ( $rows - 1 ) );
+    	print colored($translation, "bold yellow on black");
+   }
     ReadMode 4;
     my $key = ReadKey(0);
     ReadMode 0;

Modified: jifty/trunk/doc/talks/yapc.asia.2007.txt
==============================================================================
--- jifty/trunk/doc/talks/yapc.asia.2007.txt	(original)
+++ jifty/trunk/doc/talks/yapc.asia.2007.txt	Fri Apr  6 12:09:18 2007
@@ -3,6 +3,7 @@
 ---
 #title A bit about DSLs
 DSLs are little languages for specific programming tasks
+# loc-ja This is a test
 ---
 DSLs are easier to read
 ---
@@ -44,6 +45,8 @@
 ---
 (but it does take more work in Perl)
 ---
+How did I get here?
+---
 #title How did I get here?
 Airplane
 ---
@@ -75,6 +78,7 @@
 (It does a lot more than Rails migrations)
 ---
 One for web templating
+# loc-ja じゃあいったいどうして?!
 ---
 (Yes, another web templating system)
 ---


More information about the Jifty-commit mailing list