add pt to ui language list

This commit is contained in:
mein Name 2025-02-09 13:39:22 -05:00 committed by Henri Dickson
parent ea9aac7a9c
commit 5edc340e57
8 changed files with 1913 additions and 1656 deletions

View file

@ -413,6 +413,7 @@ SUPPORTED_UI_LANGUAGES = {
"de": _("German"),
"fr": _("French"),
"it": _("Italian"),
"pt": _("Portuguese"),
"zh-hans": _("Simplified Chinese"),
"zh-hant": _("Traditional Chinese"),
}

View file

@ -111,12 +111,16 @@ neodb-manage test
Update translations:
```
django-admin makemessages --no-wrap --no-obsolete -i .venv neodb-takahe -a
django-admin makemessages --no-wrap --no-obsolete -i .venv -i neodb-takahe --keep-pot -l zh_Hans -l zh_Hant
# edit .po files, run the following to make sure edits are correct
django-admin makemessages --no-wrap --no-obsolete -i .venv -i neodb-takahe -a
django-admin makemessages --no-wrap --no-obsolete -i .venv -i neodb-takahe --keep-pot -l zh_Hans -l zh_Hant
django-admin compilemessages -i .venv -i neodb-takahe
```
Development in Docker Compose
-----------------------------
The `dev` profile is different from `production`:

View file

@ -0,0 +1,33 @@
{% load i18n %}
<aside class="grid__aside bottom">
<p>
{% trans 'Addtional filters may be added to query' %}
<li>
<code>status:complete</code> - {% trans 'filter by one of these statuses' %}: <code>wishlist</code> / <code>progress</code> / <code>complete</code> / <code>dropped</code>
</li>
<li>
<code>rating:6..8</code> - {% trans 'filter by rating range' %}
</li>
<li>
<code>rating:0</code> - {% trans 'filter unrated' %}
</li>
<li>
<code>tag:scifi</code> - {% trans 'filter by tag' %}
</li>
<li>
<code>category:tv</code> - {% trans 'filter by one of these categories' %}: <code>movie</code> / <code>tv</code> / <code>book</code> / <code>music</code> / <code>game</code> / <code>podcast</code> / <code>performance</code>
</li>
<li>
<code>type:note</code> - {% trans 'filter by one of these types' %}: <code>mark</code> / <code>comment</code> / <code>review</code> / <code>collection</code> / <code>note</code>
</li>
<li>
<code>date:2021-9-11</code> - {% trans 'filter by date' %}
</li>
<li>
<code>date:2022-2</code> - {% trans 'filter by month' %}
</li>
<li>
<code>date:2022..2023</code> - {% trans 'filter by date range' %}
</li>
</p>
</aside>

View file

@ -29,38 +29,7 @@
</div>
{% include "_pagination.html" %}
{% block sidebar %}
<aside class="grid__aside bottom">
<p>
{% trans 'Addtional filters may be added to query:' %}
<li>
<code>status:complete</code> - {% trans 'filter by status, one of wishlist/progress/complete/dropped' %}
</li>
<li>
<code>rating:6..8</code> - {% trans 'filter by rating range' %}
</li>
<li>
<code>rating:0</code> - {% trans 'filter unrated' %}
</li>
<li>
<code>tag:scifi</code> - {% trans 'filter by tag' %}
</li>
<li>
<code>category:tv</code> - {% trans 'filter by category, one of movie/tv/book/music/game/performance/podcast' %}
</li>
<li>
<code>type:note</code> - {% trans 'filter by type, one of mark/comment/review/collection/note' %}
</li>
<li>
<code>date:2021-9-11</code> - {% trans 'filter by date' %}
</li>
<li>
<code>date:2022-2</code> - {% trans 'filter by month' %}
</li>
<li>
<code>date:2022..2023</code> - {% trans 'filter by date range' %}
</li>
</p>
</aside>
{% include '_sidebar_search_journal.html' %}
{% endblock %}
</main>
{% include '_footer.html' %}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -29,7 +29,9 @@
</div>
</div>
</div>
{% include "_sidebar.html" with show_progress=1 identity=request.user.identity %}
{% block sidebar %}
{% include '_sidebar_search_journal.html' %}
{% endblock %}
</main>
{% include "_footer.html" %}
</body>