Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/locale/msgfmt.cc')
-rw-r--r--intern/locale/msgfmt.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/locale/msgfmt.cc b/intern/locale/msgfmt.cc
index 17720adfa48..4779450bd1b 100644
--- a/intern/locale/msgfmt.cc
+++ b/intern/locale/msgfmt.cc
@@ -228,7 +228,7 @@ void make(const char *input_file_name,
}
// Record a fuzzy mark.
if (starts_with(l, "#,") && l.find("fuzzy") != std::string::npos) {
- fuzzy = 1;
+ fuzzy = true;
}
// Skip comments
if (l[0] == '#') {
@@ -316,6 +316,12 @@ void make(const char *input_file_name,
// Skip empty lines.
l = trim(l);
if (l.empty()) {
+ if (section == SECTION_STR) {
+ add(msgctxt, msgid, msgstr, fuzzy);
+ msgctxt = msgid = msgstr = "";
+ section = SECTION_NONE;
+ fuzzy = false;
+ }
continue;
}
l = unescape(l);