add categories feature translation #26

This commit is contained in:
ghost 2023-11-04 13:51:41 +02:00
parent d1e9e72401
commit ff565ac33b
23 changed files with 894 additions and 31 deletions

View file

@ -32,7 +32,7 @@
<input type="checkbox" name="categories[]" id="{{ category }}" value="{{ category }}" />
{% endif %}
<label class="margin-l-4-px" for="{{ category }}">
{{ category | u.title }}
{{ category | trans_category | u.title }}
</label>
</div>
{% endfor %}

View file

@ -362,7 +362,7 @@
{% if torrent.categories %}
<div class="padding-y-4-px">
{% set i = 0 %}
{% for category in torrent.categories | sort %}{% if i > 0 %},{% endif %} {{ category | u.title }}{% set i = i + 1 %}{% endfor %}
{% for category in torrent.categories | sort %}{% if i > 0 %},{% endif %} {{ category | trans_category | u.title }}{% set i = i + 1 %}{% endfor %}
</div>
{% endif %}
</div>

View file

@ -72,7 +72,7 @@
<input type="checkbox" name="categories[]" id="{{ category }}" value="{{ category }}" />
{% endif %}
<label class="margin-l-4-px" for="{{ category }}">
{{ category | u.title }}
{{ category | trans_category | u.title }}
</label>
</div>
{% endfor %}

View file

@ -182,7 +182,7 @@
</td>
<td class="width-80 line-height-20-px">
{% set i = 0 %}
{% for category in user.categories | sort %}{% if i > 0 %},{% endif %} {{ category | u.title }}{% set i = i + 1 %}{% endfor %}
{% for category in user.categories | sort %}{% if i > 0 %},{% endif %} {{ category | trans_category | u.title }}{% set i = i + 1 %}{% endfor %}
</td>
</tr>
<tr>

View file

@ -116,7 +116,7 @@
<input name="categories[]" id="{{ category }}" type="checkbox" value="{{ category }}" />
{% endif %}
<label class="margin-x-4-px" for="{{ category }}">
{{ category | u.title | trans }}
{{ category | trans_category | u.title }}
</label>
</div>
{% endfor %}