My favorites
▼
|
Sign in
mandriva-lxde
LXDE for Mandriva - changes rather upstream projects
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
3
attachment: mdvinput-1.6.2-missing-locale.patch
(584 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -Naur mdvinput-1.6.2/mdvinput/mdvinput.py mdvinput-1.6.2.locale/mdvinput/mdvinput.py
--- mdvinput-1.6.2/mdvinput/mdvinput.py 2011-08-23 20:22:09.000000000 +0300
+++ mdvinput-1.6.2.locale/mdvinput/mdvinput.py 2012-10-29 13:03:48.896160237 +0300
@@ -35,8 +35,13 @@
gettext.bindtextdomain(APP, DIR)
gettext.textdomain(APP)
-lang = gettext.translation(APP, DIR)
-_ = lang.gettext
+
+try:
+ lang = gettext.translation(APP, DIR)
+ _ = lang.gettext
+except:
+ print "WARNING: No translations found for your language, using default"
+
gettext.install(APP, DIR)
class mdvinput:
Powered by
Google Project Hosting