remove translate _tip in a sentence with other words
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
2c0918fc06
commit
83b8899414
@ -1006,14 +1006,7 @@ Widget msgboxContent(String type, String title, String text) {
|
||||
}
|
||||
text = words.join(': ');
|
||||
} else {
|
||||
List<String> words = text.split(' ');
|
||||
if (words.length > 1 && words[0].endsWith('_tip')) {
|
||||
words[0] = translate(words[0]);
|
||||
final rest = text.substring(words[0].length + 1);
|
||||
text = '${words[0]} ${translate(rest)}';
|
||||
} else {
|
||||
text = translate(text);
|
||||
}
|
||||
text = translate(text);
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
@ -5,15 +5,6 @@ function translate_text(text) {
|
||||
fds[i] = translate(fds[i]);
|
||||
}
|
||||
text = fds.join(': ');
|
||||
} else {
|
||||
var fds = text.split(' ');
|
||||
if (fds.length > 1 && fds[0].slice(-4) === '_tip') {
|
||||
fds[0] = translate(fds[0]);
|
||||
var rest = text.substring(fds[0].length + 1);
|
||||
text = fds[0] + ' ' + translate(rest);
|
||||
} else {
|
||||
text = translate(text);
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user