TranslationServer

    Category: Core

    Server that manages all translations.

    • void add_translation ( translation )

    Adds a Translation resource.


    • void clear ( )

    Clears the server from all translations.



    • get_locale ( ) const

    • String get_locale_name ( locale ) const

    Returns a locale’s language and its variant (e.g. “en_US” would return “English (United States)”).


    Removes the given translation from the server.


    • void set_locale ( locale )

    Returns the current locale’s translation for the given message (key).