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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4-archive)
 EC V4.x Alpha - Reopening A Help Question
 New Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

n/a
deleted

593 Posts

Posted - 05 August 2002 :  19:48:58  Show Profile  Reply with Quote
Am reopening this EC related question, if I may. This is again on Events Calender V2rs1 International V4.x compatible (Alpha), so would like to address the question to Bozden. TIA.


After trying couple of different approaches, I found after all the best way is to utilize the existing codes V4.x compatible alpha for events_inc.asp and events_functions.asp....(i.e. didn't get anywhere but with some minor cosmetic fixes....alas!) and was working to see how I can work on it, but again, still getting this VBScript error related to "doLangCode".....

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'doLangCode'

/i2asia/forum/events_inc.asp, line 395



So, really need to ask some basic question about how to set this "doLangCode" and to handle Far Eastern languages...
but not quite sure how "doLangCode" (Lang MODS change codes) can be re-coded for handling a case like:
if LCID set to 1041, 1028, or 2052 (Japanese, T.Chinese or S.Chinese), use <% = intThisYear & "strYear" & strMonthName %> else go to <% = strMonthName & " " & intThisYear %>, where "strYear" is a Chinese Char for "year", for example, for a small calender, month headar title. Similar expressions for a full month events calender full month header title, and similarly for Weekly Dates Display, which will be.

In conjunction with this, I found:

Events_functions.asp
(1) Line 26 in Sub Write_TD2 (sValue, sCalss, sDate)
do while not(rsevents.EOF)
sETitle = doLangCode(trim(rsEvents("event_title"))) '***LANG***MOD***
if len(sETitle) > 17 and not instr(sETitle, " ") <> 0 then
sETitle = mid(sETitle,1,18) & "..."
end if

(2) Similarly, line 938 in functin DisPlayUpcomingEvents
if (rs("PRIVATE") <> 1) or (rs("PRIVATE") = 1 and lcase(rs(strDBNTSQLName)) = strDBNTUSerName) then
strTitle = doLangCode(rs("Event_Title")) '***LANG***MOD***
if len(strTitle) > 23 then
strTitle = mid(strTitle,1,24) & "..."
end if

(3)Similarly, in Line 979 in function DisplayPastEvents
if (rs("PRIVATE") <> 1) or (rs("PRIVATE") = 1 and lcase(rs(strDBNTSQLName)) = strDBNTUSerName) then
strTitle = doLangCode(rs("Event_Title")) '***LANG***MOD***
if len(strTitle) > 23 then
strTitle = mid(strTitle,1,24) & "..."
end if

(4) and in line 846~847, for Event Title/Description
<td align="left" bgcolor="<% =strHeadCellColor %>"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">
<%Response.Write doLangCode(Trim(Rs("Event_Title"))) '***LANG***MOD***
strMessage = doLangCode(Rs("Event_Details")) '***LANG***MOD***%>

Also in events_inc.asp
(1) in line 354, in function DisplayUpcomingEvents,

do while not rs.EOF
strTitle = doLangCode(rs("Event_Title")) '***LANG***MOD***
if len(strTitle) > 37 then
strTitle = mid(strTitle,1,38) & "..."
end if

(2) in line 395, in function DisplayPastEvents,
do while not rs.EOF
strTitle = doLangCode(rs("Event_Title")) '***LANG***MOD***
if len(strTitle) > 37 then
strTitle = mid(strTitle,1,38) & "..."
end if

Question: Am not clear at all about 17, 23, 37 etc in if statement...are these LCID assinged case numbers? (or is this "len" stands for "length" in the script?????, if so probably it would need to be adjusted for different char/string length for different languages?) If so, where is this defined? in inc_functions.asp??? Can these assinged to the way I mentioned above for Far Eastern language combos and all else set to English_US? I am assuming that if this is set right, then, the current problems with Short Month/Year Title display in Events Calender table (both small and full) and WeeklyDates not showing up in appropriate locale language selected will be resolved... and whatever a broken link between these files with LangMODS_Events.asp and LangMODS_events1033,1041,1028,2052 and 1040 will be resolved...

(B) Function DisplayMonth_small()

case 5 for May is defined as:

case 5 strMonthName = StrMay2

in LangMODS_events1033.asp, etc. there is strMay in short month group but not strMay2 - is this a typo?

--- Sorry about some basic questions again. Reviewing through these files, I think the above doLangCode can be set to handle 1041, 1028, 2052 as one group, and dateformat can be set to a modified international format, it will resolve many issues, at least for this V4.x compatible alpha version.

Any further guidance on this will be greatly appreciated.

Thanks in advance again.



Edited by - LeoRat on 05 August 2002 21:24:01


[moved by bozden on 03 October 2002]

<

Edited by - Deleted on 03 October 2002 20:30:44

n/a
deleted

593 Posts

Posted - 05 August 2002 :  22:55:34  Show Profile
Well, ok.
I removed all "doLangCode", and it is now working fine - files are uploaded.

What I have now with this is that:
1) Date Title for Small and Large Calender with the existing format but Monthname now shows up in Japanese, Chinese, and Italian.
2) All weekday expressions are in short date format now...guess it defaulted to that when "doLangCode" were removed...(?) - so to maintain consistency, ServerTime option in Admin is set to US Short format...this.

