[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r15017: Localize Pidgin Remove locales we don't need to save a bit o (in torbrowser/trunk/build-scripts: . config)



Author: sjm217
Date: 2008-06-07 16:52:00 -0400 (Sat, 07 Jun 2008)
New Revision: 15017

Added:
   torbrowser/trunk/build-scripts/config/PidginPortableSettings.ini
Modified:
   torbrowser/trunk/build-scripts/Makefile
Log:
Localize Pidgin
Remove locales we don't need to save a bit of space

Modified: torbrowser/trunk/build-scripts/Makefile
===================================================================
--- torbrowser/trunk/build-scripts/Makefile	2008-06-07 20:48:38 UTC (rev 15016)
+++ torbrowser/trunk/build-scripts/Makefile	2008-06-07 20:52:00 UTC (rev 15017)
@@ -23,7 +23,7 @@
 PIDGIN_SRC=/c/build/PidginPortable
 
 ## Do we install Pidgin?
-USE_PIDGIN=0
+USE_PIDGIN=1
 
 ## Location of utility applications
 SEVENZIP="/c/Program Files/7-Zip/7z.exe"
@@ -176,6 +176,7 @@
 	cp $(CONFIG_SRC)/PidginPortable.ini $(DEST)/PidginPortable
 	mkdir -p $(DEST)/PidginPortable/Data/settings/.purple
 	cp $(CONFIG_SRC)/prefs.xml $(DEST)/PidginPortable/Data/settings/.purple
+	cp $(CONFIG_SRC)/PidginPortableSettings.ini $(DEST)/PidginPortable/Data/settings
 endif
 	## Configure Vidalia
 ifeq ($(USE_PIDGIN),1)
@@ -227,7 +228,7 @@
 	LANGCODE=$* make split-bundle-localized
 
 bundle-localized_%.stamp:
-	make copy-files_$* install-extensions patch-vidalia-language patch-firefox-language
+	make copy-files_$* install-extensions patch-vidalia-language patch-firefox-language patch-pidgin-language
 	touch bundle-localized_$*.stamp
 
 bundle-localized: bundle-localized_$(LANGCODE).stamp
@@ -264,6 +265,15 @@
 	## Patch Vidalia
 	./patch-vidalia-language.sh $(BUNDLE)/Data/Vidalia/vidalia.conf $(LANGCODE)
 
+## Set the language for Pidgin
+patch-pidgin-language:
+	## Patch Pidgin
+ifeq ($(USE_PIDGIN),1)
+	./patch-pidgin-language.sh $(BUNDLE)/PidginPortable/Data/settings/PidginPortableSettings.ini $(LANGCODE) \
+                                   $(BUNDLE)/PidginPortable/App/Pidgin/locale \
+                                   $(BUNDLE)/PidginPortable/App/GTK/share/locale
+endif
+
 patch-firefox-language:
 	## Patch Firefox prefs.js
 	./patch-firefox-language.sh $(BUNDLE)/FirefoxPortable/App/DefaultData/profile/prefs.js $(LANGCODE)

Added: torbrowser/trunk/build-scripts/config/PidginPortableSettings.ini
===================================================================
--- torbrowser/trunk/build-scripts/config/PidginPortableSettings.ini	                        (rev 0)
+++ torbrowser/trunk/build-scripts/config/PidginPortableSettings.ini	2008-06-07 20:52:00 UTC (rev 15017)
@@ -0,0 +1,4 @@
+[PidginPortableSettings]
+LastDriveLetter=C:
+[Language]
+PIDGINLANG=PIDGINLOCALE
\ No newline at end of file