Commit 0d7efe30 authored by Michal Čihař's avatar Michal Čihař

Merge pull request #267 from ChrisOelmueller/typos

Fix some typos in documentation
parents 0575c854 de7750d1
...@@ -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 withing 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 withing 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
......
...@@ -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 withing 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
......
...@@ -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 Returns 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)]
......
...@@ -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. Returns 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 groupped by Counts number of changes in given dataset and period grouped by
step days. step days.
''' '''
......
...@@ -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(
......
...@@ -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 whethere 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)
......
...@@ -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)
......
...@@ -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 withing 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. Returns source plurals in array.
''' '''
return split_plural(self.source) return split_plural(self.source)
......
...@@ -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. Returns filename of test file.
''' '''
return os.path.join(TEST_DATA, name) return os.path.join(TEST_DATA, name)
...@@ -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 whethere 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://')
......
...@@ -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 returns cached search results.
''' '''
# Already performed search # Already performed search
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment