[Catalyst-commits] r7356 - trunk/Catalyst-Plugin-I18N
bricas at dev.catalyst.perl.org
bricas at dev.catalyst.perl.org
Mon Jan 7 13:21:27 GMT 2008
Author: bricas
Date: 2008-01-07 13:21:27 +0000 (Mon, 07 Jan 2008)
New Revision: 7356
Removed:
trunk/Catalyst-Plugin-I18N/README
Modified:
trunk/Catalyst-Plugin-I18N/Changes
trunk/Catalyst-Plugin-I18N/Makefile.PL
Log:
fix up Makefile.PL a little
Modified: trunk/Catalyst-Plugin-I18N/Changes
===================================================================
--- trunk/Catalyst-Plugin-I18N/Changes 2008-01-07 01:55:17 UTC (rev 7355)
+++ trunk/Catalyst-Plugin-I18N/Changes 2008-01-07 13:21:27 UTC (rev 7356)
@@ -1,7 +1,7 @@
Revision history for Perl extension Catalyst::Plugin::I18N.
0.07 xxx xxx xx 2007
- - re-generated README
+ - Makefile.PL updates
0.06 Tue Jul 17 2007
- re-org distro
Modified: trunk/Catalyst-Plugin-I18N/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-I18N/Makefile.PL 2008-01-07 01:55:17 UTC (rev 7355)
+++ trunk/Catalyst-Plugin-I18N/Makefile.PL 2008-01-07 13:21:27 UTC (rev 7356)
@@ -1,5 +1,9 @@
-use inc::Module::Install 0.65;
+use inc::Module::Install 0.68;
+if( -e 'MANIFEST.SKIP' ) {
+ system( 'pod2text lib/Catalyst/Plugin/I18N.pm > README' );
+}
+
name 'Catalyst-Plugin-I18N';
all_from 'lib/Catalyst/Plugin/I18N.pm';
@@ -8,7 +12,7 @@
requires 'I18N::LangTags::Detect';
requires 'Locale::Maketext::Lexicon';
-requires 'Test::More';
+test_requires 'Test::More';
auto_install;
WriteAll;
Deleted: trunk/Catalyst-Plugin-I18N/README
===================================================================
--- trunk/Catalyst-Plugin-I18N/README 2008-01-07 01:55:17 UTC (rev 7355)
+++ trunk/Catalyst-Plugin-I18N/README 2008-01-07 13:21:27 UTC (rev 7356)
@@ -1,74 +0,0 @@
-NAME
- Catalyst::Plugin::I18N - I18N for Catalyst
-
-SYNOPSIS
- use Catalyst 'I18N';
-
- print join ' ', @{ $c->languages };
- $c->languages( ['de'] );
- print $c->localize('Hello Catalyst');
-
- Use a macro if you're lazy:
-
- [% MACRO l(text, args) BLOCK;
- c.localize(text, args);
- END; %]
-
- [% l('Hello Catalyst') %]
- [% l('Hello [_1]', 'Catalyst') %]
- [% l('lalala[_1]lalala[_2]', ['test', 'foo']) %]
-
-DESCRIPTION
- Supports mo/po files and Maketext classes under your applications I18N
- namespace.
-
- # MyApp/I18N/de.po
- msgid "Hello Catalyst"
- msgstr "Hallo Katalysator"
-
- #MyApp/I18N/de.pm
- package MyApp::I18N::de;
- use base 'MyApp::I18N';
- our %Lexicon = ( 'Hello Catalyst' => 'Hallo Katalysator' );
- 1;
-
- EXTENDED METHODS
- setup
- METHODS
- languages
- Contains languages.
-
- $c->languages(['de_DE']);
- 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.
-
- print $c->localize( 'Welcome to Catalyst, [_1]', 'sri' );
-
-SEE ALSO
- Catalyst.
-
-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.
-
More information about the Catalyst-commits
mailing list