diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-25 16:49:33 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-25 16:49:33 +0200 |
commit | 39f00225b96499fbc765f9eaa353a93ebe8912e2 (patch) | |
tree | 51e6869f3a3f14b755f746b8756f990c8e9269ab | |
parent | 47df431ad534b9319d95ef4dc79c2671baf0ee1b (diff) | |
download | abrt-39f00225b96499fbc765f9eaa353a93ebe8912e2.tar.gz abrt-39f00225b96499fbc765f9eaa353a93ebe8912e2.tar.xz abrt-39f00225b96499fbc765f9eaa353a93ebe8912e2.zip |
GUI: added first part of support for gettext
-rw-r--r-- | po/cs.po | 85 | ||||
-rw-r--r-- | src/Gui/CCMainWindow.py | 15 |
2 files changed, 100 insertions, 0 deletions
diff --git a/po/cs.po b/po/cs.po new file mode 100644 index 00000000..54e7c043 --- /dev/null +++ b/po/cs.po @@ -0,0 +1,85 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the ABRT package. +# FIRST AUTHOR <jmoskovc@redhat.com>, 2009. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-08-25 16:19+0200\n" +"PO-Revision-Date: 2009-08-25 16:26+ZONE\n" +"Last-Translator: Jiri Moskovcak <jmoskovc@redhat.com>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ccgui.glade:6 ccgui.glade:296 +msgid "Automatic Bug Reporting Tool" +msgstr "" + +#: ccgui.glade:17 ccgui.glade:308 +msgid "_File" +msgstr "_Soubor" + +#: ccgui.glade:37 ccgui.glade:328 +msgid "_Edit" +msgstr "" + +#: ccgui.glade:57 ccgui.glade:348 +msgid "_Help" +msgstr "_Nápověda" + +#: ccgui.glade:87 ccgui.glade:378 +msgid "Delete" +msgstr "Smazat" + +#: ccgui.glade:99 ccgui.glade:390 +msgid "Report" +msgstr "Reportovat" + +#: ccgui.glade:146 ccgui.glade:437 +msgid "<span color=\"white\">Description</span>" +msgstr "<span color=\"white\">Popis</span>" + +#: ccgui.glade:196 +msgid "Please wait.." +msgstr "Čekejte prosím..." + +#: ccgui.glade:206 +msgid "Working..." +msgstr "Pracuji..." + +#: ccgui.glade:239 +msgid " " +msgstr "" + +#: ccgui.glade:258 +msgid "About ABRT" +msgstr "O ABRTu" + +#: ccgui.glade:264 +msgid "(C) 2009 Red Hat, Inc." +msgstr "" + +#: ccgui.glade:265 +msgid "" +"This program is free software; you can redistribute it and/or modify it " +"under the terms of the GNU General Public License as published by the Free " +"Software Foundation; either version 2 of the License, or (at your option) " +"any later version.\n" +"\n" +"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.\n" +"\n" +"You should have received a copy of the GNU General Public License along with " +"this program. If not, see <http://www.gnu.org/licenses/>." +msgstr "" + +#: ccgui.glade:479 +msgid "<b>Not reported!</b>" +msgstr "<b>Nereportováno!</b>" diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index e96db2bf..d36eb734 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -21,6 +21,21 @@ try: except Exception, ex: rpm = None + +PROGNAME = "abrt" +import locale +try: + locale.setlocale (locale.LC_ALL, "") +except locale.Error, e: + import os + os.environ['LC_ALL'] = 'C' + locale.setlocale (locale.LC_ALL, "") +import gettext +gettext.bind_textdomain_codeset(PROGNAME,locale.nl_langinfo(locale.CODESET)) +gettext.bindtextdomain(PROGNAME, '/usr/share/locale') +gettext.textdomain(PROGNAME) +_ = lambda x: gettext.lgettext(x) + #installExceptionHandler("abrt-gui", "0.0.7") class MainWindow(): |