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.
This commit is contained in:
parent
827ccc343f
commit
6654ec7de7
@ -228,7 +228,7 @@ void make(const char *input_file_name,
|
|||||||
}
|
}
|
||||||
// Record a fuzzy mark.
|
// Record a fuzzy mark.
|
||||||
if (starts_with(l, "#,") && l.find("fuzzy") != std::string::npos) {
|
if (starts_with(l, "#,") && l.find("fuzzy") != std::string::npos) {
|
||||||
fuzzy = 1;
|
fuzzy = true;
|
||||||
}
|
}
|
||||||
// Skip comments
|
// Skip comments
|
||||||
if (l[0] == '#') {
|
if (l[0] == '#') {
|
||||||
@ -317,8 +317,10 @@ void make(const char *input_file_name,
|
|||||||
l = trim(l);
|
l = trim(l);
|
||||||
if (l.empty()) {
|
if (l.empty()) {
|
||||||
if (section == SECTION_STR) {
|
if (section == SECTION_STR) {
|
||||||
|
add(msgctxt, msgid, msgstr, fuzzy);
|
||||||
msgctxt = msgid = msgstr = "";
|
msgctxt = msgid = msgstr = "";
|
||||||
section = SECTION_NONE;
|
section = SECTION_NONE;
|
||||||
|
fuzzy = false;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user