[rt-commit] r314 - rt/branches/rt-3.1/html/Elements
root at fsck.com
root at fsck.com
Sat Dec 20 18:21:40 EST 2003
Author: root
Date: 2003-12-20 18:21:38 -0500 (Sat, 20 Dec 2003)
New Revision: 314
Modified:
rt/branches/rt-3.1/html/Elements/SelectLang
Log:
Better copes with nonexistent languages.
Modified: rt/branches/rt-3.1/html/Elements/SelectLang
===================================================================
--- rt/branches/rt-3.1/html/Elements/SelectLang 2003-12-19 08:39:58 UTC (rev 313)
+++ rt/branches/rt-3.1/html/Elements/SelectLang 2003-12-20 23:21:38 UTC (rev 314)
@@ -48,6 +48,7 @@
foreach my $lang (map { s/:://; s/_/-/g; $_ } grep { /^\w+::$/ } keys %RT::I18N::) {
next if $lang =~ /i-default|en-us/;
my $desc = I18N::LangTags::List::name($lang);
+ next unless ($desc);
$desc =~ s/(.*) (.*)/$2 ($1)/;
$lang_to_desc{$lang} = $desc;
}
More information about the Rt-commit
mailing list