populate the language setting from the TAPi18n object

This commit is contained in:
Sacha Greif 2014-11-21 15:13:56 +09:00
parent 92b5ee7ceb
commit 5cfc0c6b02

View file

@ -157,7 +157,16 @@ settingsSchemaObject = {
optional: true,
autoform: {
group: 'general',
instructions: 'The two-letter code for the app\'s language. Defaults to "en".'
instructions: 'The app\'s language. Defaults to English.',
options: function () {
var languages = _.map(TAPi18n.languages_available_for_project, function (item, key) {
return {
value: key,
label: item[0]
}
});
return languages
}
}
},
backgroundCSS: {