mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- 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:
parent
2f39ffb4bb
commit
345399ae9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97381
@ -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}
|
||||
|
13
deskutils/gdesklets/files/patch-utils::i18n.py
Normal file
13
deskutils/gdesklets/files/patch-utils::i18n.py
Normal 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
|
Loading…
Reference in New Issue
Block a user