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
e6f907fc
Commit
e6f907fc
authored
Oct 31, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document elipsis check
parent
abcdaa40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
docs/usage.rst
docs/usage.rst
+9
-1
weblate/trans/checks.py
weblate/trans/checks.py
+1
-1
No files found.
docs/usage.rst
View file @
e6f907fc
...
@@ -305,7 +305,7 @@ Mismatched BBcode
...
@@ -305,7 +305,7 @@ Mismatched BBcode
BBcode in translation does not match source. The method for detecting BBcode is
BBcode in translation does not match source. The method for detecting BBcode is
currently quite simple.
currently quite simple.
.. _optional_plural:
.. _
check-
optional_plural:
Optional plural
Optional plural
+++++++++++++++
+++++++++++++++
...
@@ -321,3 +321,11 @@ For example with Gettext in Python it could be:
...
@@ -321,3 +321,11 @@ For example with Gettext in Python it could be:
from gettext import ngettext
from gettext import ngettext
print ngettext('Selected %d file', 'Selected %d files', files) % files
print ngettext('Selected %d file', 'Selected %d files', files) % files
.. _check-elipsis:
Elipsis
+++++++
The string uses three commans (...) instead of elipsis character (…). Using
unicode character is in most cases better approach and looks better.
weblate/trans/checks.py
View file @
e6f907fc
...
@@ -623,7 +623,7 @@ class ElipsisCheck(SourceCheck):
...
@@ -623,7 +623,7 @@ class ElipsisCheck(SourceCheck):
'''
'''
check_id
=
'elipsis'
check_id
=
'elipsis'
name
=
_
(
'Elipsis'
)
name
=
_
(
'Elipsis'
)
description
=
_
(
'The string uses three commans (...) instead of elipsis character (…)'
)
description
=
_
(
u
'The string uses three commans (...) instead of elipsis character (…)'
)
def
check_source
(
self
,
source
,
flags
,
unit
):
def
check_source
(
self
,
source
,
flags
,
unit
):
return
'...'
in
source
[
0
]
return
'...'
in
source
[
0
]
...
...
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