diff --git a/hawk/settings/base.py b/hawk/settings/base.py index b18aa3e..66d3dea 100644 --- a/hawk/settings/base.py +++ b/hawk/settings/base.py @@ -44,6 +44,7 @@ "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", + "hawk_gui.context_processors.inject_hawk_settings", ] }, } @@ -105,5 +106,6 @@ MAINTENANCE_MODE_RETRY_AFTER = 60 # one minute HAWK = { - "SLUG_LENGTH": 8 + "SLUG_LENGTH": 8, + 'TRANSLATIONS_CONTRIBUTION_LINK': 'https://poeditor.com/join/project?hash=0W06oCXfrR' } diff --git a/hawk_gui/context_processors.py b/hawk_gui/context_processors.py new file mode 100644 index 0000000..7fb2ceb --- /dev/null +++ b/hawk_gui/context_processors.py @@ -0,0 +1,5 @@ +from django.conf import settings # import the settings file + + +def inject_hawk_settings(request): + return {'hawk_settings': settings.HAWK} diff --git a/hawk_gui/templates/layout/language_selector.html b/hawk_gui/templates/layout/language_selector.html index 9c65898..b2638be 100644 --- a/hawk_gui/templates/layout/language_selector.html +++ b/hawk_gui/templates/layout/language_selector.html @@ -24,6 +24,12 @@
+ + {% trans "Help us translate Hawk into your language!" %} + +
diff --git a/static/scss/reports/_language_selector.scss b/static/scss/reports/_language_selector.scss index 41f0b89..2d75926 100644 --- a/static/scss/reports/_language_selector.scss +++ b/static/scss/reports/_language_selector.scss @@ -42,6 +42,10 @@ aside.language-selector { cursor: pointer; } } + + p { + margin-top: 1.4rem; + } } } }