Mercurial > minori
diff src/core/config.cc @ 108:2004b41d4a59
*: huge commit
1. WORKING LOCALIZATION + translation for Spanish and British English
2. idk like 2 changes for the dark theme :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 23:31:49 -0500 |
parents | b315f3759c56 |
children | 254b1d2b7096 |
line wrap: on
line diff
--- a/src/core/config.cc Sun Nov 05 17:44:49 2023 -0500 +++ b/src/core/config.cc Sun Nov 05 23:31:49 2023 -0500 @@ -41,6 +41,7 @@ file.read(ini); service = Translate::ToService(ini.get("General").get("Service")); + locale.SetActiveLocale(QLocale(Strings::ToQString(ini.get("General").get("Locale")))); anime_list.language = Translate::ToLanguage(ini.get("Anime List").get("Title language")); anime_list.display_aired_episodes = string_to_bool(ini.get("Anime List").get("Display only aired episodes"), true); anime_list.display_available_episodes = string_to_bool(ini.get("Anime List").get("Display only available episodes in library"), true); @@ -62,6 +63,7 @@ mINI::INIStructure ini; ini["General"]["Service"] = Translate::ToString(service); + ini["General"]["Locale"] = Strings::ToUtf8String(locale.GetLocale().name()); ini["Anime List"]["Title language"] = Translate::ToString(anime_list.language); ini["Anime List"]["Display only aired episodes"] = bool_to_string(anime_list.display_aired_episodes); ini["Anime List"]["Display only available episodes in library"] = bool_to_string(anime_list.display_available_episodes);