problem with date (language)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
piotr22
Forum Members
Forum Members
Posts: 53
Joined: Wed Nov 29, 2006 6:58 am

problem with date (language)

Post 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
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: problem with date (language)

Post 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?
piotr22
Forum Members
Forum Members
Posts: 53
Joined: Wed Nov 29, 2006 6:58 am

Re: problem with date (language)

Post by piotr22 »

thank you

language polish

Could you tell me where and how can I changing.
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: problem with date (language)

Post 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??
Last edited by lollipop27 on Sat Oct 20, 2007 12:41 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: problem with date (language)

Post by calguy1000 »

I'll take a look at the hardcoded strings issue
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: problem with date (language)

Post by lollipop27 »

Thanks a lot,

Can you take my changes into the news module perhaps?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: problem with date (language)

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
piotr22
Forum Members
Forum Members
Posts: 53
Joined: Wed Nov 29, 2006 6:58 am

Re: problem with date (language)

Post 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
pepawo
Forum Members
Forum Members
Posts: 17
Joined: Tue Oct 09, 2007 11:04 am

Re: problem with date (language)

Post by pepawo »

My solution with date problem in my own (Czech) language is add to defaultTeheme.php to row 2

Code: Select all

setlocale(LC_ALL, 'cs_CZ.utf8');
It should be perfect to add setlocale to next release...
piotr22
Forum Members
Forum Members
Posts: 53
Joined: Wed Nov 29, 2006 6:58 am

Re: problem with date (language)

Post 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 ?
Post Reply

Return to “Modules/Add-Ons”