mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-14 03:07:08 +12:00
Qt: Add translation support (#664)
* Translation PoC * i18n but better * More Greek translation * Add proper translation UI * Linux CI: Install qt6-tools-dev
This commit is contained in:
parent
28461a1d44
commit
bfdc6f0240
11 changed files with 1656 additions and 7 deletions
|
@ -141,6 +141,7 @@ void EmulatorConfig::load() {
|
|||
|
||||
frontendSettings.theme = FrontendSettings::themeFromString(toml::find_or<std::string>(ui, "Theme", "dark"));
|
||||
frontendSettings.icon = FrontendSettings::iconFromString(toml::find_or<std::string>(ui, "WindowIcon", "rpog"));
|
||||
frontendSettings.language = toml::find_or<std::string>(ui, "Language", "en");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -202,6 +203,7 @@ void EmulatorConfig::save() {
|
|||
|
||||
data["UI"]["Theme"] = std::string(FrontendSettings::themeToString(frontendSettings.theme));
|
||||
data["UI"]["WindowIcon"] = std::string(FrontendSettings::iconToString(frontendSettings.icon));
|
||||
data["UI"]["Language"] = frontendSettings.language;
|
||||
|
||||
std::ofstream file(path, std::ios::out);
|
||||
file << data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue