Skip to content
Browse files

mod_translation: Remove double title in the edit language dialog

  • Loading branch information...
1 parent c893441 commit f050f3b80ec43d953b0a91cd3e0bc1b354b2bc0b @arjan arjan committed
View
7 modules/mod_translation/templates/_dialog_language_edit.tpl
@@ -1,10 +1,3 @@
-
-{% if new %}
-<h3>{_ Add a new language _}</h3>
-{% else %}
-<h3>{_ Edit _} {{ lang.language }} ({{ code }})</h3>
-{% endif %}
-
<p>{_ Enter the iso code (for example <em>en</em> or <em>nl</em>), and the title of the language. Use the native form of the language, for example <em>English</em>, <em>Türkçe</em> or <em>Français</em>. _}</p>
{% wire id=#form type="submit" postback={language_edit code=code} delegate="mod_translation" %}
View
4 modules/mod_translation/templates/admin_translation.tpl
@@ -11,7 +11,7 @@
<br/>{_ Enabled languages show up in the language selection menu. The default language is used for new visitors without a selected language. _}</p>
<div class="well">
- {% button class="btn btn-primary" text="Add language"
+ {% button class="btn btn-primary" text=_"Add language"
action={dialog_open title=_"Add language" template="_dialog_language_edit.tpl" new}
%}
</div>
@@ -53,7 +53,7 @@
%}
{% button class="btn btn-mini"text=_"Edit"
action={dialog_open
- title=_"Edit language" template="_dialog_language_edit.tpl"
+ title=_"Edit language"|append:": "|append:lang.language template="_dialog_language_edit.tpl"
code=code lang=lang}
%}
</div>

0 comments on commit f050f3b

Please sign in to comment.
Something went wrong with that request. Please try again.