[Jifty-commit] r2770 - in jifty/branches/template-declare: . lib/Jifty/Script lib/Jifty/Web share/po share/web/templates/__jifty share/web/templates/_elements

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Feb 9 00:13:49 EST 2007


Author: jesse
Date: Fri Feb  9 00:13:45 2007
New Revision: 2770

Modified:
   jifty/branches/template-declare/   (props changed)
   jifty/branches/template-declare/lib/Jifty/Script.pm
   jifty/branches/template-declare/lib/Jifty/Script/FastCGI.pm
   jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm
   jifty/branches/template-declare/share/po/en.po
   jifty/branches/template-declare/share/po/fr.po
   jifty/branches/template-declare/share/po/ja.po
   jifty/branches/template-declare/share/po/zh_cn.po
   jifty/branches/template-declare/share/po/zh_tw.po
   jifty/branches/template-declare/share/web/templates/__jifty/halo
   jifty/branches/template-declare/share/web/templates/_elements/nav

Log:
 r21871 at hualien (orig r2762):  audreyt | 2007-02-08 02:36:21 -0500
 * I18N and zh-* L10N for menu and halo.
 r21874 at hualien (orig r2765):  audreyt | 2007-02-08 04:24:55 -0500
 * Jifty::Script - Assume "jifty fastcgi" when we are running under cgi.
 r21901 at hualien (orig r2769):  jesse | 2007-02-09 00:04:20 -0500
  r21899 at hualien:  jesse | 2007-02-09 00:02:01 -0500
  * Added the ability to force arguments and path when rengering a region. This lets developers force override something passed in via ajax or a "sticky" value from a previous request.
 


Modified: jifty/branches/template-declare/lib/Jifty/Script.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Script.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Script.pm	Fri Feb  9 00:13:45 2007
@@ -5,9 +5,13 @@
 =head2 prepare
 
 C<prepare> figures out which command to run. If the user wants
-C<--help> give them help. If they have no command on the commandline,
-but a JIFTY_COMMAND environment variable, try that. If they have
-neither, shows the help. Otherwise, let App::CLI figure it out.
+C<--help> give them help.
+
+In the normal case, let App::CLI figure out the commandline.
+If they have no command on the commandline, but a JIFTY_COMMAND
+environment variable, try that.  Otherwise, if the GATEWAY_INTERFACE
+environment variable is set, assume we are running under CGI with the
+C<fastcgi> command.  If all fails, shows the help.
 
 =cut
 
@@ -16,11 +20,17 @@
     if ($ARGV[0] =~ /--?h(elp?)/i) {
         shift @ARGV; #discard the --help
         unshift @ARGV, 'help';
-    } elsif (!$ARGV[0] and $ENV{'JIFTY_COMMAND'}) {
-        my $cmd = $ENV{'JIFTY_COMMAND'};
-        unshift @ARGV, $cmd;
-    } elsif (! @ARGV) {
-        unshift @ARGV, 'help';
+    }
+    elsif (!@ARGV) {
+        if ( my $cmd = $ENV{'JIFTY_COMMAND'} ) {
+            unshift @ARGV, $cmd;
+        }
+        elsif ( $ENV{GATEWAY_INTERFACE} ) {
+            unshift @ARGV, 'fastcgi';
+        }
+        else {
+            unshift @ARGV, 'help';
+        }
     }
     return $self->SUPER::prepare(@_);
 }

Modified: jifty/branches/template-declare/lib/Jifty/Script/FastCGI.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Script/FastCGI.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Script/FastCGI.pm	Fri Feb  9 00:13:45 2007
@@ -19,13 +19,12 @@
 new world-changing application is generating, you'll need something a bit heavier-duty
 than the pure-perl Jifty standalone server.  C<FastCGI> is what you're looking for.
 
-Because Apache's FastCGI dispatcher can't pass commandline flags to your script, you'll need
-to call jifty a bit differently:
-
+ # These two lines are FastCGI-specific; skip them to run in vanilla CGI mode
  AddHandler fastcgi-script fcgi
+ FastCgiServer /path/to/your/jifty/app/bin/jifty
+
  DocumentRoot /path/to/your/jifty/app/share/web/templates
