I use Drupal 7, locale and the i18n modules. I've setup a mini site with node translation.
I have the following EN
nodes:
node/1
Aboutnode/2
Termsnode/3
FAQnode/4
Contact
and the following FR
nodes:
node/5
A propos [translation ofnode/1
]node/6
Contacter [translation ofnode/4
]
The main site is the English one and the French menu will always be equal or a subset of the English one (same structure).
I've implemented the site using 2 menus, one for EN
(4 links + Home) and one for FR
(2 links + Home). This works but doesn't scale well if I have many (500) nodes per language and:
- I decide to add a new language
- I decide to reorder some nodes around (change parents etc)
I've also implemented the site using 1 menu (the "Main Menu") and it contains all links (4 links + 2 links + Home). This works but still has the previous disadvantages and in addition:
- links are mixed when the user is selecting parent menus
So, my question is, assuming I need a 1-to-1 mapping from EN
to FR
, or a subset of EN
but with the exact same structure, isn't there a simpler way to solve this? Ideally I'd want to have a single Menu which would specify something like:
- /about -> node/1, /fr/about -> node/5
- /terms -> node/2
- /faq -> node/3
- /contact -> node/2, /fr/contact -> node/6
Is this possible?
FR
menu. I'm following hojtsy.hu/blog/2011-nov-19/… to the letter but no luck.node/1
, yes I can translate it toFR
, but it'll still be pointing tonode/1
and notnode/5
. So I've found that menu item translation works well when it points to a view or to an external URL but not to a node. Do you confirm?