To make this work one must translate the node and add a new menu item to that node.
Do not translate a menu item as that sticks to the untranslated node.
See #6.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | single-page-multilingual-support-prefix-1892240-2.patch | 1.36 KB | clemens.tolboom |
Comments
Comment #1
clemens.tolboomI did not succeed in creating a test for multilingual.
What I did was:
On admin/config/regional/language enabled French Dutch and English
On admin/config/regional/language/configure enabled URL
On admin/config/regional/language/configure/url set to path prefix
Now created a (translatable) Story in English and Translated that into French and Dutch.
Now the normal front page shows
/ : the English node
/fr : the French node
/nl : the Dutch node
Next
drush pm-enable single_page_websitehas not much effect as the main menu has no entries.But what item should we add to the menu? It would be nice to add all to the main menu but that will show all nodes.
Switching between the language does change the UI but nl/single_page not much happened.
As we do not have much content we probably are better of having more menu's. One for each language.
Did I miss something?
To generate your list use
Comment #2
clemens.tolboomYes is missed something :p
On admin/structure/menu/manage/main-menu/edit
- Select "Translate and Localize. ... " for Multilingual options
Now navigating to /nl shows the expected Dutch node.
All nodes are added to the main menu.
Attached patch makes it work.
Comment #3
clemens.tolboomI've retested and it works like a charm.
Comment #5
clemens.tolboomComment #6
clemens.tolboomI reopened this issue as it was a little unclear how this support works.
But this is out of the Drupal box.
When one translates a node it must get a new menu item that is a new node has a separate menu item.
Comment #7.0
(not verified) commentedUpdated issue summary.