]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/I18N/Locale.pm
Update all .po and .pot files
[deb/packages.git] / lib / Packages / I18N / Locale.pm
index b8d2abe50d3f6c5b41568b6a168b3fa002096dc8..fd987586020433cdf80680c4262f9950774d3f71 100644 (file)
@@ -21,12 +21,9 @@ my %lang2loc = ( en => "en_US",
                 default => "en_US",
                 );
 
-# most of them can probably changed to UTF-8 in Sarge
-# as there are more available UTF-8 locales then
+# this can probably be removed now that all locales are available in UTF-8
 my %lang2charset = (
                    default => 'UTF-8',
-                   ja => 'EUC-JP',
-                   uk => 'KOI8-U',
                    );
 
 sub get_locale {
@@ -52,6 +49,11 @@ sub get_charset {
     return $lang2charset{$lang} || $lang2charset{default};
 }
 
+sub tt_gettext {
+    my ($str, @args) = @_;
+    return dgettext( 'templates', $str ) unless @args;
+    return sprintf(dgettext( 'templates', $str ), @args);
+}
 sub _g { return gettext( $_[0] ) }
 sub N_ { return $_[0] }