1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

[PATCH] multimedia/quodlibet, i18n problem with quodlibet.mo

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>
Submitted by:	Byung-Hee HWANG <bh@izb.knu.ac.kr>
PR:		ports/91473
Approved by:	Chang bom Yoon <changbom.yoon@gmail.com>
This commit is contained in:
Edwin Groothuis 2006-01-08 12:36:35 +00:00
parent 1e130558e5
commit 307b87971b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153060
2 changed files with 22 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= quodlibet
PORTVERSION= 0.16
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= multimedia audio python
MASTER_SITES= http://www.sacredchao.net/~piman/software/

View File

@ -0,0 +1,21 @@
--- 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