I tried this couple of times but not quite successfully, but how to
set if then or select case statement within <% = strMonthName & " " & intThisYear %> clause to set (with Respond.Write?) an option to render <% = strMonthName & " " & intThisYear %> if lang=1033 or else, or <% = intThisYear & "strYear" & strMonthName %> (where "strYear" is dimmed in langMODS_events.asp and also added in LANGMODS_eventsNNNN.asp) for Japanese and Chinese? DateFormat wise it is still either or setting between US and International among all other fixer upper approaches...but what I want to see is a selective/option depending on language/locale selection.... (Or shall I simply wait for V4.4?????)


Now a partially this display MM/YY or YY/MM calender Month display is fixed, with Japanese and Chinese properly showing. Although it is set to a YYMM format so English and others appearing as 2002 August, etc. Used <% = intThisYear & strYear & strMonthName %> and setting strYear in 1033 and 1040 to " " (blank/null")....

You can see where this is at now at
http://www26.brinkster.com/i2asia/forum

Weekly View is all in short date format US...Since weekday is displayed in a small calender on the left as a default setting for events.asp, but would still be nice to be able to show WeekDay representation in a long date format YYMMDD (DayofWeek) for Far Eastern locale...

Any recommendations/suggestions in this regard will be highly appreciated.

Thanks in advance.



Edited by - LeoRat on 06 August 2002 02:46:55<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 06 August 2002 :  06:07:45  Show Profile
Reset the short date format in DisplayWeek to a long dateformat in events_functions.asp:

1) Dateformat is defined as (Line1034 ish):

' Current Day in Day, month year format
strCurrentDay = FormatDateTime(dDispWeek,1)

2) LongDateformat Weekday is defined as:
a) <%= formatdatetime(dCurrentDate,1)%>
for individual weekday (Line 1104)
b) <%Response.Write FormatDateTime(dSunday, 1) & " - " & formatdatetime(dSaturday, 1)%>
for Sun-Sat Weekly Date (line 1063)

These are all still remaining in English.

For Function DisplayMontn_full ()
this select case is used to define strMonthName

Function DisplayMonth_full()
select case intThisMonth
case 1 strMonthName = StrJanuary
case 2 strMonthName = StrFebruary
case 3 strMonthName = StrMarch
case 4 strMonthName = StrApril
case 5 strMonthName = StrMay2
case 6 strMonthName = StrJune
case 7 strMonthName = StrJuly
case 8 strMonthName = StrAugust
case 9 strMonthName = StrSeptember
case 10 strMonthName = StrOctober
case 11 strMonthName = StrNovember
case 12 strMonthName = StrDecember
end select

datFirstDay = DateSerial(intThisYear, intThisMonth, 1)
intFirstWeekDay = WeekDay(datFirstDay, vbSunday)
intLastDay = GetLastDay(intThisMonth, intThisYear)

Assume that a similar approach can be taken here for Function DisplayWeek ()...or not? If so, I guess this can be done in part
with additional strXXXXXXX (re: case 1 through 7, Sunday through Saturday) in LangMODS_eventsNNNN.asp for a full weekday name which seems to be lacking with the ones. And assuming that a similar select case perhaps is required for Function DisplayWeek (), since this portion of codes are not linking with LangMODS...

