cotonti.com : multi language sites https://www.cotonti.com Laatste forum onderwerpen Cotonti en Thu, 04 Dec 2025 05:21:03 -0000 pieter Siena? Genoa?

What procedure did you follow?

]]>
Vr, 10 Aug 2012 20:29:24 -0000
jbra When I goto page it shows this: http://www."domain".com/online/ru/articles/my_page_en

in URL but I get a nopage found error 404. And when I click the russian link on the home page it just refreshes screen.

Please help...

]]>
Vr, 10 Aug 2012 20:06:37 -0000
Lombi ]]> Vr, 06 Nov 2009 07:57:19 -0000 ez My plugin is NO replacement what so ever...
I only made a nice selection for languages. Trustmasters plugin is needed for the real selection off pages and categories by language.

But maybe I have made some stuff that he can use in the i18n plugin.
Lets all make better stuff :)]]>
Thu, 05 Nov 2009 02:41:58 -0000
Lombi
Have a site running this and i'm in awe every time i remember about the system :)]]>
Wo, 04 Nov 2009 08:04:32 -0000
ez The autodetect function is finished and can be found http://ezscript.2basix.nl/page.php?id=33
I have made some nice improvements.. ;)

@Trustmaster:
Maybe you want to use my language selector plugin ??? for the 18n plugin
at least have a look at it, and tell me what you think]]>
Wo, 04 Nov 2009 03:58:30 -0000
Trustmaster Wo, 04 Nov 2009 02:29:05 -0000 ez
this is the Accept-Language HTML Header...
I could make another option for this (autodetect language) or so.... :D

I still have to look into Trustmasters plugin (how that works for pages in different languages..
But I will trust that works.. B)

Added 1 day later:

@Alex300
I have made it autodetect, I will publish the plugin later...
It works great :D

Looking up an ip address is to much...]]>
Ma, 02 Nov 2009 04:37:27 -0000
Alex300 Ma, 02 Nov 2009 04:31:13 -0000 ez The plugin is here: http://ezscript.2basix.nl/page.php?id=33

Preview: en

Configuration:

No, I have only a local demo running, but it is so simple to use, so just install it. :)
In header.tpl (sed-light) add the tag like this:
      </div>
            </div>
{PLUGIN_LANGSELECT}
            <div id="content">

Install the plugin, enable the plugin, choose flags or selectbox and your good to go, you will see what it does.

I think you can use this.. because off the two languages in your country.

Hope to hear some reactions... B)

Ow, the french language file is not included yet, so you have to add it manually]]>
Ma, 02 Nov 2009 03:08:01 -0000
pieter
Added 4 minutes later:

Do you have somewhere a demo?]]>
Ma, 02 Nov 2009 00:54:07 -0000
ez

Now I can change the language on the fly already... and it already works jeeaahh.
So things to do:

1) make a tag for the language selector (like in the user profile) (I think in the header.tpl)
2) Store the language selection in a browser cookie
   So when returning to the page it will remember your setting by the cookie..
   and you can switch languages on the fly with the selector.

Together with the 18n plugin this will have all the ingredients for international sites :P

Hopefully I can finish that, because the cookie thing is new to me.

Added 1 day later:

Hi everyone...

I have made the plugin to switch from language on the fly !!!!
Together with Trustmasters i18n plugin you can make your site INTERNATIONAL.

please try it and let me know what you think.

ow forgot. You can even choose between flags as output or a select box..

enjoy :D

You can find the plugin here: Language selector plugin]]>
Za, 31 Okt 2009 04:56:40 -0000
pieter Za, 31 Okt 2009 04:12:13 -0000 ez
The title off that plugin was NOT clear for me...

Now I still have to make it work so that people can choose a language.
Any ideas for that ?????

I think I can make something in a hook, but I will have to look a bit further for that.]]>
Za, 31 Okt 2009 02:35:39 -0000
pieter http://www.cotonti.com/downloads/plugins/pages-lists/141?highlight=18N]]> Za, 31 Okt 2009 01:43:34 -0000 ez
look at multiple languages selection

THIS SHOULD BE EASY because Cotonti already supports languages.... :P

I allready found it in common.php, but I do NOT want to make core hacks.
	}
	else
	{
		$usr['skin'] = sed_import($u[0], 'D', 'ALP');
		$usr['theme'] = sed_import($u[1], 'D', 'ALP');
		$usr['lang'] = sed_import($u[2], 'D', 'ALP');
	}
}

if($usr['id']==0)
{
	$usr['auth'] = sed_auth_build(0);
	$usr['skin'] = empty($usr['skin']) ? $cfg['defaultskin'] : $usr['skin'];
	$usr['theme'] = empty($usr['theme']) ? $cfg['defaulttheme'] : $usr['theme'];
	$usr['lang'] = empty($usr['lang']) ? $cfg['defaultlang'] : $usr['lang'];
	$sys['xk'] = mb_strtoupper(dechex(crc32($sys['abs_url']))); // Site related key for guests
}

So can we make a hook or something to influence what language is selected..
We can even use a HTML header.. like Accept-Language to detect this.. (maybe a setting in the configuration :))]]>
Vr, 30 Okt 2009 21:34:15 -0000