• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Translating News Module..
PostPosted: Thu Nov 03, 2005 2:42 am 
Hi everybody,

I´m having trouble in order to translate the News module that comes with CMS Made Simple.
I just finished the translation on en_US.php file on /modules/News/lang directory and saved as pt_BR.php file (it´s a Brazilian Portuguese translation). OK, in the Admin Section the labels of the Module is in my language but when I go to the site to see if the labels of news module has been translated but it is not. It still remain showing "[more]" and when I click the news' title the label "Print" is still there.

Please help me turn around this problem.

Big Thanks from Brazil ! 


Top
  
 
 Post subject: Re: Translating News Module..
PostPosted: Thu Nov 03, 2005 4:09 pm 
Hi,
I almost fotgot, how do I change the Date format in News module? I couldn´t figure out how to do this. Because in Portuguese the date format is dd/mm/yyyy instead of mm/dd/yyyy tipical from English spoken countries.


Top
  
 
 Post subject: Re: Translating News Module..
PostPosted: Sun Nov 06, 2005 12:07 am 
Doesn´t anyone have any clue about this problem?

You that translated News module to your home language, doesn´t it happens to you ?


Last edited by [Raptor] on Mon Nov 07, 2005 2:16 am, edited 1 time in total.

Top
  
 
 Post subject: Re: Translating News Module..  [SOLVED]
PostPosted: Sun Nov 06, 2005 8:50 am 
Hi!

To get the format dd/mm yyyy (06/11 2005) I put this in my newspage:
Code:
{cms_module module="News" category="Om webben" dateformat="j/m Y" moretext="Mera..."}


With moretext="Something" you substitute the default more with a word of your choice. I don't remember where I found the syntax for the dateformat, but I think that is the code which PHP use. Perhaps the PHP-guys in this forum can help, or else Google for "PHP date format" or something like that.

You can find the parameters for the news module in the helptext for the module, which guess you have translated allready...

Good luck
/roan


Top
  
 
 Post subject: Re: Translating News Module..
PostPosted: Mon Nov 07, 2005 2:44 am 
roan wrote:
Hi!

To get the format dd/mm yyyy (06/11 2005) I put this in my newspage:
Code:
{cms_module module="News" category="Om webben" dateformat="j/m Y" moretext="Mera..."}


With moretext="Something" you substitute the default more with a word of your choice. I don't remember where I found the syntax for the dateformat, but I think that is the code which PHP use. Perhaps the PHP-guys in this forum can help, or else Google for "PHP date format" or something like that.

You can find the parameters for the news module in the helptext for the module, which guess you have translated allready...

Good luck
/roan

Hi!,
I found the page you said, it´s:
http://www.php.net/date
As for the help, I couldn´t find where it says something about the dateformat... btw unfortunately It didn´t work. My page still shows Nov, 5 2005 date format even after using (dateformat="j/m Y") tag. Perhaps there shoud be another setting for the date format...

Big Thanks for the help.

Moretext problem solved
Still looking for a solution for dateformat and Print (inside article) labels


Last edited by [Raptor] on Mon Nov 07, 2005 11:09 am, edited 1 time in total.

Top
  
 
 Post subject: Re: Translating News Module..
PostPosted: Mon Nov 07, 2005 5:32 am 
Offline
Power Poster
Power Poster

Joined: Sun Nov 21, 2004 6:35 am
Posts: 1469
Location: Geneva - Switzerland
Go in your news template, find:

{$entry->postdate|date_format}

and replace with:

{$entry->postdate|date_format:"%d/%M %Y"}

And this is the link we find in News help (strftime):
http://ch2.php.net/strftime

Cheers

_________________
Patricia


Top
 Profile  
 
 Post subject: Re: Translating News Module..
PostPosted: Tue Nov 08, 2005 12:45 pm 
Patricia wrote:
Go in your news template, find:

{$entry->postdate|date_format}

and replace with:

{$entry->postdate|date_format:"%d/%M %Y"}

And this is the link we find in News help (strftime):
http://ch2.php.net/strftime

Cheers

Yeah!

It works. Thank You Patricia you deserve the CMS Know-it-All title.
News module uses other set of variables from the strftime function. I tought that it was same variables that PHP uses.

Still looking for a Solution for the "Print" link in detailed view of new.

See you!


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting