From 1fd1e4b5f2418e3ac2909658993bfedb615537ec Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 6 May 2021 21:56:40 -0700 Subject: Change brace style to on new line, add initial deliveries view when an order entry is selected --- core/src/Utils/I18n.hpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'core/src/Utils/I18n.hpp') diff --git a/core/src/Utils/I18n.hpp b/core/src/Utils/I18n.hpp index a4dd225..6285d60 100644 --- a/core/src/Utils/I18n.hpp +++ b/core/src/Utils/I18n.hpp @@ -11,7 +11,8 @@ #include #include -class I18n { +class I18n +{ public: static inline Signal<> OnLanguageChange{}; static inline Signal<> OnUnload{}; @@ -37,19 +38,23 @@ public: static std::string_view LookupLanguage(std::string_view lang); }; -struct StringArgument { +struct StringArgument +{ std::string Value; }; -struct IntArgument { +struct IntArgument +{ int Value; }; -struct FloatArgument { +struct FloatArgument +{ double Value; }; -class BasicTranslation { +class BasicTranslation +{ private: std::string mContent; @@ -59,7 +64,8 @@ public: const char* Get() const; }; -class FormattedTranslation { +class FormattedTranslation +{ public: using Element = std::variant; using Argument = std::string; @@ -74,7 +80,8 @@ public: std::string Format(std::span args); }; -class NumericTranslation { +class NumericTranslation +{ public: // TODO }; -- cgit v1.2.3-70-g09d2