def translations(self, lang):
key = self._get_translations_cache_key(lang)<EOL>trans_dict = cache.get(key, {})<EOL>if self.translatable_slug is not None:<EOL><INDENT>if self.translatable_slug not in self.translatable_fields:<EOL><INDENT>self.translatable_fields = self.translatable_fields + (self.translatable_slug,)<EOL><DEDENT><DEDENT>if not trans_dict:<EOL><INDENT>for field in self.translatable_fields:<EOL><INDENT>trans_dict[field] = self.get_translation(lang, field)<EOL><DEDENT>cache.set(key, trans_dict)<EOL><DEDENT>return trans_dict<EOL>
Return the list of translation strings of a Translatable
instance in a dictionary form

@type lang: string
@param lang: a string with the name of the language

@rtype: python Dictionary
@return: Returns a all fieldname / translations (key / value)