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
0d7efe30
Commit
0d7efe30
authored
May 03, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #267 from ChrisOelmueller/typos
Fix some typos in documentation
parents
0575c854
de7750d1
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
16 deletions
+16
-16
docs/admin.rst
docs/admin.rst
+2
-2
docs/faq.rst
docs/faq.rst
+1
-1
trans/forms.py
trans/forms.py
+1
-1
trans/models/changes.py
trans/models/changes.py
+2
-2
trans/models/project.py
trans/models/project.py
+1
-1
trans/models/subproject.py
trans/models/subproject.py
+2
-2
trans/models/translation.py
trans/models/translation.py
+1
-1
trans/models/unit.py
trans/models/unit.py
+3
-3
trans/tests/util.py
trans/tests/util.py
+1
-1
trans/util.py
trans/util.py
+1
-1
trans/views/edit.py
trans/views/edit.py
+1
-1
No files found.
docs/admin.rst
View file @
0d7efe30
...
@@ -112,7 +112,7 @@ Locked
...
@@ -112,7 +112,7 @@ Locked
You can lock the translation to prevent updates by users.
You can lock the translation to prevent updates by users.
Allow translation propagation
Allow translation propagation
You can disable propagation of translations to this subproject from other
You can disable propagation of translations to this subproject from other
subprojects within
g
same project. This really depends on what you are
subprojects within same project. This really depends on what you are
translating, sometimes it's desirable to have same string used.
translating, sometimes it's desirable to have same string used.
Pre commit script
Pre commit script
One of scripts defined in :setting:`PRE_COMMIT_SCRIPTS` which is executed
One of scripts defined in :setting:`PRE_COMMIT_SCRIPTS` which is executed
...
@@ -340,7 +340,7 @@ Per project access control
...
@@ -340,7 +340,7 @@ Per project access control
.. note::
.. note::
By enabling ACL, all users are prohibited to access anything within
g
given
By enabling ACL, all users are prohibited to access anything within given
project unless you add them the permission to do that.
project unless you add them the permission to do that.
Additionally you can limit users access to individual projects. This feature is
Additionally you can limit users access to individual projects. This feature is
...
...
docs/faq.rst
View file @
0d7efe30
...
@@ -56,7 +56,7 @@ any other special actions.
...
@@ -56,7 +56,7 @@ any other special actions.
How do I translate several branches at once?
How do I translate several branches at once?
--------------------------------------------
--------------------------------------------
Weblate supports pushing translation changes within
g
one :ref:`project`. For
Weblate supports pushing translation changes within one :ref:`project`. For
every :ref:`subproject` which has it enabled (the default behavior), the change
every :ref:`subproject` which has it enabled (the default behavior), the change
made is automatically propagated to others. This way the translations are kept
made is automatically propagated to others. This way the translations are kept
synchronized even if the branches themselves have already diverged quite a lot
synchronized even if the branches themselves have already diverged quite a lot
...
...
trans/forms.py
View file @
0d7efe30
...
@@ -104,7 +104,7 @@ class PluralTextarea(forms.Textarea):
...
@@ -104,7 +104,7 @@ class PluralTextarea(forms.Textarea):
def
value_from_datadict
(
self
,
data
,
files
,
name
):
def
value_from_datadict
(
self
,
data
,
files
,
name
):
'''
'''
Retuns processed plurals - either list of plural strings or single
Retu
r
ns processed plurals - either list of plural strings or single
string if no plurals are in use.
string if no plurals are in use.
'''
'''
ret
=
[
data
.
get
(
name
,
None
)]
ret
=
[
data
.
get
(
name
,
None
)]
...
...
trans/models/changes.py
View file @
0d7efe30
...
@@ -31,7 +31,7 @@ from trans.util import get_user_display
...
@@ -31,7 +31,7 @@ from trans.util import get_user_display
class
ChangeManager
(
models
.
Manager
):
class
ChangeManager
(
models
.
Manager
):
def
content
(
self
):
def
content
(
self
):
'''
'''
Retuns queryset with content changes.
Retu
r
ns queryset with content changes.
'''
'''
return
self
.
filter
(
return
self
.
filter
(
action__in
=
(
Change
.
ACTION_CHANGE
,
Change
.
ACTION_NEW
),
action__in
=
(
Change
.
ACTION_CHANGE
,
Change
.
ACTION_NEW
),
...
@@ -40,7 +40,7 @@ class ChangeManager(models.Manager):
...
@@ -40,7 +40,7 @@ class ChangeManager(models.Manager):
def
count_stats
(
self
,
days
,
step
,
dtstart
,
base
):
def
count_stats
(
self
,
days
,
step
,
dtstart
,
base
):
'''
'''
Counts number of changes in given dataset and period group
p
ed by
Counts number of changes in given dataset and period grouped by
step days.
step days.
'''
'''
...
...
trans/models/project.py
View file @
0d7efe30
...
@@ -174,7 +174,7 @@ class Project(models.Model, PercentMixin, URLMixin):
...
@@ -174,7 +174,7 @@ class Project(models.Model, PercentMixin, URLMixin):
def
check_acl
(
self
,
request
):
def
check_acl
(
self
,
request
):
'''
'''
Raises an error if user is not allowed to acces
s this project.
Raises an error if user is not allowed to access this project.
'''
'''
if
not
self
.
has_acl
(
request
.
user
):
if
not
self
.
has_acl
(
request
.
user
):
messages
.
error
(
messages
.
error
(
...
...
trans/models/subproject.py
View file @
0d7efe30
...
@@ -207,7 +207,7 @@ class SubProject(models.Model, PercentMixin, URLMixin):
...
@@ -207,7 +207,7 @@ class SubProject(models.Model, PercentMixin, URLMixin):
def
check_acl
(
self
,
request
):
def
check_acl
(
self
,
request
):
'''
'''
Raises an error if user is not allowed to acces
s this project.
Raises an error if user is not allowed to access this project.
'''
'''
self
.
project
.
check_acl
(
request
)
self
.
project
.
check_acl
(
request
)
...
@@ -283,7 +283,7 @@ class SubProject(models.Model, PercentMixin, URLMixin):
...
@@ -283,7 +283,7 @@ class SubProject(models.Model, PercentMixin, URLMixin):
def
is_repo_link
(
self
):
def
is_repo_link
(
self
):
'''
'''
Checks whether
e
repository is just a link for other one.
Checks whether repository is just a link for other one.
'''
'''
return
is_repo_link
(
self
.
repo
)
return
is_repo_link
(
self
.
repo
)
...
...
trans/models/translation.py
View file @
0d7efe30
...
@@ -170,7 +170,7 @@ class Translation(models.Model, URLMixin):
...
@@ -170,7 +170,7 @@ class Translation(models.Model, URLMixin):
def
check_acl
(
self
,
request
):
def
check_acl
(
self
,
request
):
'''
'''
Raises an error if user is not allowed to acces
s this project.
Raises an error if user is not allowed to access this project.
'''
'''
self
.
subproject
.
project
.
check_acl
(
request
)
self
.
subproject
.
project
.
check_acl
(
request
)
...
...
trans/models/unit.py
View file @
0d7efe30
...
@@ -391,7 +391,7 @@ class UnitManager(models.Manager):
...
@@ -391,7 +391,7 @@ class UnitManager(models.Manager):
def
same
(
self
,
unit
):
def
same
(
self
,
unit
):
'''
'''
Units with same source within
g
same project.
Units with same source within same project.
'''
'''
project
=
unit
.
translation
.
subproject
.
project
project
=
unit
.
translation
.
subproject
.
project
return
self
.
filter
(
return
self
.
filter
(
...
@@ -456,7 +456,7 @@ class Unit(models.Model):
...
@@ -456,7 +456,7 @@ class Unit(models.Model):
def
check_acl
(
self
,
request
):
def
check_acl
(
self
,
request
):
'''
'''
Raises an error if user is not allowed to acces
s this project.
Raises an error if user is not allowed to access this project.
'''
'''
self
.
translation
.
subproject
.
project
.
check_acl
(
request
)
self
.
translation
.
subproject
.
project
.
check_acl
(
request
)
...
@@ -545,7 +545,7 @@ class Unit(models.Model):
...
@@ -545,7 +545,7 @@ class Unit(models.Model):
def
get_source_plurals
(
self
):
def
get_source_plurals
(
self
):
'''
'''
Retuns source plurals in array.
Retu
r
ns source plurals in array.
'''
'''
return
split_plural
(
self
.
source
)
return
split_plural
(
self
.
source
)
...
...
trans/tests/util.py
View file @
0d7efe30
...
@@ -29,6 +29,6 @@ TEST_DATA = os.path.join(
...
@@ -29,6 +29,6 @@ TEST_DATA = os.path.join(
def
get_test_file
(
name
):
def
get_test_file
(
name
):
'''
'''
Retuns filename of test file.
Retu
r
ns filename of test file.
'''
'''
return
os
.
path
.
join
(
TEST_DATA
,
name
)
return
os
.
path
.
join
(
TEST_DATA
,
name
)
trans/util.py
View file @
0d7efe30
...
@@ -166,7 +166,7 @@ def get_string(text):
...
@@ -166,7 +166,7 @@ def get_string(text):
def
is_repo_link
(
val
):
def
is_repo_link
(
val
):
'''
'''
Checks whether
e
repository is just a link for other one.
Checks whether repository is just a link for other one.
'''
'''
return
val
.
startswith
(
'weblate://'
)
return
val
.
startswith
(
'weblate://'
)
...
...
trans/views/edit.py
View file @
0d7efe30
...
@@ -82,7 +82,7 @@ def cleanup_session(session):
...
@@ -82,7 +82,7 @@ def cleanup_session(session):
def
search
(
translation
,
request
):
def
search
(
translation
,
request
):
'''
'''
Performs search or retuns cached search results.
Performs search or retu
r
ns cached search results.
'''
'''
# Already performed search
# Already performed search
...
...
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