forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(info): include basic language info in translation/language views
This makes the information about language more visible.
- Loading branch information
Showing
7 changed files
with
110 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% load i18n %} | ||
|
||
{% if show_full_language %} | ||
<tr class="info"> | ||
<th colspan="3"> | ||
{% if user_can_edit_language %} | ||
<a class="btn btn-primary btn-xs pull-right flip" href="{% url 'edit-plural' pk=plural.pk %}">{% trans "Edit" %}</a> | ||
{% endif %} | ||
{% blocktrans with source_description=plural.get_source_display %}Plural: {{ source_description }}{% endblocktrans %} | ||
<span class="badge">{% blocktrans count count=plural.translation_set.count %}{{ count }} translation{% plural %}{{ count }} translations{% endblocktrans %}</span> | ||
</th> | ||
</tr> | ||
{% endif %} | ||
<tr> | ||
<th>{% trans "Number of plurals" %}</th> | ||
<td colspan="2">{{ plural.number }}</td> | ||
</tr> | ||
<tr> | ||
<th>{% trans "Plural type" %}</th> | ||
<td colspan="2">{{ plural.get_type_display }}</td> | ||
</tr> | ||
<tr> | ||
<th rowspan="{{ plural.number }}">{% trans "Plurals" %}</th> | ||
{% if plural.number > 1 %} | ||
{% for item in plural.list_plurals %} | ||
{% if item.index > 1 %} | ||
<tr> | ||
{% endif %} | ||
<td>{{ item.name }}</td> | ||
<td>{{ item.examples }}</td> | ||
</tr> | ||
{% endfor %} | ||
{% else %} | ||
<td colspan="2"></td> | ||
</tr> | ||
{% endif %} | ||
<tr> | ||
<th>{% trans "Plural formula" %}</th> | ||
<td colspan="2" class="full-cell"><code>{{ plural.formula }}</code></td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters