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
3b95acce
Commit
3b95acce
authored
Apr 02, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
070a2656
e905e610
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
docs/install.rst
docs/install.rst
+1
-1
trans/checks.py
trans/checks.py
+6
-0
No files found.
docs/install.rst
View file @
3b95acce
...
...
@@ -61,7 +61,7 @@ The configuration for Lighttpd web server might look like following::
)
alias.url = (
"/media" => "/var/lib/django/weblate/media/",
"/static/admin" => "/usr/share/pyshared/django/contrib/admin/
media
/",
"/static/admin" => "/usr/share/pyshared/django/contrib/admin/
static/admin
/",
)
url.rewrite-once = (
...
...
trans/checks.py
View file @
3b95acce
...
...
@@ -186,6 +186,12 @@ def check_end_colon(source, target, flags, language, unit):
if
target
[
-
3
:]
not
in
[
' : '
,
' : '
,
u' : '
]:
return
True
return
False
if
language
.
code
.
split
(
'_'
)[
0
]
in
[
'ja'
]:
# Japanese sentence might need to end with full stop
# in case it's used before list.
if
source
[
-
1
]
==
':'
:
return
check_chars
(
source
,
target
,
-
1
,
[
u':'
,
u':'
,
u'.'
,
u'。'
])
return
False
return
check_chars
(
source
,
target
,
-
1
,
[
u':'
,
u':'
])
CHECKS
[
'end_colon'
]
=
(
_
(
'Trailing colon'
),
check_end_colon
,
_
(
'Source and translated do not both end with a colon or colon is not correctly spaced'
))
...
...
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