Page 1 of 1

The more link in News Summary

Posted: Mon Jan 28, 2008 9:59 am
by ottyscom
Hello Alby,

Can you or anywhere help me and explain me with detail how can i show the more link of the news summary of each language in my multilanguage page.

Thank You

Ottyscom

Re: The more link in News Summary

Posted: Mon Jan 28, 2008 12:02 pm
by alby
ottyscom wrote: Hello Alby,

Can you or anywhere help me and explain me with detail how can i show the more link of the news summary of each language in my multilanguage page.
I think that works:
Add lang param in news tag: {news ...  lang=`$lang`}

Alby

Re: The more link in News Summary

Posted: Mon Jan 28, 2008 8:22 pm
by ottyscom
They will not work :-(

Re: The more link in News Summary

Posted: Mon Jan 28, 2008 8:43 pm
by alby
ottyscom wrote: They will not work :-(
???
I check now for en_US (More) and it_IT (Continua...) and works (without lang="$lang" also).
What are your langs?

Alby

Re: The more link in News Summary

Posted: Mon Jan 28, 2008 8:59 pm
by ottyscom
My langs are: es, cat, de, en, fr and it

look my web at www.megatopradio.com/_newpage

Re: The more link in News Summary

Posted: Mon Jan 28, 2008 9:40 pm
by alby
ottyscom wrote: My langs are: es, cat, de, en, fr and it
Post your config_lang.php

Alby

Re: The more link in News Summary

Posted: Mon Jan 28, 2008 9:59 pm
by ottyscom
Ok here it is

define('DEFAULT_LANG', 'es');
$force_mle_default = false;

$hls = array(


'es' => array(
'block'=>'es',
'flag'=>'',
'locale'=>'es-EURO',
),
'cat' => array(
'block'=>'ca',
'flag'=>'',
),
'de' => array(
'block'=>'de',
'flag'=>'',
),
'en' => array(
'block'=>'en',
'flag'=>'',
),
'fr' => array(
'block'=>'fr',
'flag'=>'',
),
'it' => array(
'block'=>'it',
'flag'=>'',
),


);
?>

Re: The more link in News Summary

Posted: Tue Jan 29, 2008 8:32 am
by alby
ottyscom wrote: Ok here it is
From config_lang.php.alby.label:

Code: Select all

'locale_cms' => 'LOCALE LANGUAGE IN CMSMS', //MANDATORY ONLY if you don't use 'KEY' for locale (ex: 'KEY' is a label)
If you don't use:
'es_ES' =>array(
  ....
),

you MUST use:
'es' => array(
  'block'=>'es',
  'flag'=>'',
  'locale'=>'es-EURO',
  'locale_cms'=>'es_ES',
),


If missing, MLE don't know what is the current locale and use en_US only

Alby

Re: The more link in News Summary

Posted: Tue Jan 29, 2008 9:39 am
by ottyscom
When i put this in the config lang file then the web will not open

they will show this :-(

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /usr/home/megatopradio.com/web/_newpage/config_lang.php on line 22

Re: The more link in News Summary

Posted: Tue Jan 29, 2008 10:04 am
by ottyscom
Oh! i have made the following now and works.

I have quit the locale in onfig lang and at the module/xxx/lang/ext directory i change the filename from es_ES.php to es.php

It works very good! without locale in config :-) Do you know it?

Thank you

Re: The more link in News Summary

Posted: Tue Jan 29, 2008 12:46 pm
by alby
ottyscom wrote: It works very good! without locale in config :-) Do you know it?
'locale' it's important for avoid problems in a few server only, 'KEY' or 'locale_cms' are important because whole CMSMS (admin/modules) works for locale_cms language

Alby

Re: The more link in News Summary

Posted: Tue Jan 29, 2008 1:45 pm
by ottyscom
Ok but the will show the erro show above :-(

Re: The more link in News Summary

Posted: Tue Jan 29, 2008 5:41 pm
by alby
ottyscom wrote: Ok but the will show the erro show above :-(
Probably a comma or array item error. One possible config_lang is:

Code: Select all

<?php
define('DEFAULT_LANG', 'es');
$force_mle_default = false;

$hls = array(


 'es' => array(
   'block'=>'es',
   'flag'=>'<img src="images/lang/es_ES.png" style="border:0" alt="Español" />',
   'locale'=>'es-EURO',
   'locale_cms'=>'es_ES',
 ),
 'cat' => array(
   'block'=>'ca',
   'flag'=>'<img src="images/lang/ca_ES.png" style="border:0" alt="Català" />',
   'locale'=>'es-EURO',
   'locale_cms'=>'es_ES',
 ),
 'de' => array(
   'block'=>'de',
   'flag'=>'<img src="images/lang/de_DE.png" style="border:0" alt="Deutsch" />',
   'locale_cms'=>'de_DE',
 ),   
 'en' => array(
   'block'=>'en',
   'flag'=>'<img src="images/lang/en_GB.png" style="border:0" alt="English" />',
   'locale_cms'=>'en_US',
 ),
 'fr' => array(
   'block'=>'fr',
   'flag'=>'<img src="images/lang/fr_FR.png" style="border:0" alt="Français" />',
   'locale_cms'=>'fr_FR',
 ),
 'it' => array(
   'block'=>'it',
   'flag'=>'<img src="images/lang/it_IT.png" style="border:0" alt="Italiano" />',
   'locale_cms'=>'it_IT',
 ),


);
?>
Alby