diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-13 15:04:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-18 18:24:19 +0300 |
commit | c00d4a610f28858987285b6e78ee63c5bd18b6d0 (patch) | |
tree | f2f9afcfb16c2eb2a8334854f392d4bd39d96053 | |
parent | a7f5b6bdc24b762254d50deb16bb152374fd9d16 (diff) |
Msgfmt: Fix for generating .mo files from .po without comments
-rw-r--r-- | intern/locale/msgfmt.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/locale/msgfmt.cc b/intern/locale/msgfmt.cc index 17720adfa48..b47bae31dba 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); |