[or-cvs] r21314: {website} quick fix for nb and sv (website/trunk)

runa at seul.org runa at seul.org
Tue Dec 22 11:08:55 UTC 2009


Author: runa
Date: 2009-12-22 06:08:55 -0500 (Tue, 22 Dec 2009)
New Revision: 21314

Modified:
   website/trunk/po2wml.sh
Log:
quick fix for nb and sv

Modified: website/trunk/po2wml.sh
===================================================================
--- website/trunk/po2wml.sh	2009-12-22 04:39:52 UTC (rev 21313)
+++ website/trunk/po2wml.sh	2009-12-22 11:08:55 UTC (rev 21314)
@@ -113,8 +113,32 @@
 			fi
 		fi
 		
+		# If the current directory is "nb" use "no" instead
+		if [ $subdir = "nb" ]
+		then
+			po4a-translate -f wml -m "$english" -p "$file" -l "$wmldir/no/tmp-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"	
+
+			# Check to see if the file was written
+			if [ -e "$wmldir/no/tmp-$wmlfile" ]
+			then
+				mv "$wmldir/no/tmp-$wmlfile" "$wmldir/no/$wmlfile"
+			fi
+		fi
+
+		# If the current directory is "sv" use "se" instead
+		if [ $subdir = "sv" ]
+		then
+			po4a-translate -f wml -m "$english" -p "$file" -l "$wmldir/se/tmp-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"
+
+			# Check to see if the file was written
+			if [ -e "$wmldir/se/tmp-$wmlfile" ]
+			then
+				mv "$wmldir/se/tmp-$wmlfile" "$wmldir/se/$wmlfile"
+			fi
+		fi
+
 		# Convert everything else
-		if ([ $subdir != "en" ] && [ $subdir != "zh_CN" ])
+		if [[ $subdir != "en" && $subdir != "zh_CN" && $subdir != "nb" && $subdir != "sv" ]]
 		then
 			po4a-translate -f wml -m "$english" -p "$file" -l "$wmldir/$subdir/tmp-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"
 
@@ -139,9 +163,33 @@
 				mv "$wmldir/$subdir/zh-cn/tmp-$wmlfile" "$wmldir/$subdir/zh-cn/$wmlfile"
 			fi
 		fi
+
+		# If the current language is "nb" use "no" instead
+		if [ $lang = "nb" ]
+		then
+			po4a-translate -f wml -m "$english" -p "$file" -l "$wmldir/$subdir/no/tmp-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"
+
+			# Check to see if the file was written
+			if [ -e "$wmldir/$subdir/no/tmp-$wmlfile" ]
+			then
+				mv "$wmldir/$subdir/no/tmp-$wmlfile" "$wmldir/$subdir/no/$wmlfile"
+			fi
+		fi
+
+		# If the current language is "sv" use "se" instead
+		if [ $lang = "sv" ]
+		then
+			po4a-translate -f wml -m "$english" -p "$file" -l "$wmldir/$subdir/se/tmp-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"
+
+			# Check to see if the file was written
+			if [ -e "$wmldir/$subdir/se/tmp-$wmlfile" ]
+			then
+				mv "$wmldir/$subdir/se/tmp-$wmlfile" "$wmldir/$subdir/se/$wmlfile"
+			fi
+		fi
 		
 		# Convert everything else
-		if ([ $lang != "en" ] && [ $lang != "zh_CN" ])
+		if [[ $lang != "en" && $lang != "zh_CN" && $lang != "nb" && $lang != "sv" ]]
 		then
 			po4a-translate -f wml -m "$english" -p "$file" -l "$wmldir/$subdir/$lang/tmp-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"
 



More information about the tor-commits mailing list