display language name in user locale selector - make it consistent with admin (#5424)
This commit is contained in:
parent
1b4483c942
commit
0f4ed2e070
|
@ -33,7 +33,7 @@ export default Ember.Controller.extend(PreferencesTabController, {
|
||||||
|
|
||||||
@computed()
|
@computed()
|
||||||
availableLocales() {
|
availableLocales() {
|
||||||
return this.siteSettings.available_locales.split('|').map(s => ({ name: s, value: s }));
|
return JSON.parse(this.siteSettings.available_locales);
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed()
|
@computed()
|
||||||
|
|
|
@ -30,7 +30,7 @@ class SiteSetting < ActiveRecord::Base
|
||||||
client_settings << :available_locales
|
client_settings << :available_locales
|
||||||
|
|
||||||
def self.available_locales
|
def self.available_locales
|
||||||
LocaleSiteSetting.values.map { |e| e[:value] }.join('|')
|
LocaleSiteSetting.values.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.topic_title_length
|
def self.topic_title_length
|
||||||
|
|
Loading…
Reference in New Issue