summary refs log tree commit diff stats
path: root/win32
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-02 20:38:08 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-02 20:38:08 +0200
commit0986891a66e97740034e131b76912356300df45c (patch)
treeb8dfc5d64ad1459401559b30763e55b665045e65 /win32
parentca65aa7edcfdaf37c17228692d4eac29a0dedcc0 (diff)
Add NLS to GTK+
Diffstat (limited to 'win32')
-rw-r--r--win32/deps/gtk/release-x64.bat11
-rw-r--r--win32/deps/gtk/release-x86.bat11
2 files changed, 22 insertions, 0 deletions
diff --git a/win32/deps/gtk/release-x64.bat b/win32/deps/gtk/release-x64.bat
index ed4c2168..b70ebc5a 100644
--- a/win32/deps/gtk/release-x64.bat
+++ b/win32/deps/gtk/release-x64.bat
@@ -5,6 +5,17 @@ SET PACKAGE_NAME=gtk-2.24.13
 

 set GTK_SRC=%cd%

 set GTK_DEST=%cd%-rel

+set MSGFMT_PATH=..\..\msgfmt

+:: we'll go 1 level deeper

+set PATH=%PATH%;..\%MSGFMT_PATH%

+rmdir /q /s "%GTK_DEST%\share\locale"

+mkdir "%GTK_DEST%\share\locale"

+cd po

+for %%A in (*.po) do (

+mkdir "%GTK_DEST%\share\locale\%%~nA\LC_MESSAGES"

+"msgfmt" -co "%GTK_DEST%\share\locale\%%~nA\LC_MESSAGES\gtk20.mo" %%A

+)

+cd ..

 echo.Press return when ready to install!

 pause

 

diff --git a/win32/deps/gtk/release-x86.bat b/win32/deps/gtk/release-x86.bat
index 405fdc87..a759cddb 100644
--- a/win32/deps/gtk/release-x86.bat
+++ b/win32/deps/gtk/release-x86.bat
@@ -5,6 +5,17 @@ SET PACKAGE_NAME=gtk-2.24.13
 

 set GTK_SRC=%cd%

 set GTK_DEST=%cd%-rel

+set MSGFMT_PATH=..\..\msgfmt

+:: we'll go 1 level deeper

+set PATH=%PATH%;..\%MSGFMT_PATH%

+rmdir /q /s "%GTK_DEST%\share\locale"

+mkdir "%GTK_DEST%\share\locale"

+cd po

+for %%A in (*.po) do (

+mkdir "%GTK_DEST%\share\locale\%%~nA\LC_MESSAGES"

+"msgfmt" -co "%GTK_DEST%\share\locale\%%~nA\LC_MESSAGES\gtk20.mo" %%A

+)

+cd ..

 echo.Press return when ready to install!

 pause