Gimp.PlugIn.prototype.set_translation_domain
function set_translation_domain(domain_name: String, domain_path: Gio.File): void {
// Gjs wrapper for gimp_plug_in_set_translation_domain()
}
Sets a textdomain for localisation for the plug_in.
This function adds a textdomain to the list of domains Gimp searches for strings when translating its menu entries. There is no need to call this function for plug-ins that have their strings included in the 'gimp-std-plugins' domain as that is used by default. If the compiled message catalog is not in the standard location, you may specify an absolute path to another location.
This function can only be called in the [vfunc@PlugIn.query_procedures] function of a plug-in.
Since 3.0
- domain_name
The name of the textdomain (must be unique).
- domain_path
A file pointing to the compiled message catalog (may be null).