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

+5
View File
@@ -10,6 +10,7 @@
#include <memory>
#include <utility>
#include "core/locale/locale.hpp"
#include "core/rendering/notifier.hpp"
#include "core/rendering/render_info.hpp"
#include "core/rendering/screen.hpp"
@@ -54,6 +55,10 @@ Director::Director() {
Screen::get().applyCrtPiParams(Options::buildCrtPiParams());
(void)Resource::Cache::get();
// Traduccions per a tots els textos visibles. Si el fitxer no existeix
// o hi ha un error de parse, Locale::text() caurà a retornar la clau.
Locale::get().load(std::string(Defaults::I18n::LOCALE_DIR) + Options::locale + ".yaml");
// Recursos compartits d'UI (paleta + font). Es carreguen abans que els
// overlays perquè tots els reaprofiten sense duplicar la lògica.
Resource::Cache::get().loadPalette("ui", "data/palettes/sega-cube.pal");