TranslateFunc

typealias TranslateFunc = (str: String, <Error class: unknown class>?) -> String

The type of functions which are used to translate user-visible strings, for output.

  • param str the untranslated string

  • param data user data specified when installing the function, e.g. in g_option_group_set_translate_func()

  • return a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.