Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2004 11:45:41 +0100
From:      "Franz Klammer" <klammer@webonaut.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/60920: deskutils/gdesklets: extend i18n.py to check as default also the gettext domain "gdesklets"
Message-ID:  <1073299531@ds9.webonaut.com>
Resent-Message-ID: <200401051050.i05AoOti007093@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60920
>Category:       ports
>Synopsis:       deskutils/gdesklets: extend i18n.py to check as default also the gettext domain "gdesklets"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 05 02:50:23 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Franz Klammer
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:


System: FreeBSD ds9.webonaut.com 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Mon Dec 29 15:29:56 CET 2003     root@ds9.webonaut.com:/usr/obj/usr/src/sys/DS9 i386


>Description:


* 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
* bump PORTREVISION

Obtained from: GNOME CVS (http://bugzilla.gnome.org/show_bug.cgi?id=130509)



>How-To-Repeat:





>Fix:


--- gdesklets.diff begins here ---
diff -Nur gdesklets.orig/Makefile gdesklets/Makefile
--- gdesklets.orig/Makefile	Wed Dec 31 10:24:46 2003
+++ gdesklets/Makefile	Mon Jan  5 11:30:46 2004
@@ -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 -Nur gdesklets.orig/files/patch-utils::i18n.py gdesklets/files/patch-utils::i18n.py
--- gdesklets.orig/files/patch-utils::i18n.py	Thu Jan  1 01:00:00 1970
+++ gdesklets/files/patch-utils::i18n.py	Sun Jan  4 14:37:26 2004
@@ -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
--- gdesklets.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1073299531>