Gimp.PlugIn.set_translation_domain

@accepts(Gimp.PlugIn, unicode, Gio.File)
@returns(none)
def set_translation_domain(self, domain_name, domain_path):
    # Python wrapper for gimp_plug_in_set_translation_domain()
  

Sets a textdomain for localisation for the self.

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

self

A Gimp.PlugIn.

domain_name

The name of the textdomain (must be unique).

domain_path

A file pointing to the compiled message catalog (may be None).