- FastCgiServer /path/to/your/jifty/app/bin/jifty -initial-env JIFTY_COMMAND=fastcgi
- ScriptAlias /  /path/to/your/jifty/app/bin/jifty/
+ ScriptAlias / /path/to/your/jifty/app/bin/jifty/
 
 For B<lighttpd> (L<http://www.lighttpd.net/>), use this setting:
 

Modified: jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm	Fri Feb  9 00:13:45 2007
@@ -15,7 +15,7 @@
 =cut
 
 use base qw/Jifty::Object Class::Accessor::Fast/;
-__PACKAGE__->mk_accessors(qw(name default_path default_arguments qualified_name parent region_wrapper));
+__PACKAGE__->mk_accessors(qw(name force_path force_arguments default_path default_arguments qualified_name parent region_wrapper));
 use Jifty::JSON;
 
 =head2 new PARAMHASH
@@ -40,6 +40,15 @@
 Specifies an optional set of parameter defaults.  These should all be
 simple scalars, as they might be passed across HTTP if AJAX is used.
 
+=item force_arguments (optional)
+
+Specifies an optional set of parameter values. They will override anything
+sent by the user or set via AJAX.
+
+=item force_path (optional)
+
+A fixed path to the fragment that this page region contains.  Overrides anything set by the user.
+
 =item parent (optional)
 
 The parent L<Jifty::Web::PageRegion> that this region is enclosed in.
@@ -50,6 +59,9 @@
 HTML region preamble that makes Javascript aware of its presence.
 Defaults to true.
 
+
+=item
+
 =back
 
 =cut
@@ -63,6 +75,8 @@
                 path => "/__jifty/empty",
                 defaults => {},
                 parent => undef,
+                force_arguments => {},
+                force_path => undef,
                 region_wrapper => 1,
                 @_
                );
@@ -84,6 +98,8 @@
     $self->qualified_name(Jifty->web->qualified_region($self));
     $self->default_path($args{path});
     $self->default_arguments($args{defaults});
+    $self->force_arguments($args{force_arguments});
+    $self->force_path($args{force_path});
     $self->arguments({});
     $self->parent($args{parent} || Jifty->web->current_region);
     $self->region_wrapper($args{region_wrapper});
@@ -158,7 +174,7 @@
     my $self = shift;
     my $name = shift;
     $self->{arguments}{$name} = shift if @_;
-    return $self->{arguments}{$name} || $self->default_argument($name);
+    return $self->force_arguments->{$name}||$self->{arguments}{$name} || $self->default_argument($name);
 }
 
 =head2 arguments [HASHREF]
@@ -171,7 +187,7 @@
 sub arguments {
     my $self = shift;
     $self->{arguments} = shift if @_;
-    return { %{$self->{default_arguments}}, %{$self->{arguments}}};
+    return { %{$self->{default_arguments}}, %{$self->{arguments}}, %{$self->force_arguments}};
 }
 
 =head2 enter
@@ -179,7 +195,7 @@
 Enters the region; this sets the qualified name based on
 L<Jifty::Web/qualified_region>, and uses that to pull runtime values
 for the L</path> and L</argument>s from the
-L<Jifty::Request/state_variables>.
+L<Jifty::Request/state_variables> before overriding them with the "force" versions.
 
 =cut
 
@@ -204,6 +220,12 @@
         # We should always inherit the state variables from the uplevel request.
         Jifty->web->set_variable($key => $value);
     }
+
+    for my $argument (keys %{$self->force_arguments}) {
+            $self->argument($argument => $self->force_arguments->{$argument});
+    }
+
+    $self->path($self->force_path) if ($self->force_path);
 }
 
 =head2 exit 

Modified: jifty/branches/template-declare/share/po/en.po
==============================================================================
--- jifty/branches/template-declare/share/po/en.po	(original)
+++ jifty/branches/template-declare/share/po/en.po	Fri Feb  9 00:13:45 2007
@@ -94,7 +94,7 @@
 msgid "(any)"
 msgstr ""
 
-#: lib/Jifty/Web/Form/Field.pm:549
+#: lib/Jifty/Web/Form/.Field.pm.swp:44 lib/Jifty/Web/Form/Field.pm:549
 msgid "@{[$self->current_value]}"
 msgstr ""
 
@@ -102,6 +102,10 @@
 msgid "Actions"
 msgstr ""
 
+#: share/web/templates/_elements/nav:5
+msgid "Administration"
+msgstr ""
+
 #: share/web/templates/_elements/wrapper:11
 msgid "Administration mode is enabled."
 msgstr ""
@@ -126,6 +130,10 @@
 msgid "Back to the application"
 msgstr ""
 
+#: share/web/templates/__jifty/halo:117
+msgid "Bindings"
+msgstr ""
+
 #: share/web/templates/helpers/calendar.html:4
 #. (_ &><body class="calpopup"><a href="#" onclick="window.close()
 msgid "Calendar"
@@ -135,6 +143,10 @@
 msgid "Cancel"
 msgstr ""
 
+#: share/web/templates/__jifty/halo:81
+msgid "Children"
+msgstr ""
+
 #: share/web/templates/helpers/calendar.html:4
 msgid "Close window"
 msgstr ""
@@ -172,7 +184,7 @@
 msgid "Done?"
 msgstr ""
 
-#: share/web/templates/__jifty/admin/fragments/list/view:40
+#: share/web/templates/__jifty/admin/fragments/list/view:40 share/web/templates/__jifty/halo:20
 msgid "Edit"
 msgstr ""
 
@@ -190,6 +202,10 @@
 msgid "Hiya, %1."
 msgstr ""
 
+#: share/web/templates/_elements/nav:3
+msgid "Home"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/index.html:1
 msgid "Jifty Administrative Console"
 msgstr ""
