Replace config.autoLanguage comment with config.language in config.js.
The config.autoLanguage parameter is now obsolete - it's not checked anywhere by the editor's code. Instead, what we're doing right now is this:
- Check if there's a config.language - if it is defined, use that.
- Check if we have a translation matching the browser's default language - if we have, use that.
- If all fails, use config.defaultLanguage.
Right now the explanation in config.js, as well as some of the documentations in _source/core/lang.js, are not reflecting what's actually happening.
Change History (10)
Keywords: |
Review? added
|
Owner: |
set to Artur Formella
|
Status: |
new →
assigned
|
Keywords: |
Review- added; Review? removed
|
Keywords: |
Review? added; Review- removed
|
Keywords: |
Review- added; Review? removed
|
Owner: |
changed from Artur Formella to Frederico Caldeira Knabben
|
Status: |
assigned →
new
|
Keywords: |
Review? added; Review- removed
|
Keywords: |
Review+ added; Review? removed
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
The "language" setting is no a boolean, and it's relationship with the defaultLanguage setting is different now.
Also, I would change the sample in the config.js file, using now the "language" setting, replacing the defaultLanguage example. It looks more like a real user case in this way.