Welcome, Guest. Please login or register.
Did you miss your activation email?
23 Jul 2008, 14:07

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: 1 [2] 3 4 5
Print
Author Topic: Multilanguage CMSMS MLE version 1.1.1 - 1.1.2  (Read 16666 times)
0 Members and 1 Guest are viewing this topic.
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 104
Offline Offline

Posts: 2413

Location: Ferrara, Italy


My kids


« Reply #15 on: 11 Sep 2007, 10:03 »

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 Edit: 06 Oct 2007, 04:15 by alby » Logged

HOLIDAY:   15 July - 31 July

Member CMSMS Support Team
Italian Forum Moderator - Italian admin Project

Plugins: Geolocate hostip - Multiple random image - Image rotator (test beta) - Content Pagination

Modules: ForumMadeSimple - Howto (FMS)

Multilingual: CMSMS MLE 1.3.1 - Doc/Howto/Tips (#10)
chipper
Forum Member
*

Karma: 0
Offline Offline

Posts: 42


« Reply #16 on: 11 Sep 2007, 10:24 »

Hi Alby

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

Regards
Lynne
Logged
Sofia1
Forum Member
*

Karma: 0
Offline Offline

Posts: 15


« Reply #17 on: 12 Sep 2007, 11:33 »

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/view.php/159/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
Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 104
Offline Offline

Posts: 2413

Location: Ferrara, Italy


My kids


« Reply #18 on: 12 Sep 2007, 15:12 »

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)

 Huh  Huh  Huh  Huh

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 Edit: 12 Sep 2007, 15:17 by alby » Logged

HOLIDAY:   15 July - 31 July

Member CMSMS Support Team
Italian Forum Moderator - Italian admin Project

Plugins: Geolocate hostip - Multiple random image - Image rotator (test beta) - Content Pagination

Modules: ForumMadeSimple - Howto (FMS)

Multilingual: CMSMS MLE 1.3.1 - Doc/Howto/Tips (#10)
manurevah
Forum Member
*

Karma: 0
Offline Offline

Posts: 33


WWW
« Reply #19 on: 14 Sep 2007, 12:30 »

thanks alby for providing a full cmsms directly with direct multi language support, saved me light years of work.. . 
: ]
Logged
chipper
Forum Member
*

Karma: 0
Offline Offline

Posts: 42


« Reply #20 on: 14 Sep 2007, 16:59 »

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!

Quote
- 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: <div class="StyleClassForThisTag_{$lang}"> ... </div>

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


Logged
manurevah
Forum Member
*

Karma: 0
Offline Offline

Posts: 33


WWW
« Reply #21 on: 14 Sep 2007, 18:02 »

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

Code:
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. ..
: ]
Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 104
Offline Offline

Posts: 2413

Location: Ferrara, Italy


My kids


« Reply #22 on: 15 Sep 2007, 04:06 »

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.


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  Undecided but you can try this (see manurevah post also):
In stylesheet (I don't know if locale are correct):

Code:
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:
...........
<body id="body_{$lang}">

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

</body>


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

Thanks  Cheesy  Cheesy
but an appreciation for katon idea also

Alby
Logged

HOLIDAY:   15 July - 31 July

Member CMSMS Support Team
Italian Forum Moderator - Italian admin Project

Plugins: Geolocate hostip - Multiple random image - Image rotator (test beta) - Content Pagination

Modules: ForumMadeSimple - Howto (FMS)

Multilingual: CMSMS MLE 1.3.1 - Doc/Howto/Tips (#10)
chipper
Forum Member
*

Karma: 0
Offline Offline

Posts: 42


« Reply #23 on: 15 Sep 2007, 04:43 »

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 = '&amp;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 &amp; in the url  ?

Many thanks
Regards
Lynne

Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 104
Offline Offline

Posts: 2413

Location: Ferrara, Italy


My kids


« Reply #24 on: 15 Sep 2007, 07:04 »

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 = '&amp;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 &amp; 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
Logged

HOLIDAY:   15 July - 31 July

Member CMSMS Support Team
Italian Forum Moderator - Italian admin Project

Plugins: Geolocate hostip - Multiple random image - Image rotator (test beta) - Content Pagination

Modules: ForumMadeSimple - Howto (FMS)

Multilingual: CMSMS MLE 1.3.1 - Doc/Howto/Tips (#10)
manurevah
Forum Member
*

Karma: 0
Offline Offline

Posts: 33


WWW
« Reply #25 on: 15 Sep 2007, 07:28 »

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.. .
Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 104
Offline Offline

Posts: 2413

Location: Ferrara, Italy


My kids


« Reply #26 on: 15 Sep 2007, 08:53 »

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
Logged

HOLIDAY:   15 July - 31 July

Member CMSMS Support Team
Italian Forum Moderator - Italian admin Project

Plugins: Geolocate hostip - Multiple random image - Image rotator (test beta) - Content Pagination

Modules: ForumMadeSimple - Howto (FMS)

Multilingual: CMSMS MLE 1.3.1 - Doc/Howto/Tips (#10)
gk
Forum Member
*

Karma: 0
Offline Offline

Posts: 5


« Reply #27 on: 15 Sep 2007, 09:38 »

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)

 Huh  Huh  Huh  Huh

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 ?
Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 104
Offline Offline

Posts: 2413

Location: Ferrara, Italy


My kids


« Reply #28 on: 15 Sep 2007, 11:03 »

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:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="FR">
with:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$currlang}" lang="{$currlang}">



2. Title Image

2a. Substitute in style CSS:

Code:
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:
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, <h1 id="this"> => <h1 id="this_{$lang}">
and same for that and thus


Alby
« Last Edit: 15 Sep 2007, 11:08 by alby » Logged

HOLIDAY:   15 July - 31 July

Member CMSMS Support Team
Italian Forum Moderator - Italian admin Project

Plugins: Geolocate hostip - Multiple random image - Image rotator (test beta) - Content Pagination

Modules: ForumMadeSimple - Howto (FMS)

Multilingual: CMSMS MLE 1.3.1 - Doc/Howto/Tips (#10)
chipper
Forum Member
*

Karma: 0
Offline Offline

Posts: 42


« Reply #29 on: 15 Sep 2007, 11:48 »

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=help-and-advice&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

Logged
Pages: 1 [2] 3 4 5
Print
Jump to: