[Jifty-commit] r3124 - in jifty/trunk/examples/Doxory: . etc
lib/Doxory lib/Doxory/Model var
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Apr 13 19:55:39 EDT 2007
Author: audreyt
Date: Fri Apr 13 19:55:39 2007
New Revision: 3124
Added:
jifty/trunk/examples/Doxory/share/po/zh_cn.po
jifty/trunk/examples/Doxory/share/po/zh_tw.po
Removed:
jifty/trunk/examples/Doxory/var/jifty-server.pid
Modified:
jifty/trunk/examples/Doxory/doxory
jifty/trunk/examples/Doxory/etc/config.yml
jifty/trunk/examples/Doxory/lib/Doxory/Dispatcher.pm
jifty/trunk/examples/Doxory/lib/Doxory/Model/Choice.pm
jifty/trunk/examples/Doxory/lib/Doxory/Model/Vote.pm
jifty/trunk/examples/Doxory/lib/Doxory/View.pm
Log:
* Doxory L10N.
Modified: jifty/trunk/examples/Doxory/doxory
==============================================================================
Binary files. No diff available.
Modified: jifty/trunk/examples/Doxory/etc/config.yml
==============================================================================
--- jifty/trunk/examples/Doxory/etc/config.yml (original)
+++ jifty/trunk/examples/Doxory/etc/config.yml Fri Apr 13 19:55:39 2007
@@ -17,7 +17,6 @@
DevelMode: 1
L10N:
PoDir: share/po
- Lang: en
LogLevel: INFO
Mailer: Sendmail
MailerArgs: []
Modified: jifty/trunk/examples/Doxory/lib/Doxory/Dispatcher.pm
==============================================================================
--- jifty/trunk/examples/Doxory/lib/Doxory/Dispatcher.pm (original)
+++ jifty/trunk/examples/Doxory/lib/Doxory/Dispatcher.pm Fri Apr 13 19:55:39 2007
@@ -6,10 +6,10 @@
before '*' => run {
if (Jifty->web->current_user->id) {
my $top = Jifty->web->navigation;
- $top->child( 'Pick!' => url => '/pick' );
- $top->child( 'Choices' => url => '/choices' );
+ $top->child( _('Pick!') => url => '/pick' );
+ $top->child( _('Choices') => url => '/choices' );
}
- elsif ($1 !~ /^login|^signup|^__jifty/) {
+ elsif ($1 !~ /^login|^signup/) {
tangent 'login';
}
};
Modified: jifty/trunk/examples/Doxory/lib/Doxory/Model/Choice.pm
==============================================================================
--- jifty/trunk/examples/Doxory/lib/Doxory/Model/Choice.pm (original)
+++ jifty/trunk/examples/Doxory/lib/Doxory/Model/Choice.pm Fri Apr 13 19:55:39 2007
@@ -6,21 +6,21 @@
use Doxory::Record schema {
column name =>
- label is 'I need help deciding...',
+ label is _('I need help deciding...'),
render as 'textarea';
column a =>
- label is 'On the one hand',
+ label is _('On the one hand'),
render as 'textarea',
is mandatory;
column b =>
- label is 'On the other hand',
+ label is _('On the other hand'),
render as 'textarea',
is mandatory;
column asked_by =>
- label is 'Asked by',
+ label is _('Asked by'),
default is defer { Jifty->web->current_user->id },
references Doxory::Model::User;
};
Modified: jifty/trunk/examples/Doxory/lib/Doxory/Model/Vote.pm
==============================================================================
--- jifty/trunk/examples/Doxory/lib/Doxory/Model/Vote.pm (original)
+++ jifty/trunk/examples/Doxory/lib/Doxory/Model/Vote.pm Fri Apr 13 19:55:39 2007
@@ -15,7 +15,7 @@
valid are qw( a b skip );
column comments =>
- label is 'Comments?',
+ label is _('Comments?'),
render as 'textarea';
};
Modified: jifty/trunk/examples/Doxory/lib/Doxory/View.pm
==============================================================================
--- jifty/trunk/examples/Doxory/lib/Doxory/View.pm (original)
+++ jifty/trunk/examples/Doxory/lib/Doxory/View.pm Fri Apr 13 19:55:39 2007
@@ -5,7 +5,7 @@
use Jifty::View::Declare -base;
template '/' => page {
- h1 { 'Ask a question!' }
+ h1 { _('Ask a question!') }
div { show 'new_choice' }
};
@@ -13,7 +13,7 @@
form {
my $action = new_action( class => 'CreateChoice' );
render_action( $action => ['name', 'a', 'b'] );
- form_submit( label => 'Ask the crowd!' );
+ form_submit( label => _('Ask the crowd!') );
}
};
Added: jifty/trunk/examples/Doxory/share/po/zh_cn.po
==============================================================================
--- (empty file)
+++ jifty/trunk/examples/Doxory/share/po/zh_cn.po Fri Apr 13 19:55:39 2007
@@ -0,0 +1,55 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: lib/Doxory/View.pm:8
+msgid "Ask a question!"
+msgstr "我有问题!"
+
+#: lib/Doxory/View.pm:16
+msgid "Ask the crowd!"
+msgstr "听听乡民怎么说!"
+
+#: lib/Doxory/Model/Choice.pm:23
+msgid "Asked by"
+msgstr "提问人"
+
+#: lib/Doxory/Dispatcher.pm:10
+msgid "Choices"
+msgstr "开票纪录"
+
+#: lib/Doxory/Model/Vote.pm:18
+msgid "Comments?"
+msgstr "有何指教?"
+
+#: lib/Doxory/Model/Choice.pm:9
+msgid "I need help deciding..."
+msgstr "帮帮我, 该怎么办..."
+
+#: lib/Doxory/Model/Choice.pm:13
+msgid "On the one hand"
+msgstr "我应该...?"
+
+#: lib/Doxory/Model/Choice.pm:18
+msgid "On the other hand"
+msgstr "或者...?"
+
+#: lib/Doxory/Dispatcher.pm:9
+msgid "Pick!"
+msgstr "投票!"
+
+msgid "Logout"
+msgstr "注销"
Added: jifty/trunk/examples/Doxory/share/po/zh_tw.po
==============================================================================
--- (empty file)
+++ jifty/trunk/examples/Doxory/share/po/zh_tw.po Fri Apr 13 19:55:39 2007
@@ -0,0 +1,55 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: lib/Doxory/View.pm:8
+msgid "Ask a question!"
+msgstr "我有問題!"
+
+#: lib/Doxory/View.pm:16
+msgid "Ask the crowd!"
+msgstr "聽聽鄉民怎麼說!"
+
+#: lib/Doxory/Model/Choice.pm:23
+msgid "Asked by"
+msgstr "提問人"
+
+#: lib/Doxory/Dispatcher.pm:10
+msgid "Choices"
+msgstr "開票紀錄"
+
+#: lib/Doxory/Model/Vote.pm:18
+msgid "Comments?"
+msgstr "有何指教?"
+
+#: lib/Doxory/Model/Choice.pm:9
+msgid "I need help deciding..."
+msgstr "幫幫我, 該怎麼辦..."
+
+#: lib/Doxory/Model/Choice.pm:13
+msgid "On the one hand"
+msgstr "我應該...?"
+
+#: lib/Doxory/Model/Choice.pm:18
+msgid "On the other hand"
+msgstr "或者...?"
+
+#: lib/Doxory/Dispatcher.pm:9
+msgid "Pick!"
+msgstr "投票!"
+
+msgid "Logout"
+msgstr "登出"
More information about the Jifty-commit
mailing list