Not clear how to do this properly. Any suggestions here?

Also, since dateformat printed out is:
Sunday, August 04, 2002 - Saturday, August 10, 2002
(output of <%Response.Write FormatDateTime(dSunday, 1) & " - " & formatdatetime(dSaturday, 1)%>)
and,
Sunday, August 04, 2002
:
:
Saturday, August 10, 2002
for individual day of the week,

How to define Response.Write FormatDateTime for
2002 "Year" 8 "Month" 4 "Day" ("Sunday") or 2002年8月4日(日曜日) type expression for Japanese/Chinese?

Seems like bunch of extra definitions need to be made but not clear which ones/how...

Any suggestions?

Thanks






Edited by - LeoRat on 06 August 2002 06:16:24<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 06 August 2002 :  07:23:18  Show Profile
RE: strMay2

I reset strMay to strMay2 as I found that strMay prompt to a numeric five (5) and strMay2 prompt to a Chinese/Japanese char five (五) as all MonthName in JA and CN are in 五月 (5 & "Month") format in Events Calender....

Thanks

<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 06 August 2002 :  08:19:14  Show Profile
Leorat, you are so quick.

1) doLangCode

I'm sure I answered the Q about doLangCode before. It is the function I used on my site to handle multiple simultaneous languages in contents using one forum.

This is the function (provided as is):

function doLangCode (fString)
DIM i, s, fOTagPos, fCTagPos, fOTag, fCTag
'get the correct language part
fOTag = "[" & strLangLCID & "]"
fCTag = "[/" & strLangLCID & "]"
fOTagPos = Instr(1, fString, fOTag, 1)
fCTagPos = Instr(1, fString, fCTag, 1)
if (fCTagPos > 0 and fOTagPos > 0) then
s = mid(fString, fOTagPos + len(fOTag), fCTagPos - fOTagPos - len(fOTag))
else
s = fString
end if
doLangCode = s
end function


You can do these:
* Remove the calls
* Define a dummy function with same name which just returns what it takes as parameter. E.g.

function doLangCode (fString)
doLangCode = fString
end function


2) If len(xxx) > 37

This is used to check the length od the string. If you are short in space and abbreviate the output you use such a code. I.e.

If the phrase I want to output is longer than 37 characters, then truncate it there and put "..." at the end to indicate that it is continued, na dthe user has to click the link to see the rest

3) strMay2

It is just bad variable naming. Compare it with January case:

strJan = "Jan"
strJanuary = "January"

You see the reason? "May" is 3 chars long already .

4) Special formatting cases:

Please review te date-time functions in ASP-VBS, you need to devide a date type to day, month year and re-concatanate them in required order. It will not be a single solution for every language format thou. You need to have a select-case to solve each format...

v4b04 will provide a general solution for it, if it gets accepted by the Dev-Team.


Think Pink
==> Start Internationalization Here

Edited by - bozden on 06 August 2002 08:22:59<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 06 August 2002 :  15:29:39  Show Profile
Hi Bozden,
Thanks...yeah, looking at codes for sometime without touching too much but to understand syntax and all...and got some general feel, as I mentioned. Thanks for your clarificatin. I will try.

As mentioned I removed all "doLangCode" for now and approaching this with applying if LCID=1041, etc etc. then do "DateFormatExpression" type appraoch and similarly select case intWeekDay case 1, etc. etc.

I am very fuzzy about how to set select case or if then for some <% xxxxxx%> within html tags such as <td>.....</td>, or defining variables...like intWeekDay (like, how to definite/set a new function call variable) in select case function calls (i.e. am not fully there for VBScripting...).....Tried couple of different approaches with Response.Write and breaking down a single statement into separate parts but didn't work well..... MonthName Year expression to Year Month Name was changed but still trying to understand how to do select case for LCID... and you are right, am still struggling to understand a basic date expression.... although I have changed <% = strMonthName & " " & intThisYear %> to <% intThisTear & strYear & strMonthName %>....to result in 2002年八月 type YYMM expression in Japanese for Monthly Calendar Title. Instead of using FormatDateTime I believe I can apply similar approach but for a static dateformat expression...

