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->getTranslate()->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:
    CTranslate();

    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;
};
Namespace: nitisa
Include: Nitisa/Core/Translate.h