Voting starts in March for the Drupal Association Board election.
Posted by xjm
When adding or editing a node the language name in the content language selector is not translated to the local language.
This is a followup issue for.
Caused by: Languages are in English because the language names are cached in the ConfigurableLanguageManager and it is first invoked so early in the request before the language is negotiated, that we have no chance to have it in the right language if we keep caching like this. Also @alexpott suggested we just rely on the config factory cache.
Setup Drupal with modules: Language, Content translation, Configuration translation
- Add a second langauge.
- Translate the Language names of both languages.
- Enable the "Show language selector on create and edit pages" setting for Article content types (admin/structure/types/manage/article).
- Add an article node in the default language (http://example.com/node/add/article) and observe the languages in the Language select list on the node form. Language names should be in default language.
- Add an article node in the other language (http://example.com/[language code]/node/add/article) and observe the languages in the Language select list on the node form. Language names should be in the interface language.
Do not cache in the ConfigurableLanguageManager, rely on config factory cache instead.
Screen shots for http://example.com/nl/node/add/article.
|#157||interdiff.txt||2.47 KB||Gábor Hojtsy|
|#157||1879930.157.patch||13.71 KB||Gábor Hojtsy|
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 80,912 pass(es). View
|#155||interdiff.txt||4.68 KB||Gábor Hojtsy|
|#155||1879930.155.patch||13.69 KB||Gábor Hojtsy|
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 80,710 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 80,718 pass(es). View