cotonti.com : i18N - Multilanguage https://www.cotonti.com Son konu mesajları Cotonti en Tue, 03 Feb 2026 06:32:55 -0000 ez
a location.reload in JS does not trigger the rewriterules... :(

I have a plan to get the browser url and then replace the language part with the new selected language and do a location.href=..... to the new url.

but need to work this out..

Maybe someone has a better idea to trigger the rewriterules from js ????]]>
Cmt, 21 Kas 2009 23:14:50 -0000
pieter
langselect changes the lang for menus
code for i18N does do it for the page-structure.
<div id="lang">
	<!-- BEGIN: LANG_ROW -->
		<a href=https://www.cotonti.com/"{LANG_ROW_URL}" class="{LANG_ROW_CURRENT}" title="{LANG_ROW_NAME}">{LANG_ROW_CODE}</a>
	<!-- END: LANG_ROW -->
</div>
]]>
Cmt, 21 Kas 2009 20:32:47 -0000
ez
Thanks to Pieter I found a serious bug in the language selector.
You can download a new language selector 104 from : http://ezscript.2basix.nl/page.php?id=33

This will solve some strange things when switching from pages and languages..

Please TEST it for me... I currently do not have a multilanguage site to test with

and let me know if it works !!!!!


Ow forgot to mention (please remove ALL langselect cookies from your browser before you test !!)]]>
Cmt, 21 Kas 2009 05:53:39 -0000
Oughtem It is here possible to look as languages are commuted. On all site except for index.php switching takes place by n18, and on index.php it is possible to be perfectly commuted by langselect.

Here what outputs I see:

1. to compel to work n18 in index.php - did not turn out;(

2. it is correct to prescribe in header.php


<!-- IF {PAGE_URL} = 'index.php' -->
	{PLUGIN_LANGSELECT}
<!-- ELSE -->
   	 <!-- BEGIN: LANG_ROW -->
        <a href=https://www.cotonti.com/"{LANG_ROW_URL}" class="{LANG_ROW_CURRENT}" title="{LANG_ROW_NAME}">{LANG_ROW_FLAG}</a>&nbsp;&nbsp;
    <!-- END: LANG_ROW -->
<!-- ENDIF -->


it did not also turn out ;(

3. To create header.index.tpl separately for index.tpl langselect will work in which. An ordinary header with n18 will work in all the other places. Did not turn out also ;((

4.To unite langselect and n18 in one plagyn. This I am not able)

I most like variant with logical blocks

On the site of http://www.adriaticclub.com/ by the way translation is carried out not on index.php, and on page and list]]>
Cmt, 21 Kas 2009 05:42:42 -0000
pieter DE is German]]> Cum, 20 Kas 2009 19:50:23 -0000 Oughtem
By the way, why at German language 2 codes are used: "nl" and "de"?]]>
Cum, 20 Kas 2009 19:29:16 -0000
pieter Kilandor.
You can use more then one category for the news.

See config of the news-plugin.
http://www.yoursite.com/admin.php?m=config&n=edit&o=plug&p=news

Main (first) news category is displayed on main page using {INDEX_NEWS} tag in index.tpl.
Other news categories are displayed on main page using {INDEX_NEWS_CATEGORYCODE} tag in index.tpl. Use news.categorycode.tpl file(s) to customize appearance of each news category.


<!-- IF {PHP.lang} == "nl" -->
{INDEX_NEWS_CATEGORYCODE_NL}
<!-- ENDIF -->  
<!-- IF {PHP.lang} == "en" -->
{INDEX_NEWS_CATEGORYCODE_EN}
<!-- ENDIF -->

For the menu in 2 languages I used this:

			<!-- IF {PHP.lang} == "nl" -->
				{PHP.cfg.freetext1}
			<!-- ENDIF -->  
			<!-- IF {PHP.lang} == "en" -->
				{PHP.cfg.freetext2}
			<!-- ENDIF -->
]]>
Cum, 20 Kas 2009 16:54:32 -0000
Oughtem Cum, 20 Kas 2009 16:24:42 -0000 ez
And integrate this language thing into the core.
There are a lot off sites out there that need to be multilanguage.

I really think this should be in the standard cotonti.
1 setting in the configuration: multiple languages Yes/No

Every select should be rewritten to filter the languages..]]>
Cum, 20 Kas 2009 16:12:20 -0000
Oughtem Lombi.

At a forum you showed multilanguage a site by which you did http://www.adriaticclub.com/

What did you do, what at you to be translated the MAIN PAGE too? You can show structure and that that is registered in.htacess and ultrans.dat?

Оn this site am two index.tpl:
http://www.adriaticclub.com/hr/index.php
and
http://www.adriaticclub.com/si/index.php

How to do 2 index.tpl?
Help please. In advance thanks.]]>
Cum, 20 Kas 2009 07:51:28 -0000
pieter
Can this be used for index news also?
I only get it to work for categories that are not NEWS-items.

It was already asked in comment of the plugin, but I did't find any anwser.
For the rest it is great.

If someone else knows the anwser, pls tell me.]]>
Sal, 17 Kas 2009 01:58:16 -0000