示例#1
0
    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})
示例#2
0
 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)
示例#3
0
 def is_translation(self):
     return is_translation(self.context)
示例#4
0
 def is_translation(self):
     return is_translation(self.context)
示例#5
0
 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)
示例#6
0
 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)