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
e25007bc
Commit
e25007bc
authored
Nov 27, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused unit parameter
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
1d5cc3a9
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
50 deletions
+1
-50
weblate/trans/checks/format.py
weblate/trans/checks/format.py
+1
-4
weblate/trans/tests/test_format_checks.py
weblate/trans/tests/test_format_checks.py
+0
-46
No files found.
weblate/trans/checks/format.py
View file @
e25007bc
...
@@ -117,7 +117,6 @@ class BaseFormatCheck(TargetCheck):
...
@@ -117,7 +117,6 @@ class BaseFormatCheck(TargetCheck):
return
self
.
check_format
(
return
self
.
check_format
(
sources
[
1
],
sources
[
1
],
targets
[
0
],
targets
[
0
],
unit
,
False
False
)
)
...
@@ -125,7 +124,6 @@ class BaseFormatCheck(TargetCheck):
...
@@ -125,7 +124,6 @@ class BaseFormatCheck(TargetCheck):
singular_check
=
self
.
check_format
(
singular_check
=
self
.
check_format
(
sources
[
0
],
sources
[
0
],
targets
[
0
],
targets
[
0
],
unit
,
len
(
sources
)
>
1
len
(
sources
)
>
1
)
)
if
singular_check
:
if
singular_check
:
...
@@ -140,7 +138,6 @@ class BaseFormatCheck(TargetCheck):
...
@@ -140,7 +138,6 @@ class BaseFormatCheck(TargetCheck):
plural_check
=
self
.
check_format
(
plural_check
=
self
.
check_format
(
sources
[
1
],
sources
[
1
],
target
,
target
,
unit
,
False
False
)
)
if
plural_check
:
if
plural_check
:
...
@@ -155,7 +152,7 @@ class BaseFormatCheck(TargetCheck):
...
@@ -155,7 +152,7 @@ class BaseFormatCheck(TargetCheck):
return
text
.
replace
(
'
\
'
'
,
''
)
return
text
.
replace
(
'
\
'
'
,
''
)
return
text
return
text
def
check_format
(
self
,
source
,
target
,
unit
,
ignore_missing
):
def
check_format
(
self
,
source
,
target
,
ignore_missing
):
'''
'''
Generic checker for format strings.
Generic checker for format strings.
'''
'''
...
...
weblate/trans/tests/test_format_checks.py
View file @
e25007bc
This diff is collapsed.
Click to expand it.
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