Multilanguage CMSMS MLE version 1.1.1

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
alby

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by alby »

Sofia1 wrote: Hi All, sorry for being daft, but I am currently using CMSMS v1.1 and I would like to convert this to the multi-lingual version.
I have tried installing it, but the install php does not do anything (it just loads a blank page).

Does anyone have a step by step idiots guide? Sorry for being a bit daft.
Have you read this?


- Backup 1.1 (file+DB)
- Upgrade (without rename config_lang.php.alby) to 1.1.2
- Check if works




- Read README.FIRST, applies all queries for transform in MLE
- Rename config_lang.php.alby in config_lang.php


Alby
Last edited by alby on Sat Oct 06, 2007 8:15 am, edited 1 time in total.
chipper
Forum Members
Forum Members
Posts: 42
Joined: Thu Aug 09, 2007 5:29 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by chipper »

Hi Alby

Thanks yet again - Will try your solutions and let you know how I get on

Regards
Lynne
Sofia1

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by Sofia1 »

Hey,
I have been trying for two days straight now to get this mle working, but no luck. I keep on seeing a blank white screen when running the installer.
I have done the following..
updated my cmsms to the latest version
Copied the files and folder from cmsms-mle-1.0.2-build4 to the cmsmadesimple folder (my root folder for the cms system)

Alby? where is the readme.first file you are referring to? Its not included in the zip file. "Read README.FIRST, applies all queries for transform in MLE"

As per this file I added the following: (http://dev.cmsmadesimple.org/docman/vie ... 53/faq.txt)

added to html (uder the htmlblob table) the _en suffix as well as to the menu_text? and something_content?
Added the _fr columns in mysql
made ALL folders write and execute

Please could you help me?  Many thanks,
Phil
alby

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by alby »

Sofia1 wrote: I have been trying for two days straight now to get this mle working, but no luck. I keep on seeing a blank white screen when running the installer.
I have done the following..
updated my cmsms to the latest version
Copied the files and folder from cmsms-mle-1.0.2-build4 to the cmsmadesimple folder (my root folder for the cms system)
???  ???  ???  ???

No!

A) Have you MLE 1.02 installed?
1. BACKUP
2. Download cmsms-mle-1.1.2.tar.gz in ABOVE Reply #4
3. Upgrade with uncompress overwrite MLE 1.02 file
4. Edit config_lang.php.alby with your languages (see examples in file) and rename to config_lang.php (overwrite old config_lang)
5. Check if your site work


B) Have you a normal CMSMS installed OR is a new INSTALL?
  - If you have an installed site: BACKUP
1. Download cmsms-mle-1.1.2.tar.gz in ABOVE Reply #4
2. DON'T RENAME config_lang.php.alby:
  - If you have an installed site: upgrade like a normal CMSMS and enter in admin area for ugrade your modules
  - For new site, installed in normal mode
3. Check if your site work
4. Now transform in MLE:
  - read README.FIRST in root directory
  - edit config_lang.php.alby with your languages (see examples in file) and rename to config_lang.php
  - apply sql queries (see in file and replies in this topic)
5. Check if your site work



Have you a old backup of prev version?
Restore your old system and follow above points

Alby
Last edited by alby on Wed Sep 12, 2007 7:17 pm, edited 1 time in total.
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by manurevah »

thanks alby for providing a full cmsms directly with direct multi language support, saved me light years of work.. . 
: ]
chipper
Forum Members
Forum Members
Posts: 42
Joined: Thu Aug 09, 2007 5:29 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by chipper »

Back again - I now have the time to try this out and have got this far (see below) - however my ignorance of how this works means I have to ask another question - sorry!
- If you have class/id CSS for different language (NOT html{...}, *{...}) only:
  rename your class in this mode: StyleClassForThisTag in
  StyleClassForThisTag_en_US{...}, StyleClassForThisTag_it_IT{...}, ... with difference  of style languages

  In template call this class: ...

Alby
The flags are showing and working. I have copied your text StyleClassForThisTag etc and wrapped it around the {lang} tag and added this css to my stylesheet:

StyleClassForThisTag_en_GB{...}

StyleClassForThisTag_cy_GB{...}

This is where I get very confused! What goes where the three dots are?

The background image is attached to the body tag like so:

