afegit fixer de locales (textos centralitzats)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user