diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-03 12:32:37 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-03 12:32:37 -0400 |
commit | 70e7bee1a0798ef162a36f13f389d7ad25b9df1a (patch) | |
tree | 2d7a2152c17d34b3fdd81463267f2264a1b12eff /t | |
parent | b213759eda3021c63cdad18cf51bf63abbbab1b1 (diff) | |
parent | 3cd0c1f91a8e4b7accfe75d132066b79da4379fd (diff) | |
download | ikiwiki-70e7bee1a0798ef162a36f13f389d7ad25b9df1a.tar ikiwiki-70e7bee1a0798ef162a36f13f389d7ad25b9df1a.tar.gz |
Merge remote-tracking branch 'intrigeri/po-long-language-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')); |