Locale amb català (defecte) i anglès; Options.locale persistit a config.yaml (v0.10.0)

This commit is contained in:
JailDesigner committed 2026-04-19 12:11:42 +02:00
1 parent 1b430500f4
commit 837eb73398
11 files changed
+119 -3

No files matched your search

+3 -1
View File
@@ -258,6 +258,7 @@ namespace Options {
if (file_version != Texts::VERSION) { return saveToFile(); }
config_version = file_version;
if (yaml.contains("locale")) { Options::locale = yaml["locale"].get_value<std::string>(); }
parseWindow(yaml);
parseVideo(yaml);
parseAudio(yaml);
@@ -276,7 +277,8 @@ namespace Options {
std::ostringstream out;
out << "# Configuració d'AEE 2026. Generat automàticament; editable a mà.\n";
out << "version: \"" << config_version << "\"\n\n";
out << "version: \"" << config_version << "\"\n";
out << "locale: \"" << locale << "\"\n\n";
out << "window:\n";
out << " zoom: " << window.zoom << "\n";