[tor-commits] r24899: {website} we want pt-br not pt_BR, update the script to take care of t (website/trunk)

Runa Sandvik runa.sandvik at gmail.com
Thu Jul 14 07:25:54 UTC 2011


Author: runa
Date: 2011-07-14 07:25:54 +0000 (Thu, 14 Jul 2011)
New Revision: 24899

Modified:
   website/trunk/po2wml.sh
Log:
we want pt-br not pt_BR, update the script to take care of this

Modified: website/trunk/po2wml.sh
===================================================================
--- website/trunk/po2wml.sh	2011-07-13 19:33:51 UTC (rev 24898)
+++ website/trunk/po2wml.sh	2011-07-14 07:25:54 UTC (rev 24899)
@@ -379,6 +379,13 @@
 			subdir="zh-cn"
 			nosubdir
 		fi
+
+		# If the current subdirectory is "pt_BR" use "pt-br" instead
+		if [ $subdir = "pt_BR" ]
+		then
+			subdir="pt-br"
+			nosubdir
+		fi
 		
 		# If the current directory is "nb" use "no" instead
 		if [ $subdir = "nb" ]
@@ -402,7 +409,7 @@
 		fi
 
 		# Convert everything else
-		if [[ $subdir != "en" && $subdir != "zh_CN" && $subdir != "nb" && $subdir != "sv" && $subdir != "pl_PL" ]]
+		if [[ $subdir != "en" && $subdir != "zh_CN" && $subdir != "pt_BR" && $subdir != "nb" && $subdir != "sv" && $subdir != "pl_PL" ]]
 		then
 			nosubdir
 		fi
@@ -414,6 +421,13 @@
 			subdir
 		fi
 
+		# If the current language is "pt_BR" use "pt-br" instead
+		if [ $lang = "pt_BR" ]
+		then
+			lang="pt-br"
+			subdir
+		fi
+
 		# If the current language is "nb" use "no" instead
 		if [ $lang = "nb" ]
 		then
@@ -436,7 +450,7 @@
 		fi
 
 		# Convert everything else
-		if [[ $lang != "en" && $lang != "zh_CN" && $lang != "nb" && $lang != "sv" && $lang != "pl_PL" ]]
+		if [[ $lang != "en" && $lang != "zh_CN" && $lang != "pt_BR" && $lang != "nb" && $lang != "sv" && $lang != "pl_PL" ]]
 		then
 			subdir
 		fi



More information about the tor-commits mailing list