Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  7 Jan 2006 12:40:51 -0700 (MST)
From:      Byung-Hee HWANG <bh@izb.knu.ac.kr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/91473: [PATCH] multimedia/quodlibet, i18n problem with quodlibet.mo
Message-ID:  <20060107194051.5C4696520@viola.izb.knu.ac.kr>
Resent-Message-ID: <200601071950.k07Jo37j007232@freefall.freebsd.org>

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

>Number:         91473
>Category:       ports
>Synopsis:       [PATCH] multimedia/quodlibet, i18n problem with quodlibet.mo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 07 19:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Byung-Hee HWANG
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
InZealBomb
>Environment:
System: FreeBSD viola.izb.knu.ac.kr 6.0-STABLE FreeBSD 6.0-STABLE #2: Sat Jan 7 01:43:50 MST 2006 bh@viola.izb.knu.ac.kr:/usr/src/sys/i386/compile/II82801BA i386

>Description:
QuodLibet's <lang>.mo [1], quodlibet.mo, is not found by default on FreeBSD.
The path of i18ndir is responsible for it. 

[1] <URL:http://www.sacredchao.net/quodlibet/wiki/Development/Translation>;

>How-To-Repeat:
After patch and re-install, I tried as follow:

% env LANG=de_DE.UTF-8 quodlibet
% env LANG=ru_RU.UTF-8 quodlibet
...
% env LANG=<other-lang>.UTF-8 quodlibet
...

It worked correctly.

>Fix:
This is the patch file. Please, put it into ${FILESDIR}.

--- patch-quodlibet.py begins here ---
--- quodlibet.py.orig	2005-12-12 15:43:59.000000000 -0700
+++ quodlibet.py	2006-01-07 11:25:44.773179056 -0700
@@ -273,15 +273,15 @@
             basedir = os.getcwd()
     if basedir.endswith("/share/quodlibet"):
         sys.path.append(basedir[:-15] + "lib/quodlibet")
-    i18ndir = "/usr/share/locale"
+    i18ndir = "/usr/X11R6/share/locale"
 
     import locale, gettext, util
     try: locale.setlocale(locale.LC_ALL, '')
     except: pass
 
-    gettext.bindtextdomain("quodlibet")
+    gettext.bindtextdomain("quodlibet", i18ndir)
     gettext.textdomain("quodlibet")
-    util.gettext_install("quodlibet", unicode=True)
+    util.gettext_install("quodlibet", i18ndir, unicode=True)
     util.ctypes_init()
 
     from util import to
--- patch-quodlibet.py ends here ---

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



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