I have a question about path aliasing when doing international content.

I have a news page on my site with a path that goes http://www.mysite.com/news and when I click on the japanese flag on my site the path changes to http://www.mysite.com/ja/news so I was going to make a japanese link to it with the word news in Japanese of course. But I tried to get it to link to mysite.com/ja/news and it wouldn't let me . It said that the path didn't exist or I didn't have permission to. Why is this? Is mysite.com/news a different node then ja/news? This is important because I need to rebuild some views blocks to show lists of japanese news/press releases ect on the ja/news page only. So what gives?

Can anyone help me figure this out?

Becky

Login to post comments

i18n setttings

avior - Thu, 2009-04-30 14:14

you should set the language settings to "path prefix with lang fallback" (the third radio)
if it's a page so you have to have 2 pages English & Japanese and set each node path to "news"
so it will be http://www.mysite.com/ja/news
and http://www.mysite.com/en/news

if this is a view so this should be automatic

good luck


problems if the path aliases are different

urrestieta - Fri, 2009-09-18 11:14

in a similar case to the one pointed here, what if the path aliases are different and they both must link to the same node with different translations.? for example:

http://www.mysite.com/en/news
http://www.mysite.com/es/noticias

I am having problems to get the menus running.

I create a page node, set it to one of the languages (for eg. english) and asigning a alias to it (for eg. news). Then I create a translation to another language (spanish) and set a new alias (noticias). This works so far. But then I need to have menu items pointing to those pages. I cannot set the menu item to point to one of the translations. I get this error :

The path 'noticias' is either invalid or you do not have access to it.

This worked with Drupal 5 as far as I remember, i have done few multilingual pages with 5. I just started using drupal 6, maybe I am missing something?

thanks


and problems with menus when alias is the same

urrestieta - Fri, 2009-09-18 11:37

Another similar issue. In the case described above where the alias is actually the same for two languages (for eg. news), if i create menu entries to point to each of the nodes (the spanish and the english). When I create the both menu entries I enter as path the alias ( news ) but then I see that Drupal has actually replaced the alias with the node number (node/2, node/3).

thanks again

i just realised that this happens always. the menu entries dont seem to like to point to alias at all.


solved!

urrestieta - Fri, 2009-09-18 13:47

sorry.. i was doing something weird now it is solved this last problem, not the first yet. i followed this tutorial http://drupal.org/node/275705