Update Traditional Chinese translation (#392)
* Update Phrase to make strings correctly split by fullwidth colons (U+FF1A) * Fix Traditional Chinese translation * Replace U+FF1A with `: `
This commit is contained in:
parent
703c36f356
commit
4cce566e37
2 changed files with 97 additions and 95 deletions
|
|
@ -216,7 +216,8 @@ public enum Phrase {
|
|||
|
||||
final private static Set<Phrase> HEADERS = new HashSet<>(Arrays.asList(Phrase.CONTAINER_HEADER, Phrase.HELP_HEADER, Phrase.INTERACTIONS_HEADER, Phrase.LOOKUP_HEADER, Phrase.SIGN_HEADER, Phrase.UPDATE_HEADER));
|
||||
final private static Set<String> COLORS = new HashSet<>(Arrays.asList(Color.WHITE, Color.DARK_AQUA));
|
||||
final private static String split = ":";
|
||||
final private static String SPLIT = ":";
|
||||
final private static String FULL_WIDTH_SPLIT = ":";
|
||||
|
||||
public String getPhrase() {
|
||||
return Language.getPhrase(this);
|
||||
|
|
@ -265,7 +266,8 @@ public enum Phrase {
|
|||
}
|
||||
|
||||
if (color.length() > 0) {
|
||||
output = output.replaceFirst(split, split + color);
|
||||
output = output.replaceFirst(SPLIT, SPLIT + color);
|
||||
output = output.replaceFirst(FULL_WIDTH_SPLIT, FULL_WIDTH_SPLIT + color);
|
||||
output = ChatMessage.parseQuotes(output, color);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue