Commit 75f20ceb authored by Michal Čihař's avatar Michal Čihař

No code appending for simplified/traditional chinese

parent df1a269b
......@@ -346,7 +346,9 @@ class Language(models.Model):
ordering = ['name']
def __unicode__(self):
if not '(' in self.name and ('_' in self.code or '-' in self.code):
if (not '(' in self.name
and ('_' in self.code or '-' in self.code)
and self.code not in ('zh_TW', 'zh_CN')):
return '%s (%s)' % (_(self.name), self.code)
return _(self.name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment