diff options
author | intrigeri <intrigeri@boum.org> | 2011-05-25 18:01:40 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2011-05-26 09:39:50 +0200 |
commit | 3cd0c1f91a8e4b7accfe75d132066b79da4379fd (patch) | |
tree | 07a01329a6bf4c237077401599209130a89f5032 /t | |
parent | a9a5c6eeb82bd50211752e6d3b68924d0dcd6723 (diff) | |
download | ikiwiki-3cd0c1f91a8e4b7accfe75d132066b79da4379fd.tar ikiwiki-3cd0c1f91a8e4b7accfe75d132066b79da4379fd.tar.gz |
po: support language codes in the form of 'es_AR', and 'arn'.
... additionally to the previously supported two-letters codes.
Diffstat (limited to 't')
-rwxr-xr-x | t/po.t | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -17,7 +17,7 @@ BEGIN { } } -use Test::More tests => 109; +use Test::More tests => 114; BEGIN { use_ok("IkiWiki"); } @@ -241,3 +241,10 @@ ok(! IkiWiki::Plugin::po::istranslatedto('nontranslatable', 'es')); ok(! IkiWiki::Plugin::po::istranslatedto('nontranslatable', 'cz')); ok(! IkiWiki::Plugin::po::istranslatedto('test1.es', 'fr')); ok(! IkiWiki::Plugin::po::istranslatedto('test1.fr', 'es')); + +### islanguagecode +ok(IkiWiki::Plugin::po::islanguagecode('en')); +ok(IkiWiki::Plugin::po::islanguagecode('es')); +ok(IkiWiki::Plugin::po::islanguagecode('arn')); +ok(! IkiWiki::Plugin::po::islanguagecode('es_')); +ok(! IkiWiki::Plugin::po::islanguagecode('_en')); |