Suppose I have Chinese and English multilingual site, and I have Primary link menu in Chinese and English. Firstly I am in Chinese Interface, so everything in Chinese. Now if I click a link to another page, but this page does not have Chinese translation, Drual will display the English page - this is fine.
The problem is now the Primary menu also come out in English. This is NOT correct and menu should stay in the current user interface lanaguge - Chinese.
If the clicked link fallback to a page with 'no lanuage', the Primary menu come out enmpty. The menu is showing it's 'no language' items which has none. Again, the menu should stay in Chinese.
So contents selection when fallback should not change the user interface language.
Comments
Comment #1
hongbo commentedI am able to fix this problem by adding one line in file i18n.module, inside the function of i18n_db_rewrite_where(). It basically call i18n_get_lang() istead of i18n_selection_mode('params').
I am new to Drupal, so can anyone check if it has any side effects?
Comment #2
jose reyero commentedI think the same, but this is not the behaviour implemented by Drupal core.
Really I have no intention of overriding Drupal core's design decisions, feel free to open a feature request for Drupal core.