Forums / Cotonti / Support / Internationalization rewrite url problem

tensh
#1 2012-09-21 09:25

When I set up internationalization to include language selector in the url, it works only in pages and lists.

But Cotonti also makes urls like /en/admin and stuff, which don't work. How should I change htaccess to make the rest of urls work?

edit: it looks like only www.site.com/en/admin doesn't work, but once I get into www.site.com/admin/ , then the rest links like www.site.com/en/admin/config do work.

Added 3 minutes later:

How does it work anyway? should I get the category structure starting from language codes? How should I add internationalized pages?

Added 42 minutes later:

I would like to achieve this category structure:

en/news/somenews
de/news/somenews
pl/news/somenews

is it possible?

Added 4 minutes later:

An with a category strukture like this:
en/news/page
pl/aktualnosci/strona

is it possible? How the system knows which page to return?

This post was edited by tensh (2012-09-21 10:20, 11 years ago)
Trustmaster
#2 2012-09-21 17:39

First, about admin URL problem: admin, login and message are special, they don't understand rewrite parameters which normally go through index.php. So try linking to them without extra parameters like language.

Next, structure. Welcome from Genoa :) In Siena i18n is handled differently. You don't need to maintain similar structure for several languages in parallel, instead you create 1 structure tree in your primary language and then translate it to secondary languages. See this help for the start.

May the Source be with you!
tensh
#3 2012-09-24 10:38

Okay, thanks for help. But still i have the problem.

I have a category called "news".

Cotonti displays www.site.com/en/news normally but throws 404 error when I want to navigate to www.site.com/pl/news... how to fix that?

Added 2 minutes later:

OK, found it. "pl" wasn't in htaccess :)

Added 2 hours later:

OK, another thing:

Let's say I have structure extrafield. How to add it to the internationalization? I should edit the internationalization plugin to take this into account?

This post was edited by tensh (2012-09-24 12:54, 11 years ago)