It works then correctly (cf article) but if a document did not exist in a specific language the language switcher did not shown this language anymore. If you need correct language relation between document you have to pay attention to use the "TRANSLATION" function/editor to relate same document between them (initialized in the drupal "node" table the tnid field to related translate documents between them) I am guess you use the language switcher block.Ī good analysis of the problematic is shown in So the switcher would just have to lead to homepages while changing the whole site language and nothing more (not associating directly one page to its translation). The goal is to have three slightly different sites in one rather than one identically translated site. Then I came to the conclusion that he only way to have both language changing in blocks plus banner and direct access to homepage per language when clicking on language links in the switcher block would be to tell the system to do both in the switcher block files. If you want to test (the design is so ugly that I'm a little ashamed), You can see the switcher at the top on the left sidebar and the blocks created to sove the problem at the bottom on the left sidebar: But then when I'm on another page than the home page, only homepages change language and not the blocks. I added three blocks in the three different languages with links to the three homepagesto replace the switcher block, thinking that this would solve the problem. If I'm on another page, the blocks change language but the page visited (the one I am on) remains. The homepage chane only if I am on one of the three homepages. If I keep that switcher, blocks change language when I click on another language. I just can't unserstand why the links in switcher don't bring back to homepages. The menus and banner change language correctly. I have though created three distinct homepages and entered their respective id in admin/site information. So the current page in french remains displayed (only blocks and banner change language) and can't reach the spanish homepage unless I click on the banner that leads to the default language (english) and then click on the spanish link in the switcher. Then, if I want to reach one of the two other homepages when visiting another page than the homepage in one of the blocks, the current node id goes behind the language id.įor instance, if I'm on a french page with this URL: and if I click on "spanish" in the switcher block, I get. I've just installed and configured a site with three languages (english, french and spanish) and everything is ok with the switcher when I'm on the homepage (I can reach the three homepages directly through the switcher). I'd like to make it possible to reach each language homepage when clicking on language links in the switcher block (which seems logical).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |