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
[Solved] Questions about Multilingual site
[Solved] Questions about Multilingual site
Last edited by jboavida on Sat Dec 08, 2007 7:07 pm, edited 1 time in total.
Re: Questions about Multilingual site
No, these files are for the admin side of CMSMS. They don't show any text on the front page.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.
[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.
Re: Questions about Multilingual site
Vin,
Global contents works just fine...
Joaquim
Global contents works just fine...
Joaquim
Re: Questions about Multilingual site
CMSMS 0.X and 1.X are monolingual and modules/tags also.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.
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',
this display translation_of_this_in_language_of_this_php for each language
This will be next tips

Alby
Re: Questions about Multilingual site
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
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
You have problem with your encoded page. Quick solution is transform in html entity your characters: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.
Code: Select all
Voçe está aqui