Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/ufo-ai/files: ufo-ai-2.4-locale.patch
Date: Tue, 01 May 2012 09:10:40
Message-Id: 20120501091028.BD9962004C@flycatcher.gentoo.org
1 scarabeus 12/05/01 09:10:28
2
3 Added: ufo-ai-2.4-locale.patch
4 Log:
5 Version bump to the latest release. Upstream now use hand-crafted build system :/ Fix locale init.
6
7 (Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-strategy/ufo-ai/files/ufo-ai-2.4-locale.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/files/ufo-ai-2.4-locale.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/files/ufo-ai-2.4-locale.patch?rev=1.1&content-type=text/plain
14
15 Index: ufo-ai-2.4-locale.patch
16 ===================================================================
17 diff -urN ufoai-2.4-source.old//src/client/cl_main.c ufoai-2.4-source/src/client/cl_main.c
18 --- ufoai-2.4-source.old//src/client/cl_main.c 2012-05-01 10:59:51.720868619 +0200
19 +++ ufoai-2.4-source/src/client/cl_main.c 2012-05-01 11:00:57.235869759 +0200
20 @@ -1180,7 +1180,11 @@
21 if (fs_i18ndir->string[0] != '\0')
22 Q_strncpyz(languagePath, fs_i18ndir->string, sizeof(languagePath));
23 else
24 +#ifdef LOCALEDIR
25 + Q_strncpyz(languagePath, LOCALEDIR, sizeof(languagePath));
26 +#else
27 Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", FS_GetCwd());
28 +#endif
29 Com_DPrintf(DEBUG_CLIENT, "...using mo files from %s\n", languagePath);
30 bindtextdomain(TEXT_DOMAIN, languagePath);
31 bind_textdomain_codeset(TEXT_DOMAIN, "UTF-8");