geforkt von Mirrors/Paper
Fix server ignoring fallback for translatable components (#9134)
Dieser Commit ist enthalten in:
Ursprung
992e145a16
Commit
b4e413f624
@ -58,4 +58,5 @@ Jakubk15 <jakubk15@protonmail.com>
|
||||
Redned <redned235@gmail.com>
|
||||
Luke Chambers <consolelogluke@gmail.com>
|
||||
Emily <emilia.lopezf.1999@gmail.com>
|
||||
dawon <dawon@dawon.eu>
|
||||
```
|
||||
|
@ -799,7 +799,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ final @NotNull String translated = Language.getInstance().getOrDefault(translatable.key());
|
||||
+ final @Nullable String fallback = translatable.fallback();
|
||||
+ final @NotNull String translated = Language.getInstance().getOrDefault(translatable.key(), fallback != null ? fallback : translatable.key());
|
||||
+
|
||||
+ final Matcher matcher = LOCALIZATION_PATTERN.matcher(translated);
|
||||
+ final List<Component> args = translatable.args();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren