Skip to content

Commit

Permalink
add pt to ui language list
Browse files Browse the repository at this point in the history
  • Loading branch information
mein Name authored and alphatownsman committed Feb 9, 2025
1 parent ea9aac7 commit 5edc340
Show file tree
Hide file tree
Showing 8 changed files with 1,912 additions and 1,655 deletions.
1 change: 1 addition & 0 deletions boofilsic/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@
"de": _("German"),
"fr": _("French"),
"it": _("Italian"),
"pt": _("Portuguese"),
"zh-hans": _("Simplified Chinese"),
"zh-hant": _("Traditional Chinese"),
}
Expand Down
8 changes: 6 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
33 changes: 33 additions & 0 deletions journal/templates/_sidebar_search_journal.html
Original file line number Diff line number Diff line change
@@ -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>
33 changes: 1 addition & 32 deletions journal/templates/search_journal.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand Down
Loading

0 comments on commit 5edc340

Please sign in to comment.