summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-10-28 18:44:49 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-12-19 15:31:01 +0100
commit74db157b9406594a549a70415668dd6cbe17d1d3 (patch)
treed47451181a77cc1b03a55d63d49a9fecc98eb044 /gui/objects.hpp
parentgui: stock theme rework (diff)
downloadandroid_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar
android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.gz
android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.bz2
android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.lz
android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.xz
android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.zst
android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.zip
Diffstat (limited to '')
-rw-r--r--gui/objects.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index 3d217c45f..438905b96 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -43,6 +43,15 @@ using namespace rapidxml;
#define TW_Y_OFFSET 0
#endif
+struct translate_later_struct {
+ std::string resource_name; // Name of the string resource for looking up
+ std::string default_value; // Default in case we don't find the string resource
+ std::string color; // Color for the console... normal, highlight, warning, error
+ std::string format; // Formatted extra variables like %i, %s
+ std::string text; // Final, translated, formatted text
+ bool inline_format; // Indicates if the final text includes an inlined format variable
+};
+
class RenderObject
{
public:
@@ -356,6 +365,7 @@ protected:
int cancelbackup(std::string arg);
int checkpartitionlifetimewrites(std::string arg);
int mountsystemtoggle(std::string arg);
+ int setlanguage(std::string arg);
int simulate;
};
@@ -734,6 +744,7 @@ public:
virtual size_t GetItemCount();
virtual void RenderItem(size_t itemindex, int yPos, bool selected);
virtual void NotifySelect(size_t item_selected);
+ static void Translate_Now();
protected:
enum SlideoutState
{