mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
Revert "remove translate _tip in a sentence with other words"
This reverts commit 83b8899414.
This commit is contained in:
@@ -1006,7 +1006,14 @@ Widget msgboxContent(String type, String title, String text) {
|
||||
}
|
||||
text = words.join(': ');
|
||||
} else {
|
||||
text = translate(text);
|
||||
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);
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user