[Solved] Questions about Multilingual site

Have a translation or something? It goes here. This can mean modules, documentation, or CMSMS itself!
Locked
jboavida
New Member
New Member
Posts: 6
Joined: Wed Jan 10, 2007 10:54 pm

[Solved] Questions about Multilingual site

Post 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
Last edited by jboavida on Sat Dec 08, 2007 7:07 pm, edited 1 time in total.
Vin

Re: Questions about Multilingual site

Post 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...
Last edited by Vin on Sun Dec 02, 2007 10:28 am, edited 1 time in total.
jboavida
New Member
New Member
Posts: 6
Joined: Wed Jan 10, 2007 10:54 pm

Re: Questions about Multilingual site

Post by jboavida »

Vin,

Global contents works just fine...

Joaquim
alby

Re: Questions about Multilingual site

Post 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
jboavida
New Member
New Member
Posts: 6
Joined: Wed Jan 10, 2007 10:54 pm

Re: Questions about Multilingual site

Post 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
alby

Re: Questions about Multilingual site

Post 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
Locked

Return to “Translations”