new bugzilla.gnome.org entry: extend i18n.py to try default "gdesklets"-gettext domain

Franz Klammer klammer at webonaut.com
Sun Jan 4 05:42:17 PST 2004


http://bugzilla.gnome.org/show_bug.cgi?id=130509

i18n doesn't work with most gdesklets-sensors because the developers
are defining a domain but providing there files under gdesklets.mo
i've extended i18n.py to catch this.

i've submitted a PR (ports/60891) that installes the mo-files but i think
it's easier to add the attached patch to gdesklets in the meantime.

franz.

-------------- next part --------------
--- 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


More information about the freebsd-gnome mailing list