[Catalyst-commits] r6601 - in trunk/Catalyst-Plugin-I18N: . lib/Catalyst/Plugin

bricas at dev.catalyst.perl.org bricas at dev.catalyst.perl.org
Tue Jul 31 13:11:31 GMT 2007


Author: bricas
Date: 2007-07-31 13:11:30 +0100 (Tue, 31 Jul 2007)
New Revision: 6601

Modified:
   trunk/Catalyst-Plugin-I18N/Changes
   trunk/Catalyst-Plugin-I18N/README
   trunk/Catalyst-Plugin-I18N/lib/Catalyst/Plugin/I18N.pm
Log:
regenerated README

Modified: trunk/Catalyst-Plugin-I18N/Changes
===================================================================
--- trunk/Catalyst-Plugin-I18N/Changes	2007-07-30 02:39:25 UTC (rev 6600)
+++ trunk/Catalyst-Plugin-I18N/Changes	2007-07-31 12:11:30 UTC (rev 6601)
@@ -1,5 +1,8 @@
 Revision history for Perl extension Catalyst::Plugin::I18N.
 
+0.07  xxx xxx xx 2007
+        - re-generated README
+
 0.06  Tue Jul 17 2007
         - re-org distro
         - switch to Module::Install

Modified: trunk/Catalyst-Plugin-I18N/README
===================================================================
--- trunk/Catalyst-Plugin-I18N/README	2007-07-30 02:39:25 UTC (rev 6600)
+++ trunk/Catalyst-Plugin-I18N/README	2007-07-31 12:11:30 UTC (rev 6601)
@@ -29,7 +29,7 @@
        #MyApp/I18N/de.pm
        package MyApp::I18N::de;
        use base 'MyApp::I18N';
-       %Lexicon = ( 'Hello Catalyst' => 'Hallo Katalysator' );
+       our %Lexicon = ( 'Hello Catalyst' => 'Hallo Katalysator' );
        1;
 
   EXTENDED METHODS
@@ -39,8 +39,20 @@
     Contains languages.
 
        $c->languages(['de_DE']);
-       print join '', @{ $c->language };
+       print join '', @{ $c->languages };
 
+   language
+    return selected locale in your locales list.
+
+   language_tag
+    return language tag for current locale. The most notable difference from
+    this method in comparison to "language()" is typically that languages
+    and regions are joined with a dash and not an underscore.
+
+        $c->language(); # en_us
+        $c->language_tag(); # en-us
+
+   loc
    localize
     Localize text.
 
@@ -52,6 +64,10 @@
 AUTHOR
     Sebastian Riedel, "sri at cpan.org"
 
+    Brian Cassidy, "bricas at cpan.org"
+
+    Christian Hansen, "chansen at cpan.org"
+
 COPYRIGHT
     This program is free software, you can redistribute it and/or modify it
     under the same terms as Perl itself.

Modified: trunk/Catalyst-Plugin-I18N/lib/Catalyst/Plugin/I18N.pm
===================================================================
--- trunk/Catalyst-Plugin-I18N/lib/Catalyst/Plugin/I18N.pm	2007-07-30 02:39:25 UTC (rev 6600)
+++ trunk/Catalyst-Plugin-I18N/lib/Catalyst/Plugin/I18N.pm	2007-07-31 12:11:30 UTC (rev 6601)
@@ -7,7 +7,7 @@
 
 require Locale::Maketext::Simple;
 
-our $VERSION = '0.06';
+our $VERSION = '0.07';
 
 =head1 NAME
 




More information about the Catalyst-commits mailing list