GLib.strip_context
function strip_context(msgid: String, msgval: String): String { // Gjs wrapper for g_strip_context() }
An auxiliary function for gettext() support (see Q_()).
Since 2.4
- msgid
a string
- msgval
another string
- Returns
msgval, unless msgval is identical to msgid and contains a '|' character, in which case a pointer to the substring of msgid after the first '|' character is returned.