Add i18n for the version checking
This commit is contained in:
parent
a1f8dcebd1
commit
e914222cb3
|
@ -3,7 +3,7 @@
|
|||
<div class="full-width">
|
||||
|
||||
<ul class="nav nav-pills">
|
||||
<li>{{#linkTo 'admin.dashboard'}}{{i18n admin.dashboard}}{{/linkTo}}</li>
|
||||
<li>{{#linkTo 'admin.dashboard'}}{{i18n admin.dashboard.title}}{{/linkTo}}</li>
|
||||
<li>{{#linkTo 'admin.site_settings'}}{{i18n admin.site_settings.title}}{{/linkTo}}</li>
|
||||
<li>{{#linkTo 'adminUsersList.active'}}{{i18n admin.users.title}}{{/linkTo}}</li>
|
||||
<li>{{#linkTo 'admin.email_logs'}}{{i18n admin.email_logs.title}}{{/linkTo}}</li>
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
<h3>Welcome to the admin section.</h3>
|
||||
<h3>{{i18n admin.dashboard.welcome}}</h3>
|
||||
|
||||
<p class="version-check">
|
||||
{{#if loading }}
|
||||
Loading...
|
||||
{{i18n loading}}
|
||||
{{else}}
|
||||
<p {{bindAttr class="priorityClass"}}>
|
||||
Discourse version: <span class="version-number">{{ versionCheck.installed_version }}</span>
|
||||
{{i18n admin.dashboard.version}}: <span class="version-number">{{ versionCheck.installed_version }}</span>
|
||||
|
||||
<span class="version-notes">
|
||||
{{#if upToDate }}
|
||||
<i class='icon icon-ok update-to-date'></i> You are running the latest version of Discourse.
|
||||
<i class='icon icon-ok update-to-date'></i> {{i18n admin.dashboard.up_to_date}}
|
||||
{{else}}
|
||||
<i {{bindAttr class="updateIconClasses"}}></i>
|
||||
<span class="critical-note">A critical update is available.</span>
|
||||
<span class="normal-note">Updates are available.</span>
|
||||
Please upgrade!
|
||||
Latest version: <span class="version-number">{{ versionCheck.latest_version }}</span>
|
||||
<span class="critical-note">{{i18n admin.dashboard.critical_available}}</span>
|
||||
<span class="normal-note">{{i18n admin.dashboard.updates_available}}</span>
|
||||
{{i18n admin.dashboard.please_upgrade}}
|
||||
{{i18n admin.dashboard.latest_version}}: <span class="version-number">{{ versionCheck.latest_version }}</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
</p>
|
||||
|
|
|
@ -606,7 +606,16 @@ en:
|
|||
|
||||
admin:
|
||||
title: 'Discourse Admin'
|
||||
dashboard: 'Admin Dashboard'
|
||||
|
||||
dashboard:
|
||||
title: "Admin Dashboard"
|
||||
welcome: "Welcome to the admin section."
|
||||
version: "Discourse version"
|
||||
up_to_date: "You are running the latest version of Discourse."
|
||||
critical_available: "A critical update is available."
|
||||
updates_available: "Updates are available."
|
||||
please_upgrade: "Please upgrade!"
|
||||
latest_version: "Latest version"
|
||||
|
||||
flags:
|
||||
title: "Flags"
|
||||
|
|
|
@ -589,7 +589,9 @@ fr:
|
|||
|
||||
admin:
|
||||
title: 'Administation Discourse'
|
||||
dashboard: "Panel d'administration"
|
||||
|
||||
dashboard:
|
||||
title: "Panel d'administration"
|
||||
|
||||
flags:
|
||||
title: "Signalements"
|
||||
|
|
|
@ -327,7 +327,9 @@ nl:
|
|||
|
||||
admin:
|
||||
title: 'Discourse Beheer'
|
||||
dashboard: 'Beheer Dashboard'
|
||||
|
||||
dashboard:
|
||||
title: 'Beheer Dashboard'
|
||||
|
||||
flags:
|
||||
title: "Meldingen"
|
||||
|
|
Loading…
Reference in New Issue