HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Calendar

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#59000 (In Topic #12870)
Avatar

Community saint

Trying to figure out what file(s) I need to edit to reconfigure the month names…

For example, in a gaming site… instead of March, it would read Leyan.

Is it possible to do this in ocPortal code?

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#59002
Avatar

Community saint

Eric,

Try editing the file lang\EN\dates.ini

Some times it take a bit of searching but I think almost all of the language translations will be found in the lang\EN directory.

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#59003
Avatar

Community saint

And here I was in the languages directory…  :lol:

Just a little brain fart…. I looked through Calendar but not dates… silly Eric.

Thanks Rick.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#59004
Avatar

Community saint

Here's a tricky one….

How about the year?

I have this javascript code:

Code

<SCRIPT LANGUAGE="JavaScript">
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
dston = new Date('March 10, 2005 2:59:59');
dstoff = new Date('October 30, 2005 2:59:59');
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();

var zone = 4; // references your time zone

if (newdate > dston && newdate < dstoff ) {
zonea = zone + 1 ;
dst = " elven time standard";
}
else {
zonea = zone ; dst = " elven time standard";
}
var newzone = (zonea*60*60*1000);
newtimea = newtime+(myzone*60*1000)-newzone;
mydate.setTime(newtimea);
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myyear= mydate.getYear();
year = myyear;

if (year > 2000) // Y2K Fix, Isaac Powell
year = year + 3100; // http://onyx.idbsu.edu/~ipowell
myhours = mydate.getHours();
if (myhours >= 12) {
myhours = (myhours == 12) ? 12 : myhours - 12; mm = " PM";
}
else {
myhours = (myhours == 0) ? 12 : myhours; mm = " AM";
}
myminutes = mydate.getMinutes();
if (myminutes < 10){
mytime = ":0" + myminutes;
}
else {
mytime = ":" + myminutes;
};
arday = new Array("Restday","Volnes","Tilamaires","Leyan","Niiman","Day of the Huntress","Feastday")
armonth = new Array("Lormesta ","Fashanos ","Charlatos ","Olaesta ","Ivastaen ","Lumnea ","Koaratos ","Phoenatos ","Imaerasta ", "Jastatos ","Eoantos ","Eorgaen ")
ardate = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
// rename locale as needed.

var time = ("Today is " + arday[myday] + ", day " +ardate[myweekday] + " of the month " + armonth[mymonth] + " in the year " + year+".&nbsp;&nbsp;It is " + myhours + mytime+ mm + " by the " + dst + ".");
document.write(time);
//-->
</SCRIPT>

Is there a way to incorporate:

Code

if (year > 2000) // Y2K Fix, Isaac Powell
year = year + 3100; // http://onyx.idbsu.edu/~ipowell

So the Calendar will show the gaming year?

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#59006
Avatar

Community saint

What other files do I also need to edit for the MONTH situation?

In my attachments, you will see the Calendar Block and Calendar Page. The days of the week are now fitting the "gaming" period, but the months do not. I did edit the date language file.



Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#59144
Avatar

Community saint

*bump*

I know this probably falls in line of paid support, so if there's no other member besides staff that can assist, I'm thinking that the text can just be removed… that I knwow how to and can do for the block and page itself.

Thanks!

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: