open plugins from languages

This commit is contained in:
antelle 2017-05-05 20:41:45 +02:00
parent 9f87d8fe49
commit 56a07ad0e7
3 changed files with 3 additions and 6 deletions

View File

@ -326,6 +326,7 @@
"setGenThemeSl": "Solarized light",
"setGenLocale": "Language",
"setGenLocImprove": "translate the app to your language",
"setGenLocOther": "other languages are available as plugins",
"setGenLocMsg": "Help translating KeeWeb",
"setGenLocMsgBody": "If you would like to see KeeWeb in your language, please help us with translation.",
"setGenLocMsgLink": "Translate the app",

View File

@ -177,11 +177,7 @@ const SettingsGeneralView = Backbone.View.extend({
const locale = e.target.value;
if (locale === '...') {
e.target.value = AppSettingsModel.instance.get('locale') || 'en';
Alerts.info({
icon: 'language',
header: Locale.setGenLocMsg,
body: Locale.setGenLocMsgBody + ` <a target="_blank" href="${Links.Translation}">${Locale.setGenLocMsgLink}</a>`
});
this.appModel.menu.select({ item: this.appModel.menu.pluginsSection.get('items').first() });
return;
}
AppSettingsModel.instance.set('locale', locale);

View File

@ -44,7 +44,7 @@
{{#each locales as |name key|}}
<option value="{{key}}" {{#ifeq key ../activeLocale}}selected{{/ifeq}}>{{name}}</option>
{{/each}}
<option value="...">({{res 'setGenLocImprove'}})</option>
<option value="...">({{res 'setGenLocOther'}})</option>
</select>
</div>
{{/if}}