Question: if I put, let's say

select case intWeekDay
case 1 intWeekDay = StrSunday
case 2 intWeekDay = StrMonday
case 3 intWeekDay = StrTuesday
case 4 intWeekDay = StrWednesday
case 5 intWeekDay = StrThursday
case 6 intWeekDay = StrFriday
case 7 intWeekDay = StrSaturday
end select

at the top in Function DisplayWeek ()

How do you define function call to define intWeekday call and each case 1 .....7 in dim statements which supposedly immmediately follow this (as in the case of Function DisplayFullMonth () )????

Am looking at MSN Support doc on seeting the ASP locale ID per Browser Lang Settings for a dynamic allocation/setting of the locale ID for the ASP application (Session.ID) and got a general idea...

Besides locale dateformat for DisplayWeek, I see no particular codes there to link this portion to LangMODS_events.asp and LangMODS_eventsNNNN.asp, as they remain all in English...Assume this is resolved when/if a proper locale dateformat code is in place with proper setting for LCID in select case? If so, then, LangMODS_eventsNNNN.asp need to be changed for MonthNames and WeekDayNames since I assume it will automatically insert "Year", "Month", "Day", "Hour", "Minute" and "Second" corresponding characters right after the numeric date/time expression...

Thanks.




<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 06 August 2002 :  15:52:04  Show Profile
BTW, a local community I belong moved itself to a new forum based on http://phpnuke.org/ php forum.... look at their international presence... this one is also based on GLP.

(This has nothing to do with EC per se but ....)

BTW, it will be really good if/when Snitz Dev Team will approve/accept etc of your "internationalization" for V4.04....if, I assume, that there is a good thinking of enabling Snitz with "internationalizaiton" beyond the current pseudo internationalization of architecture... In a way because of a lack of this internationalized architecture of Snitz and some of MODS in a real sense, there are lots of individual fixer upper efforts - esp. Events Calender going on - Well, I see at least 3 or 4 different efforts going on right now on EC versions to address international dateformat issues and all..




Edited by - LeoRat on 06 August 2002 21:05:29<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 07 August 2002 :  17:31:51  Show Profile
Needs Little Help on Counter/Loop setting for WeekDisplay...

I reset a dateformat for a short date with a day of a week notation for the top Weekly Calendar Title bar - a kind of workaround fix - it now shows in

8/4/2002 (Sunday) - 8/10/2002 (Saturday)
since this is a fixed date format dd/mm/yy (Sunday) - dd/mm/yy (Saturday) where Sunday and Saturday can be presented in locale lang text..

SEE:

http://www26.brinkster.com/i2asia/forum/events.asp?view=week&date=8/7/2002

Am having a problem in setting a counter for a Weekday or getting a Weekday properly coded into a loop for individual weekday... Date + Weekday for each day without any Weekday...

The portion of code deals with this is (around 1066 to the end in events_functions.asp):

'set the current date to the sunday
dCurrentDate = dSunday
' ##ADD DW SELECTION

dim rs
Set Rs = Server.CreateObject("ADODB.RecordSet")

'display the events for the seven days
for counter = 1 to 7
'get the events for this day
strSQL = "SELECT event_id, start_date, end_date, event_title, PRIVATE, " & strDBNTSQLName & ", event_details FROM " & strTablePrefix & "EVENTS Inner JOIN " & strMemberTablePrefix & "Members ON " & strTablePrefix & "EVENTS.added_by = " & strMemberTablePrefix & "Members.Member_ID " & _
"WHERE Start_Date <= '" & DateToStr(dCurrentDate) & "' AND End_Date >= '" & DateToStr(dCurrentDate) & "' ORDER BY Event_ID"


rs.Open strSql, my_Conn
%>
<br>
<table align="center" width="95%" cellpadding="0" cellspacing="0" border="0" bgcolor="gray">
<tr>
<td>
<table WIDTH="100%" CELLSPACING="1" BORDER="0" CELLPADDING="3" align="center">
<tr>
<td align="left" bgcolor="<% =strHeadCellColor %>">
<a href="<%= sScript %>?date=<%=dCurrentDate%>">
<b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">
<% = dcurrentdate & "-" & intWeekday %></font></b>
</a>
</td>
</tr>
<%

