Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Localized Calendar
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

lsakizada
New Member

USA
90 Posts

Posted - 07 February 2006 :  07:33:09  Show Profile
How to localize the days and months names of the calandar?
for example I want the String "Monday" to apear as the localize name.
The problem is that the javascript read the English system date format
Any help? Thanks!

Edited by - lsakizada on 08 February 2006 15:16:23

AnonJr
Moderator

United States
5768 Posts

Posted - 08 February 2006 :  15:21:40  Show Profile  Visit AnonJr's Homepage
I don't know that there is going to be a better solution than using some sort of Select Statement...
Go to Top of Page

lsakizada
New Member

USA
90 Posts

Posted - 09 February 2006 :  15:35:08  Show Profile
Thanks for the advise. I did some some sorting and this is how
this was implemented:

Function LangGetMonthName(NameOfMonth)
if strLangLCID = "1037" Then
select case ucase(Mid(NameOfMonth, 1, 3))
case "JAN"
LangGetMonthName = strLangCal100780
case "FEB"
LangGetMonthName = strLangCal100790
case "MAR"
LangGetMonthName = strLangCal100800
case "APR"
LangGetMonthName = strLangCal100810
case "MAY"
LangGetMonthName = strLangCal100820
case "JUN"
LangGetMonthName = strLangCal100830
case "JUL"
LangGetMonthName = strLangCal100840
case "AUG"
LangGetMonthName = strLangCal100850
case "SEP"
LangGetMonthName = strLangCal100860
case "OCT"
LangGetMonthName = strLangCal100870
case "NOV"
LangGetMonthName = strLangCal100880
case "DEC"
LangGetMonthName = strLangCal100890
case else
LangGetMonthName = "error"
end select
else
LangGetMonthName = NameOfMonth
end if
end function

but what i realy need is to localize this function that return the string of the day plus the date as in this example:


FormatDateTime(strForumTimeAdjust,vbLongDate)

any help on how to localized above function???

Edited by - lsakizada on 09 February 2006 15:35:36
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 09 February 2006 :  15:50:43  Show Profile  Visit modifichicci's Homepage
In config
put a ' before
Session.LCID = 1033 '## Do Not Edit

then at the bottom do a select case:
select case strLangLCID
case 1033
Session.LCID = 1033
case 1037
Session.LCID = 1037
etc etc.

end select

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07