def title(self): if is_translation(self.context): language = get_language_by_name(self.context.language)['name'] return _(u"$language translation", mapping={'language': language}) return _(u"Version $version", mapping={'version': self.context.version_id})
def title(self): if is_translation(self.context): language = get_language_by_name(self.context.language)['name'] return "%s %s" % (language, _(u"translation")) return "%s %s" % (_(u"Version"), self.context.version_id)
def is_translation(self): return is_translation(self.context)
def title(self): if is_translation(self.context): language = get_language_by_name(self.context.language)["name"] return "%s %s" % (language, _(u"translation")) return "%s %s" % (_(u"Version"), self.context.version_id)
def title(self): if is_translation(self.context): language = get_language_by_name(self.context.language)["name"] return "%s %s" % (language, _("translation")) return "%s %s" % (_("Version"), self.context.seq)