[Bf-blender-cvs] [c00d4a6] blender-v2.75-release: Msgfmt: Fix for generating .mo files from .po without comments
Sergey Sharybin
noreply at git.blender.org
Thu Jun 18 17:37:52 CEST 2015
Commit: c00d4a610f28858987285b6e78ee63c5bd18b6d0
Author: Sergey Sharybin
Date: Sat Jun 13 14:04:47 2015 +0200
Branches: blender-v2.75-release
https://developer.blender.org/rBc00d4a610f28858987285b6e78ee63c5bd18b6d0
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