@@ -235,7 +251,7 @@
 msgid "No items found"
 msgstr ""
 
-#: lib/Jifty/Web.pm:299
+#: lib/Jifty/Web.pm:300
 msgid "No request to handle"
 msgstr ""
 
@@ -243,12 +259,24 @@
 msgid "Online Documentation"
 msgstr ""
 
+#: share/web/templates/_elements/nav:6
+msgid "Online docs"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/fragments/list/list:80
 #. ($page, $collection->pager->last_page)
 msgid "Page %1 of %2"
 msgstr ""
 
-#: lib/Jifty/Record.pm:240 lib/Jifty/Record.pm:319 lib/Jifty/Record.pm:60
+#: share/web/templates/__jifty/halo:1
+msgid "Page info"
+msgstr ""
+
+#: share/web/templates/__jifty/halo:72
+msgid "Parent"
+msgstr ""
+
+#: lib/Jifty/Record.pm:264 lib/Jifty/Record.pm:343 lib/Jifty/Record.pm:68
 msgid "Permission denied"
 msgstr ""
 
@@ -256,6 +284,11 @@
 msgid "Previous Page"
 msgstr ""
 
+#: share/web/templates/__jifty/halo:69
+#. ($frame->{'render_time'})
+msgid "Rendered in %1s"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/action/dhandler:20
 msgid "Run the action"
 msgstr ""
@@ -296,7 +329,7 @@
 msgid "The passwords you typed didn't match each other"
 msgstr ""
 
-#: lib/Jifty/Web.pm:362
+#: lib/Jifty/Web.pm:363
 msgid "There was an error completing the request.  Please try again later."
 msgstr ""
 
@@ -320,6 +353,10 @@
 msgid "Updated"
 msgstr ""
 
+#: share/web/templates/__jifty/halo:93
+msgid "Variables"
+msgstr ""
+
 #: share/web/templates/index.html:1
 msgid "Welcome to your new Jifty application"
 msgstr ""
@@ -348,3 +385,11 @@
 #: share/web/templates/__jifty/admin/fragments/list/header:41
 msgid "desc"
 msgstr ""
+
+#: lib/Jifty/Manual/PageRegions.pod:188
+msgid "text of the link"
+msgstr ""
+
+#: lib/Jifty/Manual/PageRegions.pod:225
+msgid "text of the link that hides"
+msgstr ""

Modified: jifty/branches/template-declare/share/po/fr.po
==============================================================================
--- jifty/branches/template-declare/share/po/fr.po	(original)
+++ jifty/branches/template-declare/share/po/fr.po	Fri Feb  9 00:13:45 2007
@@ -94,7 +94,7 @@
 msgid "(any)"
 msgstr ""
 
-#: lib/Jifty/Web/Form/Field.pm:549
+#: lib/Jifty/Web/Form/.Field.pm.swp:44 lib/Jifty/Web/Form/Field.pm:549
 msgid "@{[$self->current_value]}"
 msgstr ""
 
@@ -102,6 +102,10 @@
 msgid "Actions"
 msgstr ""
 
+#: share/web/templates/_elements/nav:5
+msgid "Administration"
+msgstr ""
+
 #: share/web/templates/_elements/wrapper:11
 msgid "Administration mode is enabled."
 msgstr "Mode d'administration activé."
@@ -126,6 +130,10 @@
 msgid "Back to the application"
 msgstr "Retour à l'application"
 
+#: share/web/templates/__jifty/halo:117
+msgid "Bindings"
+msgstr ""
+
 #: share/web/templates/helpers/calendar.html:4
 #. (_ &><body class="calpopup"><a href="#" onclick="window.close()
 msgid "Calendar"
@@ -135,6 +143,10 @@
 msgid "Cancel"
 msgstr "Annuler"
 
+#: share/web/templates/__jifty/halo:81
+msgid "Children"
+msgstr ""
+
 #: share/web/templates/helpers/calendar.html:4
 msgid "Close window"
 msgstr "Fermer la fenêtre"
@@ -172,7 +184,7 @@
 msgid "Done?"
 msgstr ""
 
-#: share/web/templates/__jifty/admin/fragments/list/view:40
+#: share/web/templates/__jifty/admin/fragments/list/view:40 share/web/templates/__jifty/halo:20
 msgid "Edit"
 msgstr "Editer"
 
@@ -190,6 +202,10 @@
 msgid "Hiya, %1."
 msgstr "Bonjour, %1"
 
+#: share/web/templates/_elements/nav:3
+msgid "Home"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/index.html:1
 msgid "Jifty Administrative Console"
 msgstr ""
@@ -235,7 +251,7 @@
 msgid "No items found"
 msgstr "Aucun enregistrement"
 
-#: lib/Jifty/Web.pm:299
+#: lib/Jifty/Web.pm:300
 msgid "No request to handle"
 msgstr "Aucune requête à traiter"
 
