Browse code

we want pt-br not pt_BR, update the script to take care of this

Runa A. Sandvik authored on14/07/2011 09:25:54
Showing1 changed files
... ...
@@ -379,6 +379,13 @@ for file in $po ; do
379 379
 			subdir="zh-cn"
380 380
 			nosubdir
381 381
 		fi
382
+
383
+		# If the current subdirectory is "pt_BR" use "pt-br" instead
384
+		if [ $subdir = "pt_BR" ]
385
+		then
386
+			subdir="pt-br"
387
+			nosubdir
388
+		fi
382 389
 		
383 390
 		# If the current directory is "nb" use "no" instead
384 391
 		if [ $subdir = "nb" ]
... ...
@@ -402,7 +409,7 @@ for file in $po ; do
402 409
 		fi
403 410
 
404 411
 		# Convert everything else
405
-		if [[ $subdir != "en" && $subdir != "zh_CN" && $subdir != "nb" && $subdir != "sv" && $subdir != "pl_PL" ]]
412
+		if [[ $subdir != "en" && $subdir != "zh_CN" && $subdir != "pt_BR" && $subdir != "nb" && $subdir != "sv" && $subdir != "pl_PL" ]]
406 413
 		then
407 414
 			nosubdir
408 415
 		fi
... ...
@@ -414,6 +421,13 @@ for file in $po ; do
414 421
 			subdir
415 422
 		fi
416 423
 
424
+		# If the current language is "pt_BR" use "pt-br" instead
425
+		if [ $lang = "pt_BR" ]
426
+		then
427
+			lang="pt-br"
428
+			subdir
429
+		fi
430
+
417 431
 		# If the current language is "nb" use "no" instead
418 432
 		if [ $lang = "nb" ]
419 433
 		then
... ...
@@ -436,7 +450,7 @@ for file in $po ; do
436 450
 		fi
437 451
 
438 452
 		# Convert everything else
439
-		if [[ $lang != "en" && $lang != "zh_CN" && $lang != "nb" && $lang != "sv" && $lang != "pl_PL" ]]
453
+		if [[ $lang != "en" && $lang != "zh_CN" && $lang != "pt_BR" && $lang != "nb" && $lang != "sv" && $lang != "pl_PL" ]]
440 454
 		then
441 455
 			subdir
442 456
 		fi