mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add categories feature translation #26
This commit is contained in:
parent
d1e9e72401
commit
ff565ac33b
23 changed files with 894 additions and 31 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue