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
36e19230
Commit
36e19230
authored
Mar 28, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore one char strings, used for decimal/thousands separator
parent
ed38cb24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
trans/checks.py
trans/checks.py
+4
-0
No files found.
trans/checks.py
View file @
36e19230
...
...
@@ -143,6 +143,8 @@ CHECKS['end_newline'] = (_('Trailing newline'), check_end_newline, _('Source and
@
plural_check
def
check_end_space
(
source
,
target
,
flags
,
language
,
unit
):
if
len
(
source
)
==
1
and
len
(
target
)
==
1
:
return
False
if
language
.
code
.
split
(
'_'
)[
0
]
in
[
'fr'
,
'br'
]:
if
len
(
target
)
==
0
:
return
False
...
...
@@ -156,6 +158,8 @@ CHECKS['end_space'] = (_('Trailing space'), check_end_space, _('Source and trans
@
plural_check
def
check_end_stop
(
source
,
target
,
flags
,
language
,
unit
):
if
len
(
source
)
==
1
and
len
(
target
)
==
1
:
return
False
return
check_chars
(
source
,
target
,
-
1
,
[
u'.'
,
u'。'
,
u'।'
,
u'۔'
])
CHECKS
[
'end_stop'
]
=
(
_
(
'Trailing stop'
),
check_end_stop
,
_
(
'Source and translated do not both end with a full stop'
))
...
...
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