Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
Virgin_Steel
Worker
Worker



Joined: Sep 30, 2004
Posts: 108
Location: Sf

PostPosted: Mon Nov 22, 2004 12:14 pm Reply with quote

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
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Nov 22, 2004 1:00 pm Reply with quote

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?
 
View user's profile Send private message
Virgin_Steel







PostPosted: Mon Nov 22, 2004 1:17 pm Reply with quote

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







PostPosted: Mon Nov 22, 2004 2:37 pm Reply with quote

I don't know what you're trying to do. What is a Bulgarian date?
 
Virgin_Steel







PostPosted: Tue Nov 23, 2004 7:24 am Reply with 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:

Четвъртък, Януари 22
 
Raven







PostPosted: Tue Nov 23, 2004 10:03 am Reply with quote

In Preferences, have you modified
Locale Time Format:
To be Bulgarian?
 
Virgin_Steel







PostPosted: Tue Nov 23, 2004 3:37 pm Reply with quote

It was writen en_US when i write "Bulgarian" in my localhost with XAMPP it works,but on the host still not:(( why?
 
Raven







PostPosted: Tue Nov 23, 2004 3:58 pm Reply with quote

You have to use the appropriate locale code for Bulgaria.
 
Virgin_Steel







PostPosted: Tue Nov 23, 2004 4:11 pm Reply with quote

Yah,i tried bg_BG and it works,the onlu weakness is that there's no capital letter of the days and months!
Quote:

Време: неделя, февруари 22 @ 17:42:20 EST


10q so MUCH Raven,once again:)!!!
 
Raven







PostPosted: Tue Nov 23, 2004 8:37 pm Reply with quote

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 -> [ Only registered users can see links on this board! Get registered or login! ] ). That will uppercase the first letter of each word.

$datetime = ucfirst($datetime);
 
Virgin_Steel







PostPosted: Wed Nov 24, 2004 9:05 am Reply with quote

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







PostPosted: Wed Nov 24, 2004 4:28 pm Reply with quote

I told you in my last post.
 
Virgin_Steel







PostPosted: Wed Nov 24, 2004 4:43 pm Reply with quote

I've just added this row $datetime = ucfirst($datetime); before themeindex, but nothing happend!
 
Virgin_Steel







PostPosted: Wed Mar 23, 2005 9:44 am Reply with quote

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:

Четвъртък, Януари 22
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©