@@ -243,12 +259,24 @@
 msgid "Online Documentation"
 msgstr "Documentation en ligne"
 
+#: share/web/templates/_elements/nav:6
+msgid "Online docs"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/fragments/list/list:80
 #. ($page, $collection->pager->last_page)
 msgid "Page %1 of %2"
 msgstr "Page %1 / %2"
 
-#: lib/Jifty/Record.pm:240 lib/Jifty/Record.pm:319 lib/Jifty/Record.pm:60
+#: share/web/templates/__jifty/halo:1
+msgid "Page info"
+msgstr ""
+
+#: share/web/templates/__jifty/halo:72
+msgid "Parent"
+msgstr ""
+
+#: lib/Jifty/Record.pm:264 lib/Jifty/Record.pm:343 lib/Jifty/Record.pm:68
 msgid "Permission denied"
 msgstr "Autorisation refusée"
 
@@ -260,6 +288,11 @@
 msgid "Record created"
 msgstr "Enregistrement créé"
 
+#: share/web/templates/__jifty/halo:69
+#. ($frame->{'render_time'})
+msgid "Rendered in %1s"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/action/dhandler:20
 msgid "Run the action"
 msgstr "Exécuter l'action"
@@ -300,7 +333,7 @@
 msgid "The passwords you typed didn't match each other"
 msgstr "Les mots de passe tapés ne sont pas identiques"
 
-#: lib/Jifty/Web.pm:362
+#: lib/Jifty/Web.pm:363
 msgid "There was an error completing the request.  Please try again later."
 msgstr "Problème lors de l'exécution de cette requête. Ré-essayez plus tard."
 
@@ -324,6 +357,10 @@
 msgid "Updated"
 msgstr "Modification"
 
+#: share/web/templates/__jifty/halo:93
+msgid "Variables"
+msgstr ""
+
 #: share/web/templates/index.html:1
 msgid "Welcome to your new Jifty application"
 msgstr "Bienvenue sur votre nouvelle application Jifty"
@@ -352,3 +389,11 @@
 #: share/web/templates/__jifty/admin/fragments/list/header:41
 msgid "desc"
 msgstr ""
+
+#: lib/Jifty/Manual/PageRegions.pod:188
+msgid "text of the link"
+msgstr ""
+
+#: lib/Jifty/Manual/PageRegions.pod:225
+msgid "text of the link that hides"
+msgstr ""

Modified: jifty/branches/template-declare/share/po/ja.po
==============================================================================
--- jifty/branches/template-declare/share/po/ja.po	(original)
+++ jifty/branches/template-declare/share/po/ja.po	Fri Feb  9 00:13:45 2007
@@ -94,7 +94,7 @@
 msgid "(any)"
 msgstr "(指定なし)"
 
-#: lib/Jifty/Web/Form/Field.pm:549
+#: lib/Jifty/Web/Form/.Field.pm.swp:44 lib/Jifty/Web/Form/Field.pm:549
 msgid "@{[$self->current_value]}"
 msgstr ""
 
@@ -102,6 +102,10 @@
 msgid "Actions"
 msgstr "操作"
 
+#: share/web/templates/_elements/nav:5
+msgid "Administration"
+msgstr ""
+
 #: share/web/templates/_elements/wrapper:11
 msgid "Administration mode is enabled."
 msgstr "管理モードが有効になっています"
@@ -126,6 +130,10 @@
 msgid "Back to the application"
 msgstr "アプリケーションに戻る"
 
+#: share/web/templates/__jifty/halo:117
+msgid "Bindings"
+msgstr ""
+
 #: share/web/templates/helpers/calendar.html:4
 #. (_ &><body class="calpopup"><a href="#" onclick="window.close()
 msgid "Calendar"
@@ -135,6 +143,10 @@
 msgid "Cancel"
 msgstr "キャンセル"
 
+#: share/web/templates/__jifty/halo:81
+msgid "Children"
+msgstr ""
+
 #: share/web/templates/helpers/calendar.html:4
 msgid "Close window"
 msgstr "閉じる"
@@ -172,7 +184,7 @@
 msgid "Done?"
 msgstr ""
 
-#: share/web/templates/__jifty/admin/fragments/list/view:40
+#: share/web/templates/__jifty/admin/fragments/list/view:40 share/web/templates/__jifty/halo:20
 msgid "Edit"
 msgstr "編集"
 
@@ -190,6 +202,10 @@
 msgid "Hiya, %1."
 msgstr "%1 さん、こんにちは"
 
+#: share/web/templates/_elements/nav:3
+msgid "Home"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/index.html:1
 msgid "Jifty Administrative Console"
 msgstr ""
@@ -235,7 +251,7 @@
 msgid "No items found"
 msgstr "見つかりませんでした"
 
-#: lib/Jifty/Web.pm:299
+#: lib/Jifty/Web.pm:300
 msgid "No request to handle"
 msgstr "処理できるリクエストがありません"
 
@@ -243,12 +259,24 @@
 msgid "Online Documentation"
 msgstr "オンラインドキュメント"
 
