Fix a handful of typos in docs and comments

Found with [codespell](https://github.com/codespell-project/codespell/)

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Nikolas Nyby authored and Sunil Mohan Adapa committed 2019-07-24 12:39:11 -07:00
1 parent 45614b198b
commit d2e987ef3c
46 files changed
+50 -50

No files matched your search

+3 -3
View File
@@ -126,7 +126,7 @@ def service_reload(service_name):
def service_action(service_name, action):
"""Preform the given action on the service_name."""
"""Perform the given action on the service_name."""
if is_systemd_running():
subprocess.run(['systemctl', action, service_name],
stdout=subprocess.DEVNULL)
@@ -222,7 +222,7 @@ class WebserverChange(object):
def __exit__(self, exc_type, exc_value, traceback):
"""Restart or reload the webserver.
Don't supress exceptions. If an exception occurs
Don't suppress exceptions. If an exception occurs
restart/reload the webserver based on enable/disable
operations done so far.
"""
@@ -435,7 +435,7 @@ def diagnose_netcat(host, port, input='', negate=False):
def get_addresses():
"""Return a list of IP addreses and hostnames."""
"""Return a list of IP addresses and hostnames."""
addresses = get_ip_addresses()
hostname = get_hostname()
+1 -1
View File
@@ -828,7 +828,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -830,7 +830,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -920,7 +920,7 @@ msgid "Run Diagnostics"
msgstr "Spustit diagnostiku"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnostické testy právě probíhají"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -950,7 +950,7 @@ msgid "Run Diagnostics"
msgstr "Kør Diagnostik"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnostisk test kører"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -926,7 +926,7 @@ msgid "Run Diagnostics"
msgstr "Diagnose starten"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnose läuft"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -829,7 +829,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -828,7 +828,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -928,7 +928,7 @@ msgid "Run Diagnostics"
msgstr "Ejecutar diagnósticos"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "El test de diagnósticos está ejecutándose"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -916,7 +916,7 @@ msgid "Run Diagnostics"
msgstr "اجرای عیب‌یابی"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "آزمون عیب‌یابی در حال اجراست"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -960,7 +960,7 @@ msgid "Run Diagnostics"
msgstr "RUN DIAGNOSTICS"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "DIAGNOTICS TEST IS CURRENTLY RUNNING"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -920,7 +920,7 @@ msgid "Run Diagnostics"
msgstr "Lancer les diagnostics"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Les tests de diagnostic sont en cours"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -833,7 +833,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -880,7 +880,7 @@ msgid "Run Diagnostics"
msgstr "તપાસ કરો"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "તપાસકીય પરિક્ષણ ચાલી રહ્યું છે"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -932,7 +932,7 @@ msgid "Run Diagnostics"
msgstr "निदानिकी चलिये"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "निदानिकी परिक्षा अभी चल रहा है"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -928,7 +928,7 @@ msgid "Run Diagnostics"
msgstr "Ellenőrzés indítása"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Az ellenőrzés jelenleg fut"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -872,7 +872,7 @@ msgid "Run Diagnostics"
msgstr "Jalankan Diagnosa"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -910,7 +910,7 @@ msgid "Run Diagnostics"
msgstr "Esegui Diagnostica"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Il test diagnostico è in esecuzione"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -830,7 +830,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -830,7 +830,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -831,7 +831,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -927,7 +927,7 @@ msgid "Run Diagnostics"
msgstr "Kjør diagnostikk"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnostikktest kjører nå"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -941,7 +941,7 @@ msgid "Run Diagnostics"
msgstr "Voer Diagnostische test uit"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnosetests worden doorlopen"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -915,7 +915,7 @@ msgid "Run Diagnostics"
msgstr "Uruchom diagnostykę"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnostyka jest właśnie uruchomiona"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -920,7 +920,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -921,7 +921,7 @@ msgid "Run Diagnostics"
msgstr "Запуск диагностики"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "В настоящее время запущен диагностический тест"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -906,7 +906,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -923,7 +923,7 @@ msgid "Run Diagnostics"
msgstr "Utför diagnostik"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Diagnotiktest körs för närvarande"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -830,7 +830,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -921,7 +921,7 @@ msgid "Run Diagnostics"
msgstr "లక్షణాలను నడుపు"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "ప్రస్తుతం నిర్ధారణ పరీక్ష నడుస్తుంది"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -930,7 +930,7 @@ msgid "Run Diagnostics"
msgstr "Teşhisleri Çalıştır"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "Teşhis testi şu anda çalışmaktadır"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -864,7 +864,7 @@ msgid "Run Diagnostics"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr ""
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+1 -1
View File
@@ -893,7 +893,7 @@ msgid "Run Diagnostics"
msgstr "运行诊断程序"
#: plinth/modules/diagnostics/templates/diagnostics.html:46
msgid "Diagnotics test is currently running"
msgid "Diagnostics test is currently running"
msgstr "当前正在运行诊断测试"
#: plinth/modules/diagnostics/templates/diagnostics.html:59
+2 -2
View File
@@ -399,7 +399,7 @@ class ServiceHandler:
class SystemServiceHandler(ServiceHandler):
"""Handle starting and stoping of system services for backup."""
"""Handle starting and stopping of system services for backup."""
def __init__(self, backup_app, service):
"""Initialize the object."""
@@ -419,7 +419,7 @@ class SystemServiceHandler(ServiceHandler):
class ApacheServiceHandler(ServiceHandler):
"""Handle starting and stoping of Apache services for backup."""
"""Handle starting and stopping of Apache services for backup."""
def __init__(self, backup_app, service):
"""Initialize the object."""
+1 -1
View File
@@ -240,7 +240,7 @@ class SshBorgRepository(BorgRepository):
def __init__(self, uuid=None, path=None, credentials=None, **kwargs):
"""
Instanciate a new repository.
Instantiate a new repository.
If only a uuid is given, load the values from kvstore.
"""
@@ -43,7 +43,7 @@
value="{% trans "Run Diagnostics" %}"/>
</form>
{% else %}
<p>{% trans "Diagnotics test is currently running" %}</p>
<p>{% trans "Diagnostics test is currently running" %}</p>
<div class="progress">
<div class="progress-bar progress-bar-striped active"
role="progressbar" aria-valuemin="0" aria-valuemax="100"
+1 -1
View File
@@ -142,6 +142,6 @@ def is_public_registration_enabled():
def is_private_mode_enabled():
""" Return wheter private mode is enabled or disabled"""
""" Return whether private mode is enabled or disabled"""
output = actions.superuser_run('mediawiki', ['private-mode', 'status'])
return output.strip() == 'enabled'
+2 -2
View File
@@ -27,7 +27,7 @@ import pytest
def _get_partition_device(device, partition_number):
"""Return the device corresponding to a parition in a given device."""
"""Return the device corresponding to a partition in a given device."""
if re.match('[0-9]', device[-1]):
return device + 'p' + str(partition_number)
@@ -192,7 +192,7 @@ class TestActions:
self.assert_ext4_file_system_healthy(1)
def assert_free_space(self, partition_number, space=True):
"""Verify that free is available/not available after a parition."""
"""Verify that free is available/not available after a partition."""
device = _get_partition_device(self.device, partition_number)
result = self.run_action(
['storage', 'is-partition-expandable', device])
+1 -1
View File
@@ -104,7 +104,7 @@ class UserUpdate(ContextMixin, SuccessMessageMixin, UpdateView):
return super().dispatch(request, *args, **kwargs)
def get_form_kwargs(self):
"""Make the requst object available to the form."""
"""Make the request object available to the form."""
kwargs = super(UserUpdate, self).get_form_kwargs()
kwargs['request'] = self.request
kwargs['username'] = self.object.username
+1 -1
View File
@@ -360,7 +360,7 @@ class ForceUpgrader():
When upgrades packages, many things have to be kept in mind. The following
is the understanding on how unattended-upgrades does its upgrades. These
precautions need to be taken into account whenever relavent.
precautions need to be taken into account whenever relevant.
Checks done by unattended upgrades before upgrading:
- Check if today is a configured patch day.
+1 -1
View File
@@ -34,7 +34,7 @@ class TestIsAdminUser:
@staticmethod
@pytest.fixture(name='web_request')
def fixture_web_request():
"""Setup each test case befor execution."""
"""Setup each test case before execution."""
web_request = RequestFactory().get('/plinth/mockapp')
web_request.user = Mock()
web_request.session = MagicMock()
+1 -1
View File
@@ -56,7 +56,7 @@ format_lazy = lazy(_format_lazy, str)
def non_admin_view(func):
"""Decorator to mark a view as accesible by non-admin users."""
"""Decorator to mark a view as accessible by non-admin users."""
setattr(func, 'IS_NON_ADMIN', True)
return func