if rs.eof then
%>
<tr>
<td height="30" bgcolor="white"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =strNoEvents %>.</font></td>
</tr>
<%
else
'Display the events for that day
Do while not rs.eof
if (rs("PRIVATE") <> 1) or (rs("PRIVATE") = 1 and lcase(rs(strDBNTSQLNAME)) = lcase(strDBNTUSerName)) then
%>
<tr>
<td height="30" bgcolor="white">
<b><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><%=(rs("event_title")) %></font></b><%'***LANG***MOD*** %>
<i><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =strAddedBy %> <%=lcase(rs(strDBNTSQLNAME))%></font></i><br><br>
<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><%= formatstr(rs("event_details"))%></font>
</td>
</tr>
<% end if
rs.movenext
loop
end if
%>
</table>
</td>
</tr>
</table>
<%
rs.Close

'move to the next day
dCurrentDate = DateAdd("D",counter,dSunday)

next

set rs = nothing
%>



crossedout read above in code is from my testing with select case with intWeekday...please ignore. The remaining as is in events_functions.asp

and strSunday....strSaturday is defined/added to LangMODS_eventsNNNN.asp (1033, 1041, 1028,2052, 1040) and also in Dim statements in LangMODS_Events.asp....

Tried to set Select Case and also select if but didn't work well...(and obviously am not doing right)

Appreciate if you can advise how to get this going... I want to have

dd/mm/yy (Sunday), etc. expression appear for each day of a week.... no long/full dateformat..

TIA again.




Edited by - LeoRat on 07 August 2002 17:35:21

Edited by - LeoRat on 07 August 2002 17:36:43

Edited by - LeoRat on 07 August 2002 17:52:07<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 07 August 2002 :  18:35:57  Show Profile
Sorry, I'm not getting what the Q is... If you want weekday to be displayed as sting (Monday, Tuesday, etc...)according to the language selected, thry this:

Define arrays in LangNNNN.asp files like:


strLangDOW = array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")


and use it directly as (assuming "dcurrentdate" is a variable of type Date):


response.write strLangDOW(weekday(dcurrentdate,1)-1)


Check the weekday function in VBS documentation (the first 1 assures that the week starts on Sunday, the second minus 1 matches [1-7] scale to [0-6] array index).

Same can be done with Months, etc...


Think Pink
==> Start Internationalization Here
<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 07 August 2002 :  19:28:07  Show Profile
Thanks for your quick response on this.

Q: in the arragy statement in each LANGNNNN.asp
- or is this in LangMODS_EventsNNNN.asp ? -

strLangDOW = array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

"Sunday" etc..... will be in a locale datename text string??

dCurrentDate is a date function set to dSunday in this particular portion of the codes....

Yes, I want to printout as a text string immediately after each day of a week in a short dateformat i.e. 08/06/2002 - Sunday, etc. in respective locale language.....

Will give a try....


WORKED!!!!!!!!!




Thanks. Danke. Arigato...whatever there is for BIG THANKS!

Edited by - LeoRat on 07 August 2002 19:51:12

Edited by - LeoRat on 07 August 2002 19:52:11<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 07 August 2002 :  20:11:06  Show Profile
Thanks much, Bozden.

Additional Q: I want to switch a month and a year pull down box below a small monthly calender (I believe this will be in events_functions.asp and in events_inc.asp, am not sure about events.asp) to show a box for year on the left and a box for month on the right. Cannot fully identify which parts of codes controlling this...

Can you advise where codes for controlling these?
I will try to see whether I can swap the location of these and also add "year" after 2002 etc for Japanese and Chinese....
Does a field length for year set to 4digit space or it will automatically adjust if additional chars added after numberic 4 digit year notation...?

TIA again.

<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 07 August 2002 :  22:45:51  Show Profile
quote:

Thanks for your quick response on this.

Q: in the arragy statement in each LANGNNNN.asp
- or is this in LangMODS_EventsNNNN.asp ? -

strLangDOW = array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

