Page 2 of 5
Re: MLE with over 20 languages but not every page has content...
Posted: Sat Mar 29, 2008 8:41 pm
by alby
moscato wrote:
thx again... could you give me tip where i can read a good documentation about cmsms "programming". where can i start?
There isn't good documentation on CMSMS but example only. Tips forum is a good start
moscato wrote:
1.2.4 => ! WOW ! can't wait to get it

will it be available this weekend?
Tomorrow!
moscato wrote:
btw: do you have a solution for the "content block" problem at tip#9 ?
Recheck #9 (b) and report for inclusion in 1.2.4 MLE (Monday)
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 9:32 am
by moscato
hi alby,
i've already tried updated #9. now it works fine for the content blocks, BUT unfortunately NOT for the {content} itself
content blocks are displayed correctly, but {content} in DEFAULT_LANG doesn't appear if page is not translated...
does this help you?
best regards,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 10:32 am
by alby
moscato wrote:
i've already tried updated #9. now it works fine for the content blocks, BUT unfortunately NOT for the {content} itself
content blocks are displayed correctly, but {content} in DEFAULT_LANG doesn't appear if page is not translated...
Have you clean cache?
I try #9 (case b) and works for {content} and {conten block="XXX"}, clearly there must be those relating to DEFAULT_LANG
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 1:46 pm
by moscato
that's strange... i did clear cache and the pages exist in three languages. but only english is ready yet.
i've for example in my template:
Code: Select all
{content}
{content block='column_right'}
{global_content name='footer'}
block "column_right" and global content "footer" are displayed perfectly. but {content} isn't. don't know why?
in my config i've:
Code: Select all
define('DEFAULT_LANG', 'en_US');
$force_mle_default = true;
$hls = array(
'en_US' => array(
'block'=>'en',
'flag'=>'<img src="images/lang/en_US.png" style="border:0" alt="English" />',
'text'=>'English',
'parent'=>'en',
),
'it_IT' => array(
'block'=>'it',
'flag'=>'<img src="images/lang/it_IT.png" style="border:0" alt="Italiano" />',
'text'=>'Italiano',
'locale'=>'it-EURO',
),
'fr_FR' => array(
'block'=>'fr',
'flag'=>'<img src="images/lang/fr_FR.png" style="border:0" alt="Français" />',
'text'=>'Français',
),
);
strange that it doesn't work... what else could it be?
best regards,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 5:43 pm
by alby
moscato wrote:
block "column_right" and global content "footer" are displayed perfectly. but {content} isn't. don't know why?
in my config i've:
With your config_lang.php and this test template:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" lang="{$parent_lang}">
<head>
<title>{title}</title>
<meta http-equiv="Content-Language" content="{$parent_lang}" />
{metadata}
{stylesheet}
</head>
</__body>
{lang}
<br />
Language page: {$lang}
<br />
Content: {content}<br />
Block: {content block='column_right'}
<__body>
</__html>
a page with english lang only (your DEFAULT_LANG) I have with en_US, it_IT and fr_FR same content and content block.
Test with FF and IE
---------------------------------------
Clarification on config_lang:
'parent' => 'en', it makes sense only for same parent_lang (ex: en_US, en_GB, en_AU, en_......)
---------------------------------------
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 6:51 pm
by moscato
hi alby,
strange thing... i'll test it again in the next hour and reply!
thx again!
best wishes,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 7:21 pm
by alby
moscato wrote:
strange thing... i'll test it again in the next hour and reply!
Now #9 case b works with global content also!!
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 8:56 pm
by moscato
hi alby,
thx a lot. global content works also perfect now!
i think you made a small "typo" at your tip #9.
you write:
2b. edit plugins/function.content.php (around #21) and substitute this:
but i think you mean the file: "plugins/function.global_content.php" ... or am i wrong?
it's strange... the content blocks and gobal content is doing fine, but {content} itself still doesn't work in my installation...
do you have news concerning 1.2.4? everything's fine?
i'm going to work the whole night today, because i've to finish the 23 language implementation until tomorrow
best regards,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 9:36 pm
by alby
moscato wrote:
thx a lot. global content works also perfect now!
How could work without modification to function.global_content.php?
moscato wrote:
i think you made a small "typo" at your tip #9.
Thanx, yes was a typo (I forgot after copy/paste), it's right now
moscato wrote:
do you have news concerning 1.2.4? everything's fine?
Yes, tomorrow morning 1.2.4 MLE coming out
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Sun Mar 30, 2008 9:47 pm
by moscato
hi alby,
How could work without modification to function.global_content.php?
i
DID modify function.global_content.php... after a small "research" i found out, that you meant THIS file and i already was thinking, that it was a typo/copy&paste mistake
wow, looking forward to 1.2.4.
i've already installed 1.2.3. ... is it easy to upgrade to 1.2.4?
best wishes,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Mon Apr 07, 2008 10:22 am
by moscato
hi alby,
i've tested the new 1.2.4 mle and i'm not sure if it's really working correctly. the problem ist the following:
-) i've the {content}, a global content block and content blocks
-) when i'm adding a new page everything seems to work fine.
-) if fr_FR and it_IT is not ready yet, en_US is automatically displayed (GREAT!)
-) BUT: when i edit fr_FR and add some content there, suddenly en_EN and it_IT is not working anymore, these pages are empty. i do not know why, but sometimes this is happening.
solution: you have to edit en_EN once again and save. then everything is displayed correctly again.
i think there is a bug somewhere... could you reproduce my problem?
i've just installed your download (1.2.4) and did not make any changes.... (i use UTF-8).
thx for your help again
best regards,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Mon Apr 07, 2008 1:51 pm
by alby
moscato wrote:
-) i've the {content}, a global content block and content blocks
-) when i'm adding a new page everything seems to work fine.
-) if fr_FR and it_IT is not ready yet, en_US is automatically displayed (GREAT!)
-) BUT: when i edit fr_FR and add some content there, suddenly en_EN and it_IT is not working anymore, these pages are empty. i do not know why, but sometimes this is happening.
I can not reproduce, I do not have any problem.
Try, for testing, with a local installation
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Mon Apr 07, 2008 2:45 pm
by moscato
that's strange... i'm already using a local installation. i've downloaded MLE yesterday and it's a FRESH installation.
i'm not sure if i was able to describe the problem well.
could you set up a test-MLE on a server so we could try it together on EXACTLY the same system?
best regards,
tom
Re: MLE with over 20 languages but not every page has content...
Posted: Mon Apr 07, 2008 8:31 pm
by alby
moscato wrote:
that's strange... i'm already using a local installation. i've downloaded MLE yesterday and it's a FRESH installation.
FRESH installation and FRESH DB?
moscato wrote:
could you set up a test-MLE on a server so we could try it together on EXACTLY the same system?
Only Wednesday I can set a live server for test
Alby
Re: MLE with over 20 languages but not every page has content...
Posted: Tue Apr 08, 2008 8:24 am
by moscato
hi alby,
yes - i've created a completely new database for that. i just did the install to test 1.2.4 and nothing else
wednesday: YEAH. that's great! thx a lot in advance!!
best regards,
tom