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
3e1ee21d
Commit
3e1ee21d
authored
Apr 05, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move getting documentation url to Check object
parent
f5810e55
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
trans/checks.py
trans/checks.py
+10
-0
trans/models.py
trans/models.py
+1
-4
No files found.
trans/checks.py
View file @
3e1ee21d
...
...
@@ -2,6 +2,7 @@
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.core.exceptions
import
ImproperlyConfigured
from
django.conf
import
settings
import
trans
import
re
PYTHON_PRINTF_MATCH
=
re
.
compile
(
'''
...
...
@@ -176,6 +177,15 @@ class Check(object):
'''
return
language
.
code
.
split
(
'_'
)[
0
]
in
vals
def
get_doc_url
(
self
):
'''
Returns link to documentation.
'''
return
'http://weblate.readthedocs.org/en/weblate-%s/usage.html#check-%s'
%
(
trans
.
VERSION
,
self
.
check_id
,
)
class
SameCheck
(
Check
):
...
...
trans/models.py
View file @
3e1ee21d
...
...
@@ -1027,10 +1027,7 @@ class Check(models.Model):
return
trans
.
checks
.
CHECKS
[
self
.
check
].
description
def
get_doc_url
(
self
):
return
'http://weblate.readthedocs.org/en/weblate-%s/usage.html#check-%s'
%
(
trans
.
VERSION
,
self
.
check
,
)
return
trans
.
checks
.
CHECKS
[
self
.
check
].
get_doc_url
()
class
Dictionary
(
models
.
Model
):
project
=
models
.
ForeignKey
(
Project
)
...
...
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