[Bf-blender-cvs] [44a8966] gooseberry_farm: Msgfmt: Fix for generating .mo files from .po without comments
Sergey Sharybin
noreply at git.blender.org
Wed Jun 17 16:46:17 CEST 2015
Commit: 44a8966aee3dc89f5d2e8b3516124d93fc2a8538
Author: Sergey Sharybin
Date: Sat Jun 13 14:04:47 2015 +0200
Branches: gooseberry_farm
https://developer.blender.org/rB44a8966aee3dc89f5d2e8b3516124d93fc2a8538
Msgfmt: Fix for generating .mo files from .po without comments
===================================================================
M intern/locale/msgfmt.cc
===================================================================
diff --git a/intern/locale/msgfmt.cc b/intern/locale/msgfmt.cc
index 17720ad..b47bae3 100644
--- a/intern/locale/msgfmt.cc
+++ b/intern/locale/msgfmt.cc
@@ -316,6 +316,10 @@ void make(const char *input_file_name,
// Skip empty lines.
l = trim(l);
if (l.empty()) {
+ if (section == SECTION_STR) {
+ msgctxt = msgid = msgstr = "";
+ section = SECTION_NONE;
+ }
continue;
}
l = unescape(l);
More information about the Bf-blender-cvs
mailing list