aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-01-06 01:41:14 +0800
committerpav <pav@FreeBSD.org>2004-01-06 01:41:14 +0800
commit0eea879a6f538f5a46eb7705ddf3cd356274cb83 (patch)
tree82123c272b66d7f2402a4c8a361a7dba6bb525e4 /deskutils
parent24e0296a7d1af346e07339f36e7b5514316dfe73 (diff)
downloadfreebsd-ports-gnome-0eea879a6f538f5a46eb7705ddf3cd356274cb83.tar.gz
freebsd-ports-gnome-0eea879a6f538f5a46eb7705ddf3cd356274cb83.tar.zst
freebsd-ports-gnome-0eea879a6f538f5a46eb7705ddf3cd356274cb83.zip
- 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
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/gdesklets/Makefile1
-rw-r--r--deskutils/gdesklets/files/patch-utils::i18n.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/deskutils/gdesklets/Makefile b/deskutils/gdesklets/Makefile
index d83c9488b9b0..d4f36ca65fcd 100644
--- a/deskutils/gdesklets/Makefile
+++ b/deskutils/gdesklets/Makefile
@@ -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}
diff --git a/deskutils/gdesklets/files/patch-utils::i18n.py b/deskutils/gdesklets/files/patch-utils::i18n.py
new file mode 100644
index 000000000000..f62cd5a201d3
--- /dev/null
+++ b/deskutils/gdesklets/files/patch-utils::i18n.py
@@ -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