This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch win7-floor-trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 9333ae3cba6b71516544b9d66ae0d02091282d61 Author: Peter <[email protected]> AuthorDate: Fri Nov 6 23:28:08 2026 +0100 lngconvex: fall back to en-US for untranslated strings lngconvex substitutes each %PLACEHOLDER% in an .rc template from the string table of the language being written. A string that has an en-US entry but no translation yet -- every string added since the last translation round -- was left as the raw placeholder in all other language sections. setup.exe shows this: on a non-English system a failed runtime install reported "%RUNTIME_FAILED%" instead of the message, and %OS_TO_OLD% and %USER_CANCELED% had the same problem. Fall back to the en-US text. The fallback looks the en-US table up with find() so that it cannot create an empty table, which would add an extra language section to the output. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- main/shell/source/tools/lngconvex/lngconvex.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/main/shell/source/tools/lngconvex/lngconvex.cxx b/main/shell/source/tools/lngconvex/lngconvex.cxx index ad3681c939..bb91ba7936 100644 --- a/main/shell/source/tools/lngconvex/lngconvex.cxx +++ b/main/shell/source/tools/lngconvex/lngconvex.cxx @@ -273,7 +273,25 @@ public: OSL_ASSERT(prt); replacement_table_t::iterator iter = prt->find(Text); if (iter != prt->end()) + { Text = iter->second; + return; + } + + // Not translated into this language (typically a string newer than the + // last translation round): fall back to en-US. Without this the raw + // placeholder, e.g. "%RUNTIME_FAILED%", ends up in the resource and is + // what a non-English user sees. Looked up with find(), not + // get_replacement_table(), which would create a table and with it an + // extra language section in the output. + iso_lang_replacement_table_t::iterator en = + iso_lang_replacement_table_.find("en-US"); + if (en != iso_lang_replacement_table_.end()) + { + iter = en->second->find(Text); + if (iter != en->second->end()) + Text = iter->second; + } } void add_substitution(
