From fa455bcef176b1c777669a7c600ee9ccb3660273 Mon Sep 17 00:00:00 2001 From: Basil Date: Tue, 26 Feb 2013 09:35:02 +0000 Subject: more correct log output in case of /plugin:"/path/to/english/templateplugin.txt" command line parameter specified. git-svn-id: http://svn.miranda-ng.org/main/trunk@3776 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/lpgen/translate.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/lpgen/translate.js b/tools/lpgen/translate.js index bddfe8b5a0..bdaa17fa7a 100644 --- a/tools/lpgen/translate.js +++ b/tools/lpgen/translate.js @@ -119,9 +119,12 @@ if (WScript.Arguments.Named.Item("plugin")) { TranslateTemplateFile(WScript.Arguments.Named.Item("plugin"),cmdline_file_array,cmdline_untranslated_array); //Output results to scriptpath folder. WriteToUnicodeFile(cmdline_file_array,traslated_cmdline_file); + if (log) WScript.Echo("Translated file: "+traslated_cmdline_file); //if there is something untranslated in cmdline_untranslated_array, output to file - if (cmdline_untranslated_array.length>0) WriteToUnicodeFile(cmdline_untranslated_array,untranslated_cmdline_file); - if (log) WScript.Echo("files here:\r\n"+traslated_cmdline_file+"\r\n"+untranslated_cmdline_file); + if (cmdline_untranslated_array.length>0) { + WriteToUnicodeFile(cmdline_untranslated_array,untranslated_cmdline_file); + if (log) WScript.Echo("Untranslated file: "+traslated_cmdline_file); + } //We are done, quit. WScript.Quit(); } -- cgit v1.2.3