ServiceMenu: utilitza "lang" per als textos
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <memory>
|
||||
#include <SDL3/SDL.h>
|
||||
#include "utils.h"
|
||||
#include "lang.h"
|
||||
|
||||
class Text;
|
||||
|
||||
@@ -131,7 +132,7 @@ private:
|
||||
switch (type)
|
||||
{
|
||||
case ValueType::BOOL:
|
||||
return (*(static_cast<bool *>(linked_variable))) ? "ON" : "OFF";
|
||||
return (*(static_cast<bool *>(linked_variable))) ? lang::getText("[SERVICE_MENU] ON") : lang::getText("[SERVICE_MENU] OFF");
|
||||
case ValueType::INT:
|
||||
return std::to_string(*(static_cast<int *>(linked_variable)));
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user