use themes translation

This commit is contained in:
antelle 2017-02-04 23:21:08 +01:00
parent fcb93f6df8
commit 2ecf4b0e3c
1 changed files with 8 additions and 8 deletions

View File

@ -48,13 +48,13 @@ const SettingsGeneralView = Backbone.View.extend({
views: null,
allThemes: {
fb: Locale.setGenThemeFb,
db: Locale.setGenThemeDb,
sd: Locale.setGenThemeSd,
sl: Locale.setGenThemeSl,
wh: Locale.setGenThemeWh,
te: Locale.setGenThemeTe,
hc: Locale.setGenThemeHc
fb: 'setGenThemeFb',
db: 'setGenThemeDb',
sd: 'setGenThemeSd',
sl: 'setGenThemeSl',
wh: 'setGenThemeWh',
te: 'setGenThemeTe',
hc: 'setGenThemeHc'
},
allLocales: {
@ -82,7 +82,7 @@ const SettingsGeneralView = Backbone.View.extend({
const updateManual = UpdateModel.instance.get('updateManual');
const storageProviders = this.getStorageProviders();
this.renderTemplate({
themes: this.allThemes,
themes: _.mapObject(this.allThemes, theme => Locale[theme]),
activeTheme: AppSettingsModel.instance.get('theme'),
locales: this.allLocales,
activeLocale: SettingsManager.activeLocale,