problem with date (language)
problem with date (language)
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
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
- lollipop27
- Forum Members
- Posts: 237
- Joined: Wed Sep 12, 2007 4:09 pm
Re: problem with date (language)
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?
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)
thank you
language polish
Could you tell me where and how can I changing.
language polish
Could you tell me where and how can I changing.
- lollipop27
- Forum Members
- Posts: 237
- Joined: Wed Sep 12, 2007 4:09 pm
Re: problem with date (language)
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:
Then you go into Modules > News > lang > ext > ...... your language, i think its pl_PL.php
and you add:
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??
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';

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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: problem with date (language)
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.
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.
- lollipop27
- Forum Members
- Posts: 237
- Joined: Wed Sep 12, 2007 4:09 pm
Re: problem with date (language)
Thanks a lot,
Can you take my changes into the news module perhaps?
Can you take my changes into the news module perhaps?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: problem with date (language)
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.
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.
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.
Re: problem with date (language)
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
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)
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...
Code: Select all
setlocale(LC_ALL, 'cs_CZ.utf8');
Re: problem with date (language)
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 ?
...
january 10 2007 ---> 01 10 2007
but I don't know how
is it possible ?