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
6ebd13a7
Commit
6ebd13a7
authored
May 07, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
74224b87
5ec3fcb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
trans/checks/same.py
trans/checks/same.py
+2
-1
trans/tests/same_checks.py
trans/tests/same_checks.py
+9
-0
No files found.
trans/checks/same.py
View file @
6ebd13a7
...
...
@@ -329,7 +329,8 @@ class SameCheck(TargetCheck):
stripped
=
self
.
strip_string
(
lower_source
,
unit
.
flags
)
# Ignore strings which don't contain any string to translate
if
stripped
==
''
:
# or just single letter (usually unit or something like that)
if
len
(
stripped
)
<=
1
:
result
=
True
# Ignore words which are often same in foreigh language
elif
stripped
in
SAME_BLACKLIST
:
...
...
trans/tests/same_checks.py
View file @
6ebd13a7
...
...
@@ -112,6 +112,15 @@ class SameCheckTest(CheckTestCase):
)
)
self
.
do_test
(
False
,
(
'%i C'
,
'%i C'
,
'c-format'
,
)
)
def
test_same_email
(
self
):
self
.
do_test
(
False
,
...
...
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