Skip to content

Commit e0ef422

Browse files
Merge pull request nsupdate-info#627 from ThomasWaldmann/language-names
Fix capitalization of language names
2 parents 2caa60f + 3642a2b commit e0ef422

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/nsupdate/settings/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,6 @@
442442
('el', gettext_noop('Greek')),
443443
('fr', gettext_noop('French')),
444444
('it', gettext_noop('Italian')),
445-
# ('es', gettext_noop('Spanish')),
446-
# ('zh-cn', gettext_noop('Chinese (China)')),
447445
)
448446

449447
# Silences the 1_6.W001 warning you get without this.

src/nsupdate/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<input type="hidden" name="language" value="{{ lang.code }}" />
8585
</form>
8686
<a class="dropdown-item" href="#" onclick="document.getElementById('setLang{{ forloop.counter }}').submit();return false;">
87-
{{ lang.name_local }} ({{ lang.name }}) [{{ lang.code }}]
87+
{{ lang.name_local|capfirst }} ({{ lang.name }}) [{{ lang.code }}]
8888
</a>
8989
{% endif %}
9090
{% endfor %}

0 commit comments

Comments
 (0)