aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel/Rpmdragora/localization.pm
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo@mageia.org>2013-01-12 00:12:55 +0000
committerMatteo Pasotti <matteo@mageia.org>2013-01-12 00:12:55 +0000
commita173390d34fc7782b0cf94e3d8c9c9f4cb22d565 (patch)
tree97cb7750fddd706c02d0b541decd5954b18f6c69 /AdminPanel/Rpmdragora/localization.pm
parent8b014b80cec1e493d1deadcb4c696d12f174e912 (diff)
downloadcolin-keep-a173390d34fc7782b0cf94e3d8c9c9f4cb22d565.tar
colin-keep-a173390d34fc7782b0cf94e3d8c9c9f4cb22d565.tar.gz
colin-keep-a173390d34fc7782b0cf94e3d8c9c9f4cb22d565.tar.bz2
colin-keep-a173390d34fc7782b0cf94e3d8c9c9f4cb22d565.tar.xz
colin-keep-a173390d34fc7782b0cf94e3d8c9c9f4cb22d565.zip
- gui.pm: added support for icons to tree and table; temporary disabled format_name_n_summary
- icon.pm: made get_icon indipendent from gtk - localization.pm: temporary workaround to let rpmdragora access rpmdrake ts - rpmdragora: now use the workaround as the other modules
Diffstat (limited to 'AdminPanel/Rpmdragora/localization.pm')
-rw-r--r--AdminPanel/Rpmdragora/localization.pm35
1 files changed, 35 insertions, 0 deletions
diff --git a/AdminPanel/Rpmdragora/localization.pm b/AdminPanel/Rpmdragora/localization.pm
new file mode 100644
index 0000000..fb199d9
--- /dev/null
+++ b/AdminPanel/Rpmdragora/localization.pm
@@ -0,0 +1,35 @@
+#!/usr/bin/perl
+# vim: set et ts=4 sw=4:
+package AdminPanel::Rpmdragora::localization;
+#*****************************************************************************
+#
+# Copyright (c) 2013 Matteo Pasotti <matteo.pasotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2, as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+#*****************************************************************************
+use strict;
+use warnings;
+use diagnostics;
+use lib qw(/usr/lib/libDrakX);
+use common;
+
+Locale::gettext::bind_textdomain_codeset($_, 'UTF8') foreach 'libDrakX', if_(!$::isInstall, 'libDrakX-standalone'),
+ if_($::isRestore, 'draksnapshot'), if_($::isInstall, 'urpmi'),
+ 'drakx-net', 'drakx-kbd-mouse-x11', # shared translation
+ @::textdomains;
+
+#========= UGLY WORKAROUND ============
+push @::textdomains, 'rpmdrake';
+#========= UGLY WORKAROUND ============