body {
text-align: left;
font-family: "Lucida Sans", Verdana, sans-serif;
font-size: 76%;
line-height: 1.5em;
background-color: #9734C3;
background-image: url(../images/bg.gif);  */this being the English background, and there wll be another image: bg_c.gif for the Welsh background /*
background-attachment: fixed;
background-repeat: repeat-x;
background-position: center bottom;
}

Do I use something like

body cy_GB{ etc

body en_GB{ etc

No that doesn't look right! My knowledge isn't up to it at the moment - still this is a good way to learn

So stuck yet again! Can you help?

And I second the appreciation of this MLE - just couldn't wait for version 2 as I have to do this work now

Thanks and Regards
Lynne
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by manurevah »

i'm really not sure, and plus it's my bedtime so i cannot test right now, but it seems you should have

Code: Select all

body_en_GB {
   text-align: left;
   font-family: "Lucida Sans", Verdana, sans-serif;
   font-size: 76%;
   line-height: 1.5em;
   background-color: #9734C3;
   background-image: url(../images/bg_c.gif);
   background-attachment: fixed;
   background-repeat: repeat-x;
   background-position: center bottom;
}

body_cy_GB [
   text-align: left;
   font-family: "Lucida Sans", Verdana, sans-serif;
   font-size: 76%;
   line-height: 1.5em;
   background-color: #9734C3;
   background-image: url(../images/bg.gif); 
   background-attachment: fixed;
   background-repeat: repeat-x;
   background-position: center bottom;
}
hope i understood something and it works for you. ..
: ]
alby

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by alby »

chipper wrote: StyleClassForThisTag_en_GB{...}

StyleClassForThisTag_cy_GB{...}

This is where I get very confused! What goes where the three dots are?
It's an example of style, substitute ... with your style.

chipper wrote: body {
text-align: left;
font-family: "Lucida Sans", Verdana, sans-serif;
font-size: 76%;
line-height: 1.5em;
background-color: #9734C3;
background-image: url(../images/bg.gif);  */this being the English background, and there wll be another image: bg_c.gif for the Welsh background /*
background-attachment: fixed;
background-repeat: repeat-x;
background-position: center bottom;
}
I am not a guru of CSS  :-\ but you can try this (see manurevah post also):
In stylesheet (I don't know if locale are correct):

Code: Select all

body {
	text-align: left;
	font-family: "Lucida Sans", Verdana, sans-serif;
	font-size: 76%;
	line-height: 1.5em;
	background-color: #9734C3;
	background-attachment: fixed;
	background-repeat: repeat-x;
	background-position: center bottom;
}

*/this being the English background, and there wll be another image: bg_c.gif for the Welsh background /*

#body_en_GB {
	background-image: url(../images/bg.gif);
}
#body_cy_GB {
	background-image: url(../images/bg_c.gif);
}

and in template use:

Code: Select all

...........
</__body id="body_{$lang}">

............

<__body>
chipper wrote: And I second the appreciation of this MLE - just couldn't wait for version 2 as I have to do this work now
Thanks  :D  :D
but an appreciation for katon idea also

Alby
chipper
Forum Members
Forum Members
Posts: 42
Joined: Thu Aug 09, 2007 5:29 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by chipper »

Yes - that's done it! Thanks both - Alby's suggestion was the one I got working in the end

Am sure that will be helpful to many people

And now another question - hopefully my last for a bit but I can't promise that! - the single ampersand in the url breaks validation - I have seen a post on substituting this but that was for another module and involved editing this (I think):

$extender = '&ac=';

I can't find anything like this in MLE - maybe I haven't looked hard enough - maybe this isn't the thing to do anyway.

Is there a way to substitute the & with & in the url  ?

Many thanks
Regards
Lynne
alby

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by alby »

chipper wrote: And now another question - hopefully my last for a bit but I can't promise that! - the single ampersand in the url breaks validation - I have seen a post on substituting this but that was for another module and involved editing this (I think):

$extender = '&ac=';

I can't find anything like this in MLE - maybe I haven't looked hard enough - maybe this isn't the thing to do anyway.

Is there a way to substitute the & with & in the url  ?
I hacked CMSMS and not modules, check if exist a patch in tracker section of module and add a new bug.

Alby

PS: I add a new tag/plugin for have a multilingual template module (ex: Cataloger) without hack module code (it's a trick but I think that work). I test this and release with CMSMS 1.2
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by manurevah »

hey Alby, i was going to ask about making the catalog plugin work with with MLE.  i'm not sure a understood your "P.S." is the catalog module supposed to work with the cmsms-mle-1.1.2.tar.gz ? or are you going to release a new package after the new cmsms comes out ?  i'm very interested by this feature.. .
alby

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by alby »

manurevah wrote: hey Alby, i was going to ask about making the catalog plugin work with with MLE.  i'm not sure a understood your "P.S." is the catalog module supposed to work with the cmsms-mle-1.1.2.tar.gz ? or are you going to release a new package after the new cmsms comes out ?  i'm very interested by this feature.. .
I have a tag to apply a few module, module with personal attribute like cataloger.
For example you add attribute like: jpg_logo_en_US,  jpg_logo_it_IT, ....
In top of item template to add (smarty don't have variable of variables like php: ${'jpg_logo_'.$lang}):
{concat_variables var="jpg_logo" vars="jpg_logo_,$lang"}

Now to $jpg_logo smarty variable you have the value of $jpg_logo_CURRENT_LANGUAGE
Then in template use the generic {$jpg_logo}

In this way you don't hack calaloger for multilingual
In this week I test this

Alby
gk

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by gk »

alby wrote:
Sofia1 wrote: I have been trying for two days straight now to get this mle working, but no luck. I keep on seeing a blank white screen when running the installer.
I have done the following..
updated my cmsms to the latest version
Copied the files and folder from cmsms-mle-1.0.2-build4 to the cmsmadesimple folder (my root folder for the cms system)
???  ???  ???  ???

No!

A) Have you MLE 1.02 installed?
1. BACKUP
2. Download cmsms-mle-1.1.2.tar.gz in ABOVE Reply #4
3. Upgrade with uncompress overwrite MLE 1.02 file
4. Edit config_lang.php.alby with your languages (see examples in file) and rename to config_lang.php (overwrite old config_lang)
5. Check if your site work


B) Have you a normal CMSMS installed OR is a new INSTALL?
  - If you have an installed site: BACKUP
1. Download cmsms-mle-1.1.2.tar.gz in ABOVE Reply #4
2. DON'T RENAME config_lang.php.alby:
  - If you have an installed site: upgrade like a normal CMSMS and enter in admin area for ugrade your modules
  - For new site, installed in normal mode
3. Check if your site work
4. Now transform in MLE:
  - read README.FIRST in root directory
  - edit config_lang.php.alby with your languages (see examples in file) and rename to config_lang.php
  - apply sql queries (see in file and replies in this topic)
5. Check if your site work



Have you a old backup of prev version?
Restore your old system and follow above points

Alby
Hi Alby,
Don't want to bother, but as you seem to be the guy with knoweledge, I'm asking you.
I've got this site (www.globalconceptfrance.com) that I'd like to be multilingual (done all you said, upgrading from cmsms v1.1.1 to mle v1.1.2, sql stuffs and so on) but it's not working smoothly. In fact, I can't get to the English page to display when UK flag being clicked, thaugh  I've succeeded displaying those pages before. Everything is showing fine in admin!! Is there a cache issue or something wrong in my config ?
alby

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by alby »

gk wrote: I've got this site (www.globalconceptfrance.com) that I'd like to be multilingual (done all you said, upgrading from cmsms v1.1.1 to mle v1.1.2, sql stuffs and so on) but it's not working smoothly. In fact, I can't get to the English page to display when UK flag being clicked, thaugh  I've succeeded displaying those pages before. Everything is showing fine in admin!! Is there a cache issue or something wrong in my config ?
1. In admin: I suppose that Title, Menu text and content are ok in fr_FR and en_GB pages?
2. Clear cache (absolutly like in CMSMS if modify template, module templates and css)
3. Work? No? Ok, it has happened to me once with pretty url enabled.
    Download this file and uncompress (overwrite) in /plugins and report this if work


My other $0.02:

1. Language page
Substitute in your template:

with:




2. Title Image

2a. Substitute in style CSS:

Code: Select all

h1#this {
   background:url(uploads/images/h1-desodorisant.gif) no-repeat transparent;text-indent:-5000px;height:54px;
}
h1#that {
   background:url(uploads/images/h1-modeles.gif) no-repeat transparent;text-indent:-5000px;height:62px;
}
h1#thus {
   background:url(uploads/images/h1-presentoir.gif) no-repeat transparent;text-indent:-5000px;height:34px;
}
with:

Code: Select all

h1#this_en_GB {
   background:url(uploads/images/h1-desodorisant_en_GB.gif) no-repeat transparent;text-indent:-5000px;height:54px;
}
h1#this_fr_FR {
   background:url(uploads/images/h1-desodorisant_fr_FR.gif) no-repeat transparent;text-indent:-5000px;height:54px;
}

h1#that_en_GB {
   background:url(uploads/images/h1-modeles_en_GB.gif) no-repeat transparent;text-indent:-5000px;height:62px;
}
h1#that_fr_FR {
   background:url(uploads/images/h1-modeles_fr_FR.gif) no-repeat transparent;text-indent:-5000px;height:62px;
}

h1#thus_en_GB {
   background:url(uploads/images/h1-presentoir_en_GB.gif) no-repeat transparent;text-indent:-5000px;height:34px;
}
h1#thus_fr_FR {
   background:url(uploads/images/h1-presentoir_fr_FR.gif) no-repeat transparent;text-indent:-5000px;height:34px;
}
2b.
- Rename h1-desodorisant.gif to h1-desodorisant_fr_FR.gif
- Create a new h1-desodorisant_en_GB.gif with English text

and same for h1-modeles and h1-presentoir

2c. Substitute, in template, =>
and same for that and thus


Alby
Last edited by alby on Sat Sep 15, 2007 3:08 pm, edited 1 time in total.
chipper
Forum Members
Forum Members
Posts: 42
Joined: Thu Aug 09, 2007 5:29 pm

Re: Multilanguage CMSMS MLE versione 1.1.2

Post by chipper »

Hi again - re ampersands

Thanks but I am so sorry - I don't think I made myself very clear! - the url is the one generated for each page and not related to any module - specifically the ampersand in the urls calling the pages:

http://mydomain/yc/yc2/index.php?page=h ... e&hl=cy_GB

This  ampersand is what is generating the errors when I try to test the site with a validator

I have also tried enabling pretty urls thinking it might get rid of the ampersand but of course it needs the language call adding to the url so that didn't work for me.

Any ideas?

Thanks /Regards
Lynne
Locked

Return to “[locked] CMSMS MLE fork”