diff options
author | rtk0c <[email protected]> | 2021-05-06 21:56:40 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-05-06 21:56:40 -0700 |
commit | 1fd1e4b5f2418e3ac2909658993bfedb615537ec (patch) | |
tree | 6de080d2273890f8a74d7fcd3572bb44f44ac545 /core/src/Utils/I18n.hpp | |
parent | 538e804fc9beb83e711a210ffbb6badc15f285d5 (diff) |
Change brace style to on new line, add initial deliveries view when an order entry is selected
Diffstat (limited to 'core/src/Utils/I18n.hpp')
-rw-r--r-- | core/src/Utils/I18n.hpp | 21 |
1 files changed, 14 insertions, 7 deletions
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 <variant> #include <vector> -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<std::string, int>; using Argument = std::string; @@ -74,7 +80,8 @@ public: std::string Format(std::span<Argument> args); }; -class NumericTranslation { +class NumericTranslation +{ public: // TODO }; |