Page 1 of 1
problem with date (language)
Posted: Fri Oct 19, 2007 10:38 am
by piotr22
Hello
I have a problem witch start and end date (month) in admin panel (news module) - when I add or edit article.
When I change language everythink are changing but date always stay in english language
next problem witch language :
the same problem I have in sort field title in news module
I see always title ascending, title descending ... - I would like changing this words.
thank you very much for every sugestion
Re: problem with date (language)
Posted: Fri Oct 19, 2007 10:53 am
by lollipop27
hello,
the date is done with strftime, and as far as I know, it ajusts to your system language.
The news module can be changed, if you put a attribut in the smarty tag....i.e. lang="en_US"
Did you do this already?
What is the language you chose at global preferences?
Re: problem with date (language)
Posted: Fri Oct 19, 2007 11:05 am
by piotr22
thank you
language polish
Could you tell me where and how can I changing.
Re: problem with date (language)
Posted: Sat Oct 20, 2007 12:39 pm
by lollipop27
Ok, so I have a solution for the drop down menu with sorting...
first you go into Modules > News > function.admin_articlestab.php
You change it to this:
Code: Select all
$sortlist[$this->Lang('post_date_desc')]='news_date DESC';
$sortlist[$this->Lang('post_date_asc')]='news_date ASC';
$sortlist[$this->Lang('expiry_date_desc']='end_time DESC';
$sortlist[$this->Lang('expiry_date_asc']='end_time ASC';
$sortlist[$this->Lang('title_asc'] = 'news_title ASC';
$sortlist[$this->Lang('title_desc'] = 'news_title DESC';
Then you go into Modules > News > lang > ext > ...... your language, i think its pl_PL.php
and you add:
Code: Select all
$lang['post_date_desc'] = 'Veröffentlicht absteigend';
$lang['post_date_asc'] = 'Veröffentlicht aufsteigend';
$lang['expiry_date_desc'] = 'Abgelaufen absteigend';
$lang['expiry_date_asc'] = 'Abgelaufen aufsteigend';
$lang['title_asc'] = 'Titel absteigend';
$lang['title_asc'] = 'Titel absteigend';
but of course in your language
This solves the one problem.
Now to the next.
I have News Module 2.3.0.2 on the one page, there the Months are in the right language (German for me), but in the News Module 2.5.1 on the other system they are in English...
So it was already solved and it has disappeared again... Can anyone help us with this, the ones that developed the new News module??
Re: problem with date (language)
Posted: Sat Oct 20, 2007 2:44 pm
by calguy1000
I'll take a look at the hardcoded strings issue
Re: problem with date (language)
Posted: Sat Oct 20, 2007 3:02 pm
by lollipop27
Thanks a lot,
Can you take my changes into the news module perhaps?
Re: problem with date (language)
Posted: Sat Oct 20, 2007 3:41 pm
by calguy1000
The hardcoded lang strings in the articles tab are taken care of in SVN and should be out with News 2.6 (for CMS 1.2 and above) next week.
Just waiting for translators to catch up now.
Re: problem with date (language)
Posted: Mon Oct 22, 2007 7:44 am
by piotr22
thank you very much for yours suggestion
I solve one problem for the drop down menu with sorting.
now twice problem with date..
I think that problem is in editarticle.tlp
{html_select_date prefix=$postdateprefix time=$postdate start_year=2000 end_year=2010} {html_select_time prefix=$postdateprefix time=$postdate}
I need to change english manes month to polish.
help and thank you very much one more
Re: problem with date (language)
Posted: Tue Oct 23, 2007 1:53 pm
by pepawo
My solution with date problem in my own (Czech) language is add to defaultTeheme.php to row 2
It should be perfect to add setlocale to next release...
Re: problem with date (language)
Posted: Wed Oct 24, 2007 9:41 am
by piotr22
My solution with date problem is change format date (to change month name to number)
...
january 10 2007 ---> 01 10 2007
but I don't know how
is it possible ?