Author |
Message |
Virgin_Steel
Worker


Joined: Sep 30, 2004
Posts: 108
Location: Sf
|
Posted:
Mon Nov 22, 2004 12:14 pm |
|
HOWTO Change Lang of Date in Articles?
I'm in bulgaria,and i'm running my Nuke in bulgarian and everything is on Bulgarian but the dates of Articles are in English , how could i change them to bulgarian Quote: | Thursday, January 22 | i mean the date below the articles,topics,news!
10q |
|
|
 |
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Nov 22, 2004 1:00 pm |
|
In in your main language file there are 2 settings that you may be looking for
define("_DATESTRING","%A, %B %d @ %H:%M:%S %Z");
define("_DATESTRING2","%A, %B %d");
Is that what you're after? |
|
|
|
 |
Virgin_Steel

|
Posted:
Mon Nov 22, 2004 1:17 pm |
|
My are looking like this:
Quote: |
ROW:
109 define("_DATESTRING","%A, %B %d @ %T %Z");
110 define("_DATESTRING2","%A, %B %d");
|
What I have to do with them? |
|
|
|
 |
Raven

|
Posted:
Mon Nov 22, 2004 2:37 pm |
|
I don't know what you're trying to do. What is a Bulgarian date? |
|
|
|
 |
Virgin_Steel

|
Posted:
Tue Nov 23, 2004 7:24 am |
|
I mean Language of the Days And Months,to be in My Language?
Quote: |
Thursday, January 22
|
They have to look like that on my language(Cyrlliic):
Quote: |
Четвъртък, Яну1072;ри 22
|
|
|
|
|
 |
Raven

|
Posted:
Tue Nov 23, 2004 10:03 am |
|
In Preferences, have you modified
Locale Time Format:
To be Bulgarian? |
|
|
|
 |
Virgin_Steel

|
Posted:
Tue Nov 23, 2004 3:37 pm |
|
It was writen en_US when i write "Bulgarian" in my localhost with XAMPP it works,but on the host still not:(( why? |
|
|
|
 |
Raven

|
Posted:
Tue Nov 23, 2004 3:58 pm |
|
You have to use the appropriate locale code for Bulgaria. |
|
|
|
 |
Virgin_Steel

|
Posted:
Tue Nov 23, 2004 4:11 pm |
|
Yah,i tried bg_BG and it works,the onlu weakness is that there's no capital letter of the days and months!
Quote: |
Време: неделя, февру1072;ри 22 @ 17:42:20 EST
|
10q so MUCH Raven,once again:)!!! |
|
|
|
 |
Raven

|
Posted:
Tue Nov 23, 2004 8:37 pm |
|
In modules/News/index.php there is a call to themeindex(); Right before that, if you check the value of $datetime, you will get something like this. Of course mine is in English. You should get a similar one in Bulgarian.
Saturday, November 20 @ 12:47:28 Central Standard Time
What you could do then is apply the php funcion ucfirst() (more info here -> http://www.php.net/manual/en/function.ucfirst.php ). That will uppercase the first letter of each word.
$datetime = ucfirst($datetime); |
|
|
|
 |
Virgin_Steel

|
Posted:
Wed Nov 24, 2004 9:05 am |
|
I have two $datetime in my modules/News/index.php:
Quote: |
Row 134 themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
|
and in
Quote: |
Row 25 global $db, $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $cookie, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $sitename, $user_news;
|
What i have to do?to set this ucfirst? |
|
|
|
 |
Raven

|
Posted:
Wed Nov 24, 2004 4:28 pm |
|
I told you in my last post. |
|
|
|
 |
Virgin_Steel

|
Posted:
Wed Nov 24, 2004 4:43 pm |
|
I've just added this row $datetime = ucfirst($datetime); before themeindex, but nothing happend! |
|
|
|
 |
Virgin_Steel

|
Posted:
Wed Mar 23, 2005 9:44 am |
|
OK i want to ressurect this topic`cause after i've change my host,the problem appears again.In prefferencess there is bg_BG.
Any Ideas?
Quote: |
I mean Language of the Days And Months,to be in My Language?
Quote:
Thursday, January 22
They have to look like that on my language(Cyrlliic):
Quote:
Четвъртък, Яну1072;ри 22
|
|
|
|
|
 |
|