|
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
|
Classes | |
| struct | DekiEditor::Localization::Language |
| class | DekiEditor::Localization::ScopedPackage |
| While it lives, Tr and TrLabel look in package's own table first, so text a package's class shows (its component, property and enum names) reads as that package translates it even when the editor or another package translates the same English word differently: deki-fsm's "Add" (an arithmetic operation) is not the editor's "Add" button. More... | |
Namespaces | |
| namespace | DekiEditor |
| namespace | DekiEditor::Localization |
Functions | |
| const char * | DekiEditor::Tr (const char *english) |
| english in the current language, or english itself when there is no translation. | |
| const char * | DekiEditor::TrLabel (const char *label) |
| An ImGui label in the current language: the translated text before any "##", then "###" and the English label, so the ID never changes. | |
| constexpr const char * | DekiEditor::TrMark (const char *english) |
| Marks English text for translation where it is written, in a table of labels, without translating it: whatever shows it later passes it to Tr(). | |
| const std::vector< Language > & | DekiEditor::Localization::Languages () |
| Every language the editor offers, English first. | |
| const std::string & | DekiEditor::Localization::Current () |
| The language text is shown in, such as "en" or "ja". | |
| void | DekiEditor::Localization::SetLanguage (const std::string &code) |
| Shows text in another language from now on and remembers it for the next session. | |
| void | DekiEditor::Localization::UseLanguage (const std::string &code) |
| Shows text in another language for this session only, without saving it. | |
| void | DekiEditor::Localization::Load () |
| Reads the language saved in the editor settings and the editor's own tables. | |
| void | DekiEditor::Localization::AddTableDirectory (const std::string &dir, const std::string &package="") |
Adds the translations in dir/.json and in every file of
dir/ | |
| uint32_t | DekiEditor::Localization::Generation () |
| Changes whenever the language or a table changes, for caches of translated text. | |