cotonti.com : Multi-language https://www.cotonti.com Последние сообщения в теме Cotonti en Sun, 01 Mar 2026 20:53:17 -0000 pieter пт, 05 ноя 2010 21:54:24 -0000 GHengeveld
  • All pages are in a default language
  • Pages in other languages are stored seperately, as alternative pages
  • Later on this can be extended to support pages in non-standard language without a 'parent' page in default language.
  • Language options can be set by administators, so new languages can be added when needed. Perhaps there will also be an option/script to allow all languages/pre-install a big list of languages.
The entire thing will be a plugin or module, so it's optional.]]>
пт, 05 ноя 2010 21:32:37 -0000
Trustmaster http://trac.cotonti.com/ticket/451 - in progress]]> пт, 05 ноя 2010 20:17:17 -0000 pieter
Will this be implemented someday standard in the core of Cotonti?
I think this is a must have for Cotonti, if we want to grow.

This is not urgent for me, just nice to know what is going on with it.]]>
пт, 05 ноя 2010 18:49:18 -0000
ez It would be cool if cotonti would use my language selection plugin (or parts of it) in Siena :D
I really think that multilanguage support is a must have..

In a few weeks I, maybe, have time to look at it pieter...
I will let you know if I start working on it again..]]>
чт, 08 апр 2010 15:31:56 -0000
Trustmaster ср, 07 апр 2010 17:21:15 -0000 pieter
My site is not critical, So if needed I want to try the alpha version.
For the moment it is a static site. So if I have a backup I can return after a time.]]>
ср, 07 апр 2010 17:09:24 -0000
Trustmaster ср, 07 апр 2010 17:07:04 -0000 ez
I think I could do it all in JS

When switching I could change the language part of the url www.ljcourtois.be/en/page/bestellen
to the newly selected language. (and do a redirect)

so old url: www.ljcourtois.be/en/page/bestellen
new url: www.ljcourtois.be/nl/page/bestellen

BUT this will only work IF the /page/bestellen part is also available in the other language.
Any way this is what I was thinking... for a solution

Maybe someone can pick it up, and make it...
Like I said... I have a lot of (paid) work to do first...

Hope someone can help here :)
Like pieter said It would be a very nice feature to have !!!]]>
ср, 07 апр 2010 05:32:16 -0000
pieter
// Language selector
foreach($pagi18n_langs as $key)
{
	$pi18n_url = preg_replace(PAGI18N_PATTERN2, '/'.$key.'/', $_SERVER['REQUEST_URI']);
	$t->assign(array(
		'LANG_ROW_URL' => $pi18n_url,
		'LANG_ROW_CODE' => $key,
		'LANG_ROW_NAME' => $sed_languages[$key],
		'LANG_ROW_FLAG' => '<img src=https://www.cotonti.com/"images/flags/f-'.$key.'.gif" alt="'.$key.'" />',
		'LANG_ROW_SELECTED' => $key == $lang ? 'selected="selected"' : '',
		'LANG_ROW_CURRENT' => $key == $lang ? 'current' : ''
	));
	$t->parse('HEADER.LANG_ROW');
}

But than I can only select the language for the menu's and not for the pages.

What I want is that if I click on a link (flag or link) that I change it for the pagi18n AND language selector with that one click.

Added 1 minute later:

I guess I need to combine the code from both plugins.
Add the lang selector function in the pagi18n or visa versa]]>
ср, 07 апр 2010 04:19:34 -0000
Trustmaster ср, 07 апр 2010 02:57:40 -0000 pieter
I have a site with 2 languages up and running, but I'm using 2 plugins for it.
- Page i18n from Trustmaster
- Language Selector from EZ

But now I need to add 2 language flags.
1 for the menu's (Ez plugin)
1 for the pages (trustmaster)

The site: http://www.ljcourtois.be/en/page/bestellen
Click on the flag on top of the page to see what it does.

Is there a way to do it with on selector?
I'm not a programmer, so I have no clue.
Can some help me?]]>
ср, 07 апр 2010 00:48:12 -0000