afegit fixer de locales (textos centralitzats)

This commit is contained in:
2026-04-05 01:24:24 +02:00
parent 5ac570df0f
commit 788a883c71
9 changed files with 226 additions and 51 deletions

View File

@@ -5,6 +5,7 @@
#include <string>
#include <vector>
#include "core/locale/locale.hpp"
#include "core/rendering/menu.hpp"
#include "core/rendering/text.hpp"
#include "core/system/director.hpp"
@@ -229,7 +230,7 @@ namespace Overlay {
// Indicador de pausa persistent (cantó superior dret)
if (Director::get() && Director::get()->isPaused()) {
const char* pause_text = "PAUSA";
const char* pause_text = Locale::get("notifications.pause");
int w = font_->width(pause_text);
int x = SCREEN_W - w - 4;
int y = 4;
@@ -287,7 +288,7 @@ namespace Overlay {
if (!esc_waiting_) {
// Primera pulsació: mostra avís i consumeix
esc_waiting_ = true;
showNotification("TORNA A PULSAR ESC PER EIXIR", 2.0F);
showNotification(Locale::get("notifications.exit_double_esc"), 2.0F);
return true; // Consumit
}
// Segona pulsació: deixa passar