From 46fe00ac1a1566ddac83c7c189cffae07f843749 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Wed, 12 Dec 2018 21:36:45 +0900 Subject: [PATCH] CreateTranslatedRcFiles.vbs: Fix GitHub issue #113. The last translated message in *.po file was lost if the po file is not terminated with CR+LF or LF. --- ShellExtension/Languages/ShellExtensionLithuanian.rc | 2 +- Translations/ShellExtension/CreateTranslatedRcFiles.vbs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ShellExtension/Languages/ShellExtensionLithuanian.rc b/ShellExtension/Languages/ShellExtensionLithuanian.rc index 114e02432..f7f28e08b 100644 --- a/ShellExtension/Languages/ShellExtensionLithuanian.rc +++ b/ShellExtension/Languages/ShellExtensionLithuanian.rc @@ -47,7 +47,7 @@ BEGIN IDS_COMPARE_TO "Palyginti su" IDS_HELP_SAVETHIS "Iðsaugoti ðá kelià. Parinkti kità kelià ir palyginti su ðiuo keliu." IDS_HELP_COMPARESAVED "Palyginti su iðsaugotu keliu (%1)" - IDS_RESELECT_FIRST "Re-select First" + IDS_RESELECT_FIRST "Ið naujo parinkti pirmà" END #endif // Resources diff --git a/Translations/ShellExtension/CreateTranslatedRcFiles.vbs b/Translations/ShellExtension/CreateTranslatedRcFiles.vbs index 55b9907a6..ee7276a1c 100644 --- a/Translations/ShellExtension/CreateTranslatedRcFiles.vbs +++ b/Translations/ShellExtension/CreateTranslatedRcFiles.vbs @@ -176,6 +176,9 @@ Function GetTranslationsFromPoFile(ByVal sPoPath, sCharset) sMsgStr = "" End If Loop + If (sMsgId <> "") And (sMsgStr <> "") And (sMsgId <> sMsgStr) Then 'If translated... + oTranslations.Add sMsgId, sMsgStr + End If oTextFile.Close End If Set GetTranslationsFromPoFile = oTranslations -- 2.11.0