CTranslate



Stores translation. You can use it in internationalization. Just add languages having translations and use t method to translate your keys. In case there is no translation, the key will be returned. For example, Application->Translate->t(L"app", L"First name");.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CTranslate :public virtual ITranslate
{
public:
    String getLanguage() override;

    bool setLanguage(const String &value) override;

    String t(const String &category, const String &key) override;
    String t(const String &category, const String &key, const Params ¶ms) override;

    bool Add(const String &language, const String &category, const String &key, const String &value) override;
    bool Set(const String &language, const String &category, const String &key, const String &value) override;

    CTranslate();

    static String KeyName(const Key key);
    static String Hotkey(const nitisa::Hotkey &hotkey);
    static String Month(const String &month);
    static String Day(const String &day);
};
Namespace: nitisa
Include: Nitisa/Core/Translate.h