Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
20fafc86
Commit
20fafc86
authored
Feb 24, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d0c6c14f
43c6c89d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
weblate/trans/autofixes/chars.py
weblate/trans/autofixes/chars.py
+2
-0
weblate/trans/checks/chars.py
weblate/trans/checks/chars.py
+2
-0
No files found.
weblate/trans/autofixes/chars.py
View file @
20fafc86
...
...
@@ -43,6 +43,8 @@ class RemoveZeroSpace(AutoFix):
name
=
_
(
'Zero-width space'
)
def
fix_single_target
(
self
,
target
,
source
,
unit
):
if
unit
.
translation
.
language
.
code
.
split
(
'_'
)[
0
]
==
'km'
:
return
target
,
False
if
u'
\
u200b
'
not
in
source
and
u'
\
u200b
'
in
target
:
return
target
.
replace
(
u'
\
u200b
'
,
''
),
True
return
target
,
False
weblate/trans/checks/chars.py
View file @
20fafc86
...
...
@@ -307,4 +307,6 @@ class ZeroWidthSpaceCheck(TargetCheck):
description
=
_
(
'Translation contains extra zero-width space character'
)
def
check_single
(
self
,
source
,
target
,
unit
,
cache_slot
):
if
self
.
is_language
(
unit
,
(
'km'
,
)):
return
False
return
(
u'
\
u200b
'
in
target
)
!=
(
u'
\
u200b
'
in
source
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment