Page 1 of 1

[Solved] Questions about Multilingual site

Posted: Sun Dec 02, 2007 7:57 am
by jboavida
Hi,

I have installed the multilingual version of CMSMadeSimple without problems. The contents work ok.

However, I don't quite understand how to translate the core. In the top of page the strings "You are here", the search button, the navigation strings "^Top" etc. 

I had notice that in every module we have in the root of the "lang" folder one file "EN_Us.php" and the other languages are in the "ext" folder. Do I have to put my language file in the besides the "en_us.php"  (outside the ext folder). I had done that with the search module but the search text and the "Submit" word never change. Always in english.

Thanks in advance for any help.

Joaquim

Re: Questions about Multilingual site

Posted: Sun Dec 02, 2007 10:12 am
by Vin
jboavida wrote: I had notice that in every module we have in the root of the "lang" folder one file "EN_Us.php" and the other languages are in the "ext" folder. Do I have to put my language file in the besides the "en_us.php"  (outside the ext folder). I had done that with the search module but the search text and the "Submit" word never change. Always in english.
No, these files are for the admin side of CMSMS. They don't show any text on the front page.
[edit] Doesn't it work for global content blocks as well? I don't use Multilingual, just an idea...

Re: Questions about Multilingual site

Posted: Sun Dec 02, 2007 12:03 pm
by jboavida
Vin,

Global contents works just fine...

Joaquim

Re: Questions about Multilingual site

Posted: Sun Dec 02, 2007 3:37 pm
by alby
jboavida wrote: I have installed the multilingual version of CMSMadeSimple without problems. The contents work ok.

However, I don't quite understand how to translate the core. In the top of page the strings "You are here", the search button, the navigation strings "^Top" etc. 
CMSMS 0.X and 1.X are monolingual and modules/tags also.
In general, language strings are in language file en_US.php, it_IT.php, ... but other are "hardcoded" in tag/plugins for example.
For avoid problem I have "forced" loading of locale language file for modules, in other case I force this with param: lang="$lang"

For your problem, for example, "You are here" is, I think, the starttext param of breadcrumbs tag.
You cannot use "hardcoded" string in this tag because this string are display ALWAYS, for each language.

In mle folder there is a subdirecory lang. In this folder there are language files for whole site.

Copy from en_US.php to your locale file if not exist (ex: fr_FR.php) and put a row in en_US.php and your_locale.php:

Code: Select all

'you_are_here' => 'translation_of_this_in_language_of_this_php',
Ok, if you call your tag: {breadcrumbs starttext="$mle_translation.you_are_here"}
this display translation_of_this_in_language_of_this_php for each language

This will be next tips  :)

Alby

Re: Questions about Multilingual site

Posted: Sun Dec 02, 2007 4:27 pm
by jboavida
Alby,

Works like a charm, thanks!!

Just another question: My language is Portuguese. When I use "Voçe está aqui" it displays Vo�e est� aqui.

Any idea why?

Grazie

Joaquim

Re: Questions about Multilingual site

Posted: Sun Dec 02, 2007 10:06 pm
by alby
jboavida wrote: Works like a charm, thanks!!

Just another question: My language is Portuguese. When I use "Voçe está aqui" it displays Vo�e est� aqui.
You have problem with your encoded page. Quick solution is transform in html entity your characters:

Code: Select all

Voçe está aqui
Alby