Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract L10 text from main class #142

Open
scarf005 opened this issue Mar 3, 2023 · 0 comments
Open

extract L10 text from main class #142

scarf005 opened this issue Mar 3, 2023 · 0 comments
Labels
localization Bugs and enhancements related to translation refactor Refactorings and kotlin migration

Comments

@scarf005
Copy link
Owner

scarf005 commented Mar 3, 2023

Summary

private fun loadoutText(): LoadoutText = when (Settings.language) {
GameLanguage.ZHS -> LoadoutText(
title = """普通的魔法使""",
flavor = """住在魔法森林的魔法使。 NL 善长于光和热的魔法。"""
)
GameLanguage.JPN -> LoadoutText(
title = """普通の魔法使い""",
flavor = """魔法の森に住んでいる普通の魔法使い。 NL 光と熱の魔法が得意。"""
)
GameLanguage.ZHT -> LoadoutText(
title = """普通的魔法使""",
flavor = """住在魔法森林的魔法使。 NL 善長於光和熱的魔法。"""
)
GameLanguage.KOR -> LoadoutText(
title = """평범한 마법사""",
flavor = """마법의 숲에 사는 "평범한" 마법사 입니다. NL 빛과 열 마법이 특기입니다."""
)
GameLanguage.FRA -> LoadoutText(
title = "La magicienne ordinaire",
flavor = """La magicienne "ordinaire" vie dans la forêt magique. NL Spécialisées dans la magie de la lumière et de la chaleur."""
)
else -> LoadoutText(
title = "The Ordinary Magician",
flavor = """The "ordinary" magician lives in the Forest of Magic. NL Specializes in light and heat magic."""
)
}

extract L10n texts into resources/{LANG}/UI.json

@scarf005 scarf005 added localization Bugs and enhancements related to translation refactor Refactorings and kotlin migration labels Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
localization Bugs and enhancements related to translation refactor Refactorings and kotlin migration
Projects
Status: Todo
Development

No branches or pull requests

1 participant