Commit 3b95acce authored by Michal Čihař's avatar Michal Čihař

Merge remote-tracking branch 'origin/master'

parents 070a2656 e905e610
......@@ -61,7 +61,7 @@ The configuration for Lighttpd web server might look like following::
)
alias.url = (
"/media" => "/var/lib/django/weblate/media/",
"/static/admin" => "/usr/share/pyshared/django/contrib/admin/media/",
"/static/admin" => "/usr/share/pyshared/django/contrib/admin/static/admin/",
)
url.rewrite-once = (
......
......@@ -186,6 +186,12 @@ def check_end_colon(source, target, flags, language, unit):
if target[-3:] not in [' : ', ' : ', u' : ']:
return True
return False
if language.code.split('_')[0] in ['ja']:
# Japanese sentence might need to end with full stop
# in case it's used before list.
if source[-1] == ':':
return check_chars(source, target, -1, [u':', u':', u'.', u'。'])
return False
return check_chars(source, target, -1, [u':', u':'])
CHECKS['end_colon'] = (_('Trailing colon'), check_end_colon, _('Source and translated do not both end with a colon or colon is not correctly spaced'))
......
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