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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-29 13:26:15 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-29 13:27:59 +0300
commit6654ec7de74ac775abd2d848aa4a6c64d990c69f (patch)
treed1b604ee8c15a96154516868c084c1355a00bce0 /intern/locale
parent827ccc343ffca44fb66a7b2f53f15b20598f63e5 (diff)
Fix T45154: Translation binary file(blender.mo) for Japanese is too small
The issue was caused by some changes made to msgfmt which were needed to make modified (cleaned-up, stripped-comments messages) working. Unfortunately that fix was merged into the release branch, so this fix is to be ported there as well and verified against rc1 translations.
Diffstat (limited to 'intern/locale')
-rw-r--r--intern/locale/msgfmt.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/locale/msgfmt.cc b/intern/locale/msgfmt.cc
index b47bae31dba..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] == '#') {
@@ -317,8 +317,10 @@ void make(const char *input_file_name,
l = trim(l);
if (l.empty()) {
if (section == SECTION_STR) {
+ add(msgctxt, msgid, msgstr, fuzzy);
msgctxt = msgid = msgstr = "";
section = SECTION_NONE;
+ fuzzy = false;
}
continue;
}