changeset 30394:7681b4ac292c

Further updates to the create_nsis_translations.pl script. * Don't include the English key in the translation file when there is no native match. This allows the fallback stuff to work as intended. * Fix iconv syntax to something my iconv supports (-o doesn't work on cygwin) * Fix the Korean encoding to be something that my iconv matches * Fix an incorrectly escaped '@' in "sr@latin" * Typo fixes in the GCOMPRIS_MACRO_DEFAULT_STRING warning message It is interesting that this stuff is coming full-circle, the gcompis script was originally based on our script. :)
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 18 May 2010 19:12:37 +0000
parents 04115d048292
children 5edd3992f59d
files pidgin/win32/nsis/create_nsis_translations.pl
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/win32/nsis/create_nsis_translations.pl	Tue May 18 17:38:27 2010 +0000
+++ b/pidgin/win32/nsis/create_nsis_translations.pl	Tue May 18 19:12:37 2010 +0000
@@ -115,7 +115,7 @@
   "it" =>	["Italian", "WINDOWS-1252"],
   "ja" =>	["Japanese", "CP932"],
 #  "ka" =>	["Georgian", "UTF-8"],
-  "ko" =>	["Korean", "MSCP949"],
+  "ko" =>	["Korean", "CP949"],
   "ku" =>	["Kurdish", "WINDOWS-1254"],
   "lt" =>	["Lithuanian", "WINDOWS-1257"],
   "mk" =>	["Macedonian", "WINDOWS-1251"],
@@ -139,7 +139,7 @@
 #  "so" =>	["Somali", "UTF-8"],
   "sq" =>	["Albanian", "WINDOWS-1252"],
   "sr" =>	["Serbian", "WINDOWS-1251"],
-  "sr@latin" =>	["SerbianLatin", "WINDOWS-1250"],
+  "sr\@latin" =>	["SerbianLatin", "WINDOWS-1250"],
   "sv" =>	["Swedish", "WINDOWS-1252"],
 #  "ta" =>	["Tamil", "UTF-8"],
   "th" =>	["Thai", "WINDOWS-874"],
@@ -219,7 +219,7 @@
   !ifndef "${LABEL}"
     !define "${LABEL}" "${VALUE}"
     !ifdef INSERT_DEFAULT
-      !warning "${LANG} lang file mising ${LABEL}, using default.."
+      !warning "${LANG} lang file missing ${LABEL}, using default..."
     !endif
   !endif
 !macroend
@@ -332,18 +332,18 @@
 	}
 	# English keys are the reference.
 	# If not found they are inserted
-	if ( ! $found )
-	{
-	    print DESC "$result{'en'}{$keyEn}";
-	}
+	#if ( ! $found )
+	#{
+	#    print DESC "$result{'en'}{$keyEn}";
+	#}
     }
     close DESC;
 
     # iconv conversion
-    system("iconv -f UTF-8 -t $localeNames{$lang}[1] $tmp_dir/$lang.nsh.utf8 -o $tmp_dir/$lang.nsh");
+    system("iconv -f UTF-8 -t $localeNames{$lang}[1] $tmp_dir/$lang.nsh.utf8 > $tmp_dir/$lang.nsh");
     if ($? ne 0)
     {
-	print("ERROR: Failed to run: iconv -f UTF-8 -t $localeNames{$lang}[1] $lang.nsh.utf8 -o $lang.nsh\n");
+	die("ERROR: Failed to run: iconv -f UTF-8 -t $localeNames{$lang}[1] $lang.nsh.utf8 > $lang.nsh\n");
     }
     #`rm $tmp_dir/$lang.nsh.utf8`;