diff options
author | Ben Castricum | 2014-11-25 21:15:17 +0100 |
---|---|---|
committer | Thierry Crozat | 2014-11-29 13:40:24 +0000 |
commit | 235f299db5af6f82bf2b644dea768734c381d09f (patch) | |
tree | adb9b35692ff686714773910acc6519aaebda980 | |
parent | aa70e73e2526073129ab3dc942037bc57631ef7c (diff) | |
download | scummvm-rg350-235f299db5af6f82bf2b644dea768734c381d09f.tar.gz scummvm-rg350-235f299db5af6f82bf2b644dea768734c381d09f.tar.bz2 scummvm-rg350-235f299db5af6f82bf2b644dea768734c381d09f.zip |
I18N: Fix missing translation entries
The last translation entry of a .po file was not properly handled.
-rw-r--r-- | devtools/create_translations/po_parser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/devtools/create_translations/po_parser.cpp b/devtools/create_translations/po_parser.cpp index 7882502ca4..ecc3ba540c 100644 --- a/devtools/create_translations/po_parser.cpp +++ b/devtools/create_translations/po_parser.cpp @@ -332,6 +332,13 @@ PoMessageEntryList *parsePoFile(const char *file, PoMessageList& messages) { strcat(currentBuf, stripLine(line)); } } + if (currentBuf == msgstrBuf) { + // add last entry + if (*msgstrBuf != '\0' && !fuzzy) { + messages.insert(msgidBuf); + list->addMessageEntry(msgstrBuf, msgidBuf, msgctxtBuf); + } + } fclose(inFile); return list; |