- extend i18n.py to check as default also the gettext domain "gdesklets" to

fix i18n support on some desklets which installing there language-files as gdeklets.mo

PR:		ports/60920
Submitted by:	Franz Klammer <klammer@webonaut.com> (maintainer)
Obtained from:	http://bugzilla.gnome.org/show_bug.cgi?id=130509
This commit is contained in:
Pav Lucistnik 2004-01-05 17:41:14 +00:00
parent 2f39ffb4bb
commit 345399ae9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97381
2 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= gdesklets
PORTVERSION= 0.25.1
PORTREVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= http://www.pycage.de/download/${PORTNAME}/
DISTNAME= gDesklets-${PORTVERSION}

View file

@ -0,0 +1,13 @@
--- utils/i18n.py.orig Sun Jan 4 13:56:21 2004
+++ utils/i18n.py Sun Jan 4 14:26:10 2004
@@ -12,6 +12,9 @@
translate = gettext.translation(domain, localedir).gettext
except:
- translate = dummy
+ try:
+ translate = gettext.translation("gdesklets", localedir).gettext
+ except:
+ translate = dummy
return translate