<?xml version="1.0"?>
<page id="Gimp.type_set_translation_context"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_type_set_translation_context</api:name>
      <api:arg>
        <api:type>GType</api:type>
        <api:name>type</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>context</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.type_set_translation_context</title>
  <synopsis><code mime="text/x-python">
@accepts(GType, unicode)
@returns(none)
def type_set_translation_context(type, context):
    # Python wrapper for gimp_type_set_translation_context()
  </code></synopsis>
  <p>This function attaches a constant string as a translation context
to a <link href="../GLib-2.0/GLib.Type.html">GLib.Type</link>. The only purpose of this function is to use it when
registering a #G_TYPE_ENUM with translatable value names.</p>
  <p>Since 2.8</p>
<terms>
<item>
<title><code>type</code></title>
  <p>a <link href="../GLib-2.0/GLib.Type.html">GLib.Type</link></p>
</item>
<item>
<title><code>context</code></title>
  <p>a constant string that identifies a translation context or <code>None</code></p>
</item>
</terms>

</page>
