Split to apply localization of tool names and descriptions

main
Isaiah Odhner 2020-12-10 16:03:24 -05:00
parent 2c3817b2c4
commit 44ce98bbb2
3 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,10 +41,12 @@ for (const target_lang of ["ko"]) {
const target_string = target_strings[i];
if (base_string !== target_string && base_string && target_string) {
// Split strings like "&Attributes...\tCtrl+E"
if (base_string.match(/\t/)) {
// and "Fills an area with the current drawing color.\nFill With Color"
const splitter = /\t|\r?\n/;
if (base_string.match(splitter)) {
add_localizations(
base_string.split(/\t/),
target_string.split(/\t/)
base_string.split(splitter),
target_string.split(splitter)
);
} else {
add_localization(base_string, target_string);