From: Eugene Gagarin Date: Tue, 24 Feb 2009 07:50:12 +0000 (+0300) Subject: changed locale path to /usr/share/locale in findit.py X-Git-Tag: releases/0.1.0~40 X-Git-Url: https://vcs.maemo.org/git/?p=findit;a=commitdiff_plain;h=68c3f774951391ce3e1b1e2ff6c452c64791ed19 changed locale path to /usr/share/locale in findit.py --- diff --git a/AUTHORS b/AUTHORS index 2176501..0cb66c2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -8,9 +8,9 @@ Wall * Developer, Coder (active) * Email: -mosfet +Eugene Gagarin * Package-developer, Coder (active) - * Email: + * Email: mosfet07@ya.ru alex2ndr * Package-developer, Coder (active) diff --git a/findit.desktop b/findit.desktop index 17748ae..82d6427 100644 --- a/findit.desktop +++ b/findit.desktop @@ -3,10 +3,10 @@ Version=1.0 Encoding=UTF-8 Name=FindIT Exec=/usr/bin/findit -Icon=findit_icon_26x26 +Icon=findit Type=Application StartupWMClass=MainWindow X-Icon-path=/usr/share/icons -X-Window-Icon=findit_icon_26x26 +X-Window-Icon=findit X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable \ No newline at end of file diff --git a/findit.py b/findit.py index 93608ef..8ead602 100755 --- a/findit.py +++ b/findit.py @@ -19,16 +19,16 @@ except: hildonFound = False try: # Подразумевается, что ru/LC_MESSAGES/program.mo находится в текущем каталоге (sys.path[0]) # Для стандартного /usr/share/locale писать gettext.translation('findit') - langRU = gettext.translation('findit', sys.path[0], languages=['ru']) + #langRU = gettext.translation('findit', sys.path[0], languages=['ru']) + langRU = gettext.translation('findit') langRU.install() except: + # Закомментировать перед использованием pygettext def _(text): return text -if hildonFound: - winType = hildon.Window -else: - winType = gtk.Window +if hildonFound: winType = hildon.Window +else: winType = gtk.Window ### Common functions ###########################################################