+#: share/web/templates/_elements/nav:6
+msgid "Online docs"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/fragments/list/list:80
 #. ($page, $collection->pager->last_page)
 msgid "Page %1 of %2"
 msgstr "%1 / %2 ページ"
 
-#: lib/Jifty/Record.pm:240 lib/Jifty/Record.pm:319 lib/Jifty/Record.pm:60
+#: share/web/templates/__jifty/halo:1
+msgid "Page info"
+msgstr ""
+
+#: share/web/templates/__jifty/halo:72
+msgid "Parent"
+msgstr ""
+
+#: lib/Jifty/Record.pm:264 lib/Jifty/Record.pm:343 lib/Jifty/Record.pm:68
 msgid "Permission denied"
 msgstr "権限がありません"
 
@@ -256,6 +284,11 @@
 msgid "Previous Page"
 msgstr "前のページ"
 
+#: share/web/templates/__jifty/halo:69
+#. ($frame->{'render_time'})
+msgid "Rendered in %1s"
+msgstr ""
+
 #: share/web/templates/__jifty/admin/action/dhandler:20
 msgid "Run the action"
 msgstr "実行"
@@ -296,7 +329,7 @@
 msgid "The passwords you typed didn't match each other"
 msgstr "パスワードが一致しません"
 
-#: lib/Jifty/Web.pm:362
+#: lib/Jifty/Web.pm:363
 msgid "There was an error completing the request.  Please try again later."
 msgstr "リクエストの処理中にエラーが発生しました。しばらく待ってから再度試してみてください"
 
@@ -320,6 +353,10 @@
 msgid "Updated"
 msgstr "更新しました"
 
+#: share/web/templates/__jifty/halo:93
+msgid "Variables"
+msgstr ""
+
 #: share/web/templates/index.html:1
 msgid "Welcome to your new Jifty application"
 msgstr "Jifty の新規アプリケーションです"
@@ -348,3 +385,11 @@
 #: share/web/templates/__jifty/admin/fragments/list/header:41
 msgid "desc"
 msgstr "降順"
+
+#: lib/Jifty/Manual/PageRegions.pod:188
+msgid "text of the link"
+msgstr ""
+
+#: lib/Jifty/Manual/PageRegions.pod:225
+msgid "text of the link that hides"
+msgstr ""

Modified: jifty/branches/template-declare/share/po/zh_cn.po
==============================================================================
--- jifty/branches/template-declare/share/po/zh_cn.po	(original)
+++ jifty/branches/template-declare/share/po/zh_cn.po	Fri Feb  9 00:13:45 2007
@@ -93,7 +93,7 @@
 msgid "(any)"
 msgstr "(任意)"
 
-#: lib/Jifty/Web/Form/Field.pm:549
+#: lib/Jifty/Web/Form/.Field.pm.swp:44 lib/Jifty/Web/Form/Field.pm:549
 msgid "@{[$self->current_value]}"
 msgstr ""
 
@@ -101,6 +101,10 @@
 msgid "Actions"
 msgstr "操作"
 
+#: share/web/templates/_elements/nav:5
+msgid "Administration"
+msgstr "管理接口"
+
 #: share/web/templates/_elements/wrapper:11
 msgid "Administration mode is enabled."
 msgstr "系统管理模式开启中."
@@ -125,6 +129,10 @@
 msgid "Back to the application"
 msgstr "回到应用程序"
 
+#: share/web/templates/__jifty/halo:117
+msgid "Bindings"
+msgstr "快速键"
+
 #: share/web/templates/helpers/calendar.html:4
 #. (_ &><body class="calpopup"><a href="#" onclick="window.close()
 msgid "Calendar"
@@ -134,6 +142,10 @@
 msgid "Cancel"
 msgstr "取消"
 
+#: share/web/templates/__jifty/halo:81
+msgid "Children"
+msgstr "子组件"
+
 #: share/web/templates/helpers/calendar.html:4
 msgid "Close window"
 msgstr "关闭窗口"
@@ -175,7 +187,7 @@
 msgid "Done?"
 msgstr "已完成?"
 
-#: share/web/templates/__jifty/admin/fragments/list/view:40
+#: share/web/templates/__jifty/admin/fragments/list/view:40 share/web/templates/__jifty/halo:20
 msgid "Edit"
 msgstr "编辑"
 
@@ -193,6 +205,10 @@
 msgid "Hiya, %1."
 msgstr "您好,%1。"
 
+#: share/web/templates/_elements/nav:3
+msgid "Home"
+msgstr "首页"
+
 #: share/web/templates/__jifty/admin/index.html:1
 msgid "Jifty Administrative Console"
 msgstr "Jifty 管理界面"
@@ -238,7 +254,7 @@
 msgid "No items found"
 msgstr "未找到记录"
 
-#: lib/Jifty/Web.pm:299
+#: lib/Jifty/Web.pm:300
 msgid "No request to handle"
 msgstr "没有可处理的请求"
 
