[or-cvs] r13361: Handle cases where Vidalia's language doesn't match Mozilla (torbrowser/trunk/build-scripts)

sjm217 at seul.org sjm217 at seul.org
Sat Feb 2 18:52:38 UTC 2008


Author: sjm217
Date: 2008-02-02 13:52:37 -0500 (Sat, 02 Feb 2008)
New Revision: 13361

Modified:
   torbrowser/trunk/build-scripts/patch-language.sh
Log:
Handle cases where Vidalia's language doesn't match Mozilla

Modified: torbrowser/trunk/build-scripts/patch-language.sh
===================================================================
--- torbrowser/trunk/build-scripts/patch-language.sh	2008-02-02 14:23:35 UTC (rev 13360)
+++ torbrowser/trunk/build-scripts/patch-language.sh	2008-02-02 18:52:37 UTC (rev 13361)
@@ -11,8 +11,20 @@
 
 ## Parse command line
 FILENAME=$1
-LANGCODE=$2
+MOZLANG=$2
 
+## Handle exceptions where Mozilla language definition doesn't equal Vidalia's
+case "$MOZLANG" in
+    'es-ES') LANGCODE='es'
+    ;;
+    'pt-PT') LANGCODE='pt'
+    ;;
+    'zh-CN') LANGCODE='zh-cn'
+    ;;
+    *) LANGCODE="$MOZLANG"
+    ;;
+esac
+
 ## Backup original file
 ORIGFILENAME=$FILENAME.orig
 mv "$FILENAME" "$ORIGFILENAME"



More information about the tor-commits mailing list