"Sunday" etc..... will be in a locale datename text string??


This is what will be used in v4b04, so use it in LangNNNN.asp, every language will have its own translated definition.

This is the whole thing about these in v4b04 Lang files (change them to the array structure, don't forget these are subject to change):


strLangMonth= "January,February,March,April,May,June,July,August,September,October,November,December"
strLangMonth3 = "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"
strLangMonth1 = "J,F,M,A,M,J,J,A,S,O,N,D"
strLangDOW = "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday"
strLangDOW3 = "Sun,Mon,Tue,Wed,Thu,Fri,Sat"
strLangDOW1 = "S,M,T,W,T,F,S"


I have most of the language strings from different languages already at hand, UTF8 encoded text files. You sent the japaneese ones

quote:

dCurrentDate is a date function set to dSunday in this particular portion of the codes....


It is a variable


quote:

WORKED!!!!!!!!!



Good news .


Think Pink
==> Start Internationalization Here
<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 07 August 2002 :  22:56:48  Show Profile
quote:

Additional Q: I want to switch a month and a year pull down box below a small monthly calender (I believe this will be in events_functions.asp and in events_inc.asp, am not sure about events.asp) to show a box for year on the left and a box for month on the right. Cannot fully identify which parts of codes controlling this...

Can you advise where codes for controlling these?
I will try to see whether I can swap the location of these and also add "year" after 2002 etc for Japanese and Chinese....


You can use the same ide I posted aboe with 3 chars. I don't have access to the code now, but locate this in files:


<td align=center>
<FORM ACTION="/forum/events.asp" METHOD=GET id=frmSelectMonth name=frmSelectMonth>
<SELECT NAME=MONTH>
....
<SELECT NAME=YEAR>
....


That MOD had multiples of the same code, not very well abstracted. It can be in more than one place. If you want to add "year" only in JP, you need to use a "if then" statement...

quote:

Does a field length for year set to 4digit space or it will automatically adjust if additional chars added after numberic 4 digit year notation...?



It will become wider in JP. In HTML the width="" attributes in tags can only define a minimum (one exception I remember is LAYER), if the content is wider, it will use wider, or wrap if possible (not in this case of course).


Think Pink
==> Start Internationalization Here
<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 08 August 2002 :  00:33:59  Show Profile
quote:


strLangMonth= "January,February,March,April,May,June,July,August,September,October,November,December"
strLangMonth3 = "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"
strLangMonth1 = "J,F,M,A,M,J,J,A,S,O,N,D"
strLangDOW = "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday"
strLangDOW3 = "Sun,Mon,Tue,Wed,Thu,Fri,Sat"
strLangDOW1 = "S,M,T,W,T,F,S"


I have most of the language strings from different languages already at hand, UTF8 encoded text files. You sent the japaneese ones




This is very very clean and wow even a simpleton like me can appreciate this.... This is far elegant and efficient.....getting some very good feel of what's coming in V4b04....major!

<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 08 August 2002 :  00:39:06  Show Profile
quote:


You can use the same ide I posted aboe with 3 chars. I don't have access to the code now, but locate this in files:


<td align=center>
<FORM ACTION="/forum/events.asp" METHOD=GET id=frmSelectMonth name=frmSelectMonth>
<SELECT NAME=MONTH>
....
<SELECT NAME=YEAR>
....


That MOD had multiples of the same code, not very well abstracted. It can be in more than one place. If you want to add "year" only in JP, you need to use a "if then" statement...




I guess I am bit more (not so much but a little) clear and will try... am sensing a real big difference coming up in a next V4beta (btw - will it be staying at "B" class all the time for now???)

Thanks for your help. Will let you know.

Mahalo, as we say it here for danke.


<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 08 August 2002 :  04:56:06  Show Profile
Wow, this V3.4 i/f is NICE.....

Anyway, Bozden. Thanks much for your help. Month/Year selection box is now swapped.... and showing properly in Japanese and Chinese (2)

Select funcion was set in events.asp...

The current EC V4.x compatible enviornment for multilingual events calendar is good for what I wanted...will work on some fine tuning for fulldateformat etc. when possible.

My sincere thanks for your timely response and help.

Best<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07