def make_translations(unique_name, node):
introspectable = not node.attrib.get('<STR_LIT>') == '<STR_LIT:0>'<EOL>if node.tag == core_ns('<STR_LIT>'):<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = unique_name<EOL>if introspectable:<EOL><INDENT>components = get_gi_name_components(node)<EOL>components[-<NUM_LIT:1>] = components[-<NUM_LIT:1>].upper()<EOL>gi_name = '<STR_LIT:.>'.join(components)<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = gi_name<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = gi_name<EOL><DEDENT><DEDENT>elif c_ns('<STR_LIT>') in node.attrib:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = unique_name<EOL>if introspectable:<EOL><INDENT>components = get_gi_name_components(node)<EOL>gi_name = '<STR_LIT:.>'.join(components)<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = gi_name<EOL>components[-<NUM_LIT:1>] = '<STR_LIT>' % components[-<NUM_LIT:1>]<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = '<STR_LIT:.>'.join(components)<EOL><DEDENT><DEDENT>elif c_ns('<STR_LIT:type>') in node.attrib:<EOL><INDENT>components = get_gi_name_components(node)<EOL>gi_name = '<STR_LIT:.>'.join(components)<EOL>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = unique_name<EOL>if introspectable:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = gi_name<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = gi_name<EOL><DEDENT><DEDENT>elif node.tag == core_ns('<STR_LIT>'):<EOL><INDENT>components = []<EOL>get_field_c_name_components(node, components)<EOL>display_name = '<STR_LIT:.>'.join(components[<NUM_LIT:1>:])<EOL>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = display_name<EOL>if introspectable:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = display_name<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = display_name<EOL><DEDENT><DEDENT>elif node.tag == core_ns('<STR_LIT>'):<EOL><INDENT>display_name = node.attrib['<STR_LIT:name>']<EOL>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = display_name<EOL>if introspectable:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = '<STR_LIT>' % display_name<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = '<STR_LIT>' % display_name<EOL><DEDENT><DEDENT>elif node.tag == core_ns('<STR_LIT>'):<EOL><INDENT>display_name = node.attrib['<STR_LIT:name>']<EOL>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = display_name<EOL>if introspectable:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = display_name<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = display_name.replace('<STR_LIT:->', '<STR_LIT:_>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT:c>'][unique_name] = node.attrib.get('<STR_LIT:name>')<EOL>if introspectable:<EOL><INDENT>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = node.attrib.get('<STR_LIT:name>')<EOL>__TRANSLATED_NAMES['<STR_LIT>'][unique_name] = node.attrib.get('<STR_LIT:name>')<EOL><DEDENT><DEDENT>
Compute and store the title that should be displayed
when linking to a given unique_name, eg in python
when linking to test_greeter_greet() we want to display
Test.Greeter.greet