• 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  [ 5 posts ] 
Author Message
 Post subject: How to translate dates in CMSMS? News, Calendar etc.
PostPosted: Mon Sep 06, 2010 9:28 pm 
Offline
Forum Members
Forum Members

Joined: Tue Sep 15, 2009 7:59 pm
Posts: 19
Hi, Does anybody know how to go about changing the date lang in cmsms. I am trying to do it under CGCalendar I have made a translation for everything but the months will not change. I have made searches through the whole files in my site but only a java script shows the months. Changing these does not change anything. Anybody got any ideas? Does it come from the server?

The same goes for news. Has anybody had luck with this?

Thanks in advance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to translate dates in CMSMS? News, Calendar etc.
PostPosted: Tue Sep 07, 2010 1:24 pm 
http://forum.cmsmadesimple.org/index.ph ... 126.0.html
http://forum.cmsmadesimple.org/index.ph ... 338.0.html
http://forum.cmsmadesimple.org/index.ph ... 149.0.html

maybe thers's something for you


Top
   
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to translate dates in CMSMS? News, Calendar etc.
PostPosted: Tue Sep 07, 2010 7:54 pm 
Offline
Forum Members
Forum Members

Joined: Tue Sep 15, 2009 7:59 pm
Posts: 19
Thanks for the reply,

I should have said I want to change the lang to Welsh which as far I know not supported but a server. I have made Welsh a new lang in cmsms and happy with changing date format but i want to define my own name for the days and months. Any ideas?

thanks


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to translate dates in CMSMS? News, Calendar etc.
PostPosted: Tue Sep 07, 2010 9:15 pm 
So on the fly - maybe with an udt

first make an UDT

\$1:
if ($month == "January" || $month =="01") {$welshmonth = "welshmonthnameJan";}
elseif ($month == "February" || $month =="02") {$welshmonth = "welshmonthnameFeb";}
........
elseif ($month == "December" || $month =="12") {$welshmonth = "welshmonthnameDec";}
echo $welshmonth;


you have to change the template with the right Names of themonths

second: you can put an UDT to the template (example from CGCalendar-Template)
instead of
\$1:
{$month_names[$month]}

{Name_of_UDT month="$month_names[$month]"}


Top
   
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to translate dates in CMSMS? News, Calendar etc.
PostPosted: Fri Dec 03, 2010 3:55 pm 
Offline
Forum Members
Forum Members

Joined: Wed Aug 26, 2009 6:25 am
Posts: 48
How does this work for the search form template?

It has this code to generate the dropdown lists:
\$1:
{capture assign='tmp'}{$actionid}cal_search_end_date_{/capture}
{html_select_date prefix=$tmp time=$search_end_date start_year=-1 end_year=+2}
{* {html_select_time prefix=$tmp time=$search_end_date display_seconds=0} *}


And they all in English even though I have translated them.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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