@@ -246,12 +262,24 @@
 msgid "Online Documentation"
 msgstr "线上文件"
 
+#: share/web/templates/_elements/nav:6
+msgid "Online docs"
+msgstr "线上文件"
+
 #: share/web/templates/__jifty/admin/fragments/list/list:80
 #. ($page, $collection->pager->last_page)
 msgid "Page %1 of %2"
 msgstr "第 %1 页, 共 %2 页"
 
-#: lib/Jifty/Record.pm:240 lib/Jifty/Record.pm:319 lib/Jifty/Record.pm:60
+#: share/web/templates/__jifty/halo:1
+msgid "Page info"
+msgstr "页面信息"
+
+#: share/web/templates/__jifty/halo:72
+msgid "Parent"
+msgstr "上层组件"
+
+#: lib/Jifty/Record.pm:264 lib/Jifty/Record.pm:343 lib/Jifty/Record.pm:68
 msgid "Permission denied"
 msgstr "权限不足"
 
@@ -263,6 +291,11 @@
 msgid "Record created"
 msgstr "成功建立记录."
 
+#: share/web/templates/__jifty/halo:69
+#. ($frame->{'render_time'})
+msgid "Rendered in %1s"
+msgstr "页面绘制时间: %1 秒"
+
 #: share/web/templates/__jifty/admin/action/dhandler:20
 msgid "Run the action"
 msgstr "执行动作"
@@ -303,7 +336,7 @@
 msgid "The passwords you typed didn't match each other"
 msgstr "两组口令不匹配."
 
-#: lib/Jifty/Web.pm:362
+#: lib/Jifty/Web.pm:363
 msgid "There was an error completing the request.  Please try again later."
 msgstr "系统执行错误, 请稍候再试."
 
@@ -327,6 +360,10 @@
 msgid "Updated"
 msgstr "成功更新项目."
 
+#: share/web/templates/__jifty/halo:93
+msgid "Variables"
+msgstr "变項"
+
 #: share/web/templates/index.html:1
 msgid "Welcome to your new Jifty application"
 msgstr "欢迎光临您的崭新的 Jifty 应用程序"
@@ -355,3 +392,11 @@
 #: share/web/templates/__jifty/admin/fragments/list/header:41
 msgid "desc"
 msgstr "降序"
+
+#: lib/Jifty/Manual/PageRegions.pod:188
+msgid "text of the link"
+msgstr "连结文字"
+
+#: lib/Jifty/Manual/PageRegions.pod:225
+msgid "text of the link that hides"
+msgstr "隐藏连结文字"

Modified: jifty/branches/template-declare/share/po/zh_tw.po
==============================================================================
--- jifty/branches/template-declare/share/po/zh_tw.po	(original)
+++ jifty/branches/template-declare/share/po/zh_tw.po	Fri Feb  9 00:13:45 2007
@@ -36,7 +36,7 @@
 #: share/web/templates/__jifty/admin/fragments/list/list:87
 #. ($collection-> count)
 msgid "%1 entries"
-msgstr ""
+msgstr "共 %1 筆"
 
 #: lib/Jifty/Action/Record/Search.pm:123
 #. ($label)
@@ -93,7 +93,7 @@
 msgid "(any)"
 msgstr "(不限)"
 
-#: lib/Jifty/Web/Form/Field.pm:549
+#: lib/Jifty/Web/Form/.Field.pm.swp:44 lib/Jifty/Web/Form/Field.pm:549
 msgid "@{[$self->current_value]}"
 msgstr ""
 
@@ -101,6 +101,10 @@
 msgid "Actions"
 msgstr "操作"
 
+#: share/web/templates/_elements/nav:5
+msgid "Administration"
+msgstr "管理介面"
+
 #: share/web/templates/_elements/wrapper:11
 msgid "Administration mode is enabled."
 msgstr "系統管理模式開啟中."
@@ -119,12 +123,16 @@
 
 #: share/web/templates/__jifty/admin/action/dhandler:25 share/web/templates/__jifty/admin/model/dhandler:21
 msgid "Back to the admin console"
-msgstr "回到管理界面"
+msgstr "回到管理介面"
 
 #: share/web/templates/__jifty/admin/index.html:29
 msgid "Back to the application"
 msgstr "回到應用程式"
 
+#: share/web/templates/__jifty/halo:117
+msgid "Bindings"
+msgstr "快速鍵"
+
 #: share/web/templates/helpers/calendar.html:4
 #. (_ &><body class="calpopup"><a href="#" onclick="window.close()
 msgid "Calendar"
@@ -134,13 +142,17 @@
 msgid "Cancel"
 msgstr "取消"
 
+#: share/web/templates/__jifty/halo:81
+msgid "Children"
+msgstr "子元件"
+
 #: share/web/templates/helpers/calendar.html:4
 msgid "Close window"
 msgstr "關閉視窗"
 
 #: share/web/templates/__jifty/admin/fragments/list/view:31
 msgid "Confirm delete?"
-msgstr "確定要刪除?"
+msgstr "是否確定刪除?"
 
 #: share/web/templates/__jifty/admin/fragments/list/new_item:25
 msgid "Create"
@@ -173,9 +185,9 @@
 
 #: share/web/templates/__jifty/admin/index.html:28 share/web/templates/__jifty/admin/model/dhandler:20
 msgid "Done?"
-msgstr "已完成?"
+msgstr "設定完畢?"
 
-#: share/web/templates/__jifty/admin/fragments/list/view:40
+#: share/web/templates/__jifty/admin/fragments/list/view:40 share/web/templates/__jifty/halo:20
 msgid "Edit"
 msgstr "編輯"
 
@@ -193,6 +205,10 @@
 msgid "Hiya, %1."
 msgstr "%1 您好."
 
+#: share/web/templates/_elements/nav:3
+msgid "Home"
+msgstr "首頁"
+
 #: share/web/templates/__jifty/admin/index.html:1
 msgid "Jifty Administrative Console"
 msgstr "Jifty 管理介面"
@@ -238,7 +254,7 @@
 msgid "No items found"
 msgstr "未找到記錄"
 
-#: lib/Jifty/Web.pm:299
+#: lib/Jifty/Web.pm:300
 msgid "No request to handle"
 msgstr "沒有可處理的要求"
 
@@ -246,12 +262,24 @@
 msgid "Online Documentation"
 msgstr "線上文件"
 
+#: share/web/templates/_elements/nav:6
+msgid "Online docs"
+msgstr "線上文件"
+
 #: share/web/templates/__jifty/admin/fragments/list/list:80
 #. ($page, $collection->pager->last_page)
 msgid "Page %1 of %2"
 msgstr "第 %1 頁, 共 %2 頁"
 
-#: lib/Jifty/Record.pm:240 lib/Jifty/Record.pm:319 lib/Jifty/Record.pm:60
+#: share/web/templates/__jifty/halo:1
+msgid "Page info"
+msgstr "頁面資訊"
+
+#: share/web/templates/__jifty/halo:72
+msgid "Parent"
+msgstr "上層元件"
+
+#: lib/Jifty/Record.pm:264 lib/Jifty/Record.pm:343 lib/Jifty/Record.pm:68
 msgid "Permission denied"
 msgstr "權限不足."
 
@@ -263,6 +291,11 @@
 msgid "Record created"
 msgstr "成功建立項目."
 
+#: share/web/templates/__jifty/halo:69
+#. ($frame->{'render_time'})
+msgid "Rendered in %1s"
+msgstr "頁面繪製時間: %1 秒"
+
 #: share/web/templates/__jifty/admin/action/dhandler:20
 msgid "Run the action"
 msgstr "執行動作"
@@ -303,17 +336,17 @@
 msgid "The passwords you typed didn't match each other"
 msgstr "兩組密碼不符合."
 
-#: lib/Jifty/Web.pm:362
+#: lib/Jifty/Web.pm:363
 msgid "There was an error completing the request.  Please try again later."
 msgstr "系統執行錯誤, 請稍候再試."
 
 #: share/web/templates/__jifty/admin/index.html:5
 msgid "This console lets you manage the records in your Jifty database. Below, you should see a list of all your database tables. Feel free to go through and add, delete or modify records."
-msgstr "您可利用此界面來管理資料庫的內容. 請點選表格名稱, 進行增刪及編輯."
+msgstr "您可利用此介面來管理資料庫的內容. 請點選表格名稱, 進行增刪及編輯."
 
 #: share/web/templates/__jifty/admin/index.html:7
 msgid "To disable this administrative console, add \"AdminMode: 0\" under the \"framework:\" settings in the config file (etc/config.yml)."
-msgstr "如欲停用管理界面, 請在設定檔 (etc/config.yml) 的 \"framework:\" 設定內加上 \"AdminMode: 0\" 即可."
+msgstr "如欲停用管理介面, 請在設定檔 (etc/config.yml) 的 \"framework:\" 設定內加上 \"AdminMode: 0\" 即可."
 
 #: share/web/templates/__jifty/admin/fragments/list/list:72
 msgid "Toggle search"
@@ -327,6 +360,10 @@
 msgid "Updated"
 msgstr "成功更新項目."
 
+#: share/web/templates/__jifty/halo:93
+msgid "Variables"
+msgstr "變數"
+
 #: share/web/templates/index.html:1
 msgid "Welcome to your new Jifty application"
 msgstr "歡迎光臨您嶄新的 Jifty 應用程式"
@@ -355,3 +392,11 @@
 #: share/web/templates/__jifty/admin/fragments/list/header:41
 msgid "desc"
 msgstr "降冪"
+
+#: lib/Jifty/Manual/PageRegions.pod:188
+msgid "text of the link"
+msgstr "連結文字"
+
+#: lib/Jifty/Manual/PageRegions.pod:225
+msgid "text of the link that hides"
+msgstr "隱藏連結文字"

Modified: jifty/branches/template-declare/share/web/templates/__jifty/halo
==============================================================================
--- jifty/branches/template-declare/share/web/templates/__jifty/halo	(original)
+++ jifty/branches/template-declare/share/web/templates/__jifty/halo	Fri Feb  9 00:13:45 2007
@@ -1,4 +1,4 @@
-<div><a href="#" id="render_info" onclick="Element.toggle('render_info_tree'); return false">Page info</a></div>
+<div><a href="#" id="render_info" onclick="Element.toggle('render_info_tree'); return false"><%_('Page info')%></a></div>
 <div style="display: none" id="render_info_tree">
 % foreach my $item (@stack) {
 %     if ( $item->{depth} > $depth ) {
@@ -17,7 +17,7 @@
                                        onclick="halo_toggle('<% $item->{id} %>'); return false;">
 <% $item->{'name'} %> - <% $item->{'render_time'} %></a> 
 % unless ($item->{subcomponent}) {
-<% Jifty->web->tangent( url =>"/__jifty/edit/mason_component/".$item->{'path'}, label => 'Edit') %>
+<% Jifty->web->tangent( url =>"/__jifty/edit/mason_component/".$item->{'path'}, label => _('Edit')) %>
 % }
 % $depth = $item->{'depth'};
 % }
@@ -66,10 +66,10 @@
 
 <div class="body">
 <div class="path"><% $frame->{path} %></div>
-<div class="time">Rendered in <% $frame->{'render_time'} %>s</div>
+<div class="time"><%_('Rendered in %1s', $frame->{'render_time'})%></div>
 </div>
 % if ($frame->{parent}) {
-<div class="section">Parent</div>
+<div class="section"><%_('Parent')%></div>
 <div class="body"><ul>
 <li><a href="#" class="halo_comp_info" onmouseover="halo_over('<% $frame->{parent}{id} %>')"
                                        onmouseout="halo_out('<% $frame->{parent}{id} %>')"
@@ -78,7 +78,7 @@
 </ul></div>
 % }
 % if (@{$frame->{kids}}) {
-<div class="section">Children</div>
+<div class="section"><%_('Children')%></div>
 <div class="body"><ul>
 % for my $item (@{$frame->{kids}}) {
 <li><a href="#" class="halo_comp_info" onmouseover="halo_over('<% $item->{id} %>')"
@@ -90,7 +90,7 @@
 </div>
 % }
 % if (@args) {
-<div class="section">Variables</div>
+<div class="section"><%_('Variables')%></div>
 <div class="body"><ul class="fixed">
 % for my $e (@args) {
 <li><b><% $e->[0] %></b>:
@@ -114,7 +114,7 @@
 <li>
 <span class="fixed"><% $_->[1] %></span><br />
 % if (@{$_->[2]}) {
-<b>Bindings:</b> <tt><% join(',', map {defined $_ ? ($_ =~ /[^[:space:][:graph:]]/ ? "*BLOB*" : $_ ) : "undef"} @{$_->[2]}) %></tt><br />
+<b><%_('Bindings')%>:</b> <tt><% join(',', map {defined $_ ? ($_ =~ /[^[:space:][:graph:]]/ ? "*BLOB*" : $_ ) : "undef"} @{$_->[2]}) %></tt><br />
 % }
 <i><% _('%1 seconds', $_->[3]) %></i>
 </li>
@@ -123,7 +123,7 @@
 % }
 <div class="section">
 % unless ($frame->{subcomponent}) {
-<% Jifty->web->tangent( url =>"/__jifty/edit/mason_component/".$frame->{'path'}, label => 'Edit') %>
+<% Jifty->web->tangent( url =>"/__jifty/edit/mason_component/".$frame->{'path'}, label => _('Edit')) %>
 % } else {
 &nbsp;     
 % }

Modified: jifty/branches/template-declare/share/web/templates/_elements/nav
==============================================================================
--- jifty/branches/template-declare/share/web/templates/_elements/nav	(original)
+++ jifty/branches/template-declare/share/web/templates/_elements/nav	Fri Feb  9 00:13:45 2007
@@ -1,9 +1,9 @@
 <%init>
 my $top = Jifty->web->navigation;
-$top->child(Home       => url => "/", sort_order => 1);
+$top->child(Home       => label => _('Home'), url => "/", sort_order => 1);
  if (Jifty->config->framework('AdminMode') ) {
-    $top->child(Administration       => url => "/__jifty/admin/", sort_order => 998);
-    $top->child(OnlineDocs       => url => "/__jifty/online_docs/", label => 'Online docs',  sort_order => 999);
+    $top->child(Administration       => url => "/__jifty/admin/", label => _('Administration'), sort_order => 998);
+    $top->child(OnlineDocs       => url => "/__jifty/online_docs/", label => _('Online docs'),  sort_order => 999);
  }
 return();
 </%init>


More information about the Jifty-commit mailing list