The more link in News Summary

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.
Locked
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

The more link in News Summary

Post 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
alby

Re: The more link in News Summary

Post 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
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: The more link in News Summary

Post by ottyscom »

They will not work :-(
alby

Re: The more link in News Summary

Post 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
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: The more link in News Summary

Post by ottyscom »

My langs are: es, cat, de, en, fr and it

look my web at www.megatopradio.com/_newpage
alby

Re: The more link in News Summary

Post by alby »

ottyscom wrote: My langs are: es, cat, de, en, fr and it
Post your config_lang.php

Alby
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: The more link in News Summary

Post 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'=>'',
),


);
?>
alby

Re: The more link in News Summary

Post 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
Last edited by alby on Tue Jan 29, 2008 8:35 am, edited 1 time in total.
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: The more link in News Summary

Post 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
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: The more link in News Summary

Post 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
alby

Re: The more link in News Summary

Post 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
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: The more link in News Summary

Post by ottyscom »

Ok but the will show the erro show above :-(
alby

Re: The more link in News Summary

Post 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
Locked

Return to “[locked] CMSMS MLE fork”