mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +07:00
Fix not translated notifications (#2715)
* Translate notification strings before they are shown. Fixes #2703 * Respect translations from active mods for placeholder translations * Revert translation call to avoid issues in multiplayer. Still works without it.
This commit is contained in:
@ -78,7 +78,7 @@ class TranslationTests {
|
||||
val placeholders = placeholderPattern.findAll(translationEntry).map { it.value }.toList()
|
||||
for (language in languages) {
|
||||
for (placeholder in placeholders) {
|
||||
val output = translations.get(translationEntry, language)
|
||||
val output = translations.getText(translationEntry, language)
|
||||
if (!output.contains(placeholder)) {
|
||||
allTranslationsHaveCorrectPlaceholders = false
|
||||
println("Placeholder `$placeholder` not found in `$language` for entry `$translationEntry`")
|
||||
|
Reference in New Issue
Block a user