mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 01:21:07 +00:00
Translations working in templates
This commit is contained in:
parent
b2e431daed
commit
2d79a52133
7 changed files with 11 additions and 11 deletions
|
@ -30,11 +30,6 @@ EMAIL_USE_TLS = env('EMAIL_USE_TLS', True)
|
|||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
LOCALE_PATHS = [os.path.join(BASE_DIR, 'locale'),]
|
||||
|
||||
LANGUAGES = [
|
||||
('en-US', _('English')),
|
||||
('en-beep', _('Beep')),
|
||||
]
|
||||
|
||||
# Quick-start development settings - unsuitable for production
|
||||
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
|
||||
|
||||
|
@ -143,6 +138,11 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||
# https://docs.djangoproject.com/en/2.0/topics/i18n/
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
LANGUAGES = [
|
||||
('en-us', _('English')),
|
||||
('en-beep', _('Beep')),
|
||||
]
|
||||
|
||||
|
||||
TIME_ZONE = 'UTC'
|
||||
|
||||
|
|
|
@ -55,13 +55,13 @@
|
|||
<div class="navbar-start">
|
||||
{% if request.user.is_authenticated %}
|
||||
<a href="{% url 'user-shelves' request.user.localname %}" class="navbar-item">
|
||||
Your shelves
|
||||
{% trans "Your shelves" %}
|
||||
</a>
|
||||
<a href="/#feed" class="navbar-item">
|
||||
Feed
|
||||
{% trans "Feed" %}
|
||||
</a>
|
||||
<a href="{% url 'lists' %}" class="navbar-item">
|
||||
Lists
|
||||
{% trans "Lists" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
@ -142,9 +142,9 @@ LANGUAGE_CODE = 'en-us'
|
|||
|
||||
TIME_ZONE = 'UTC'
|
||||
|
||||
USE_I18N = True
|
||||
USE_I18N = False
|
||||
|
||||
USE_L10N = True
|
||||
USE_L10N = False
|
||||
|
||||
USE_TZ = True
|
||||
|
||||
|
|
BIN
locale/en_BEEP/LC_MESSAGES/django.mo
Normal file
BIN
locale/en_BEEP/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
BIN
locale/en_US/LC_MESSAGES/django.mo
Normal file
BIN
locale/en_US/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
|
@ -98,7 +98,7 @@ msgstr ""
|
|||
#: bookwyrm/templates/book.html:215 bookwyrm/templates/search_results.html:84
|
||||
#: bookwyrm/templates/user/user_layout.html:60
|
||||
msgid "Lists"
|
||||
msgstr "lirsts"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/book.html:244
|
||||
msgid "rated it"
|
Loading…
Reference in a new issue