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)
 Events Calender V4.x compatible (Alpha)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

n/a
deleted

593 Posts

Posted - 06 June 2002 :  16:22:38  Show Profile
I will post this as a separate topic as it does not deal with EventCalender date/month translation issue per se but more with "internationalizing" aspect of (or related problems of) V4.x compatible Events Calender.


RE: events_functions.asp and events_inc.asp - text string handling problems

Per discussed before, events_functions.asp and events_inc.asp contain text strings in the codes rather than being defined as variables. I assume this is the main reason why UI showing up all in English (i.e. Add/Edit An Event window, UpComing Event message if nothing there, Weekly date title, etc.) All these are assumed replaceable with variable definition by <% =xxxxxxx %>, for example,
Add an Event, or "Add an Event" => <% =strAddEvent %>, or "<% =strAddEvent %>. Also, it is mentioned that there is no difference in having a space between % and =, and end of xxxxx and % at the end.

When these text strings replaced by variable declarations as such, (I used <% =strxxxxxx %> with spacing) I get an VScript error pointing to a second space.

Also, there fare few new text strings that needed to be added to langMODS_eventsNNNN.asp, which exist in events_functions.asp and events_inc.asp which are better to be expressed in respective locale lang, namely:

Events
Today
Selected

these are added using a naming convention used in langMODS_events, as strEvents, strToday, strSelected, and dim declaration is added to LangMODS_events.asp (These are added to langMODS_events1033, added/translated in LangMODS_events1041, 1028, 2052...)

When uploaded these (to a Brinkster), the forum show up, click on "Calender" at the top, and gets the above error message and cannot get into Calender.

I would appreciate to get further feedbacks on this problem.







Taku
i2Asia


Edited by - LeoRat on 26 June 2002 07:09:35

Edited by - LeoRat on 26 June 2002 07:10:59


[moved by bozden on 03 October 2002]

<

Edited by - Deleted on 03 October 2002 20:14:52

n/a
deleted

593 Posts

Posted - 06 June 2002 :  20:04:38  Show Profile
RE: Calender, DateFormat etc. from MSDN

Regarding how to handle date format, sorting, and also calender, here are some links in MSDN which may be of some interests: contains info on CJK calenders, etc.

System.Globalization.Namespace - classes defining culture related information, including the language, the country/region, the calenders in use, the format patterns for dates, currency, and numbers, and the sort order for strings.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalization.asp

Japanese Calender Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationjapanesecalendarclasstopic.asp

Taiwan calender class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationtaiwancalendarclasstopic.asp

etc. Describes a host of items related to how to handle date formats. Perhaps this is already a familiar item, but thought maybe interesting to check how MS doing it on their Windows and Locale OS...



Taku
i2Asia
<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 10 June 2002 :  17:38:20  Show Profile
CONTINUED TESTING WITH EC V4.X APHA
On-going issues with Alpha (bugs?):
1) UI/messages not rendering in Japanese but still showing up in English only.
2) Click on an event in a monthly view of events (calender) or Past Events list, it generates VBsrcipt error, with text string changed to variable statement rather than a hard coded text string:
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/i2asia/forum/pop_event.asp, line 101

Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 COLOR='Gray'><% =strStarts
-------------------------------------------------------------------------------^
Error occurs at in <% =strxxxxx %> declaration at the second space before %.

3) Can put smiley in a monthly calender/event item but does not reflect it in the left column Past Events list...







Taku
i2Asia
<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 20 June 2002 :  04:41:51  Show Profile
This one is mostly for a little update and FYI to Bozden.
Am taking a break on this issue.... per posted on:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=28412

Rest well and enjoy your summer vac with your family...



<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 24 June 2002 :  04:01:27  Show Profile
Would like to address this to Bozden:

I had to rebuild my i2AsiaFORUM from scratch and re-installed your EC V4.x compatible (Alpha) version.

All seems to be pretty much as was, however, now I have an error for pop_event.asp, and cannot open an event for preview.

------

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'doLangCode'

/i2asia/forum/pop_event.asp, line 87



in pop_event.asp file: there are two doLangCode locations besides line 87:



lines 87-88:


dim strTitle
strTitle = doLangCode(trim(rsGetEvent("Event_Title"))) '***LANG***MOD***


line 115:


<% =formatStr(doLangCode(rsGetEvent("Event_Details")))%><% '***LANG***MOD*** %>


I commented out your forum specific include file:

<!--INCLUDE FILE="../RESOURCES/includes/inc_sitefunctions.asp" --><% '***LANG***MOD*** %>



Do you know why this VBScript error for doLangCode mismatch happening?
What exactly does "doLangCode" do?

---
Thanks for your help.

Taku



<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 24 June 2002 :  10:27:17  Show Profile
Hi, Bozden, me again.

Going back to the old/new issues with EC (besides the above pop_event issue).

I have now partially localized - like Short/Abbrev Days of A week in Events showing up in Japanese and Chinese. Some of Add an Event Table showing UI in respective languages: Event Title and Event Details still in English. Weekly calender still are still in English only.

I tried with <%=fLang(strxxxxxxxxx)%> and <%=strxxxxxx%>, and played with both events_inc.asp, events.asp, events_functions.asp. strings in if then statement - sTitle, etc. don't take it, and Response.Write doesn't like it either.... I know the problems are with strings for some of system message - like "There is no events" message in "Upcoming Month"...which are totally hardcoded and no way I can change it. Assume that these can be written in a different way (re-writing codes) but no idea how.

Am still working on skelton of a rebuilt forum...but you can see where this is at. Would appreciate your help.

Best,
Taku


<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 25 June 2002 :  20:39:38  Show Profile
Would like to get someone's advise on the following issues related to Events Calender (Intl) deployment.
Version of Events Calender: EC V4.x compatible (Alpha) - Bozden's version, Jan/2001, with db files from V2rs1 International.
Deployed at: http://www26.brinkster.com/i2asia/forum/ (Events Calender included in inc_top.asp, in top menu items)
Languages (LCID): 1033 (English_US), 1041 (Japanese), 1028 (Traditional Chinese), 2052 (Simplified Chinese).

Currently having some basic problems on the following items. Some requires basic coding change which I am not clear and would appreciate help.



(A) Text String Variable handling issues

(1) response.write : events_functions.asp
I cannot change "There are no new events" in Upcoming Event in Events Calender. This has to do with response.write statement in function DisplayUpcomingEvents. Toward an end of that function statement, there is this:

if not rs.eof or not rs.bof then
.
.bla bla bla
.
else
response.write "<tr><td valign=top>There are no new events.</td></tr>"
end if

Need advise how to change "......" so that it will be processed to show a text string using strNoNewEvents defined in LangMODS_events....asp. Tried with <%=strNoNewEvents%>, <%strNoNewEvents%> but not processing correctly. Would like to put a string variable in there so that it can be processed and to be shown...there are more similar response.write codes in events_functions.asp that need to be treated the same way.

(2)Line 184 defines a button message text for "ADD Event" table:

<font FACE="Verdana" SIZE="2"><input TYPE="SUBMIT" VALUE="<% =sButtonMsg %>" id="SUBMIT1" name="SUBMIT1"></font>


<% =sButtonMsg %> is defined in the following subroutine:

Sub Show_Form()


' This routines presents the form to the user. Depending on the mode, the
' form fields are filled with data or blank.
Sub Show_Form()
Dim sButtonMsg
If sMode = "edit" Then
sButtonMsg = "Update Event"
Else
sButtonMsg = "Add Event"
End If

' Set the title of the page depending on if an error occurred during
' form submission or not
If bError = True Then
sTitle = "Error in form submission"
Else
sTitle = "Add/Update an Event"
End If

*How to set/rewrite if statement above to be able to process those sButtonMsg and sTitle texts with string variables defined in LangMODS_eventsxxxxx.asp, where these are all Dim 'ed in LangMODS_events.asp.

I looked through other EC files, and similar codes exisit in events_functions_popdelete. Changing both/either didn't work.


99% done. One response.write statement was converted into graphic to resolve the problem. Working fine otherwise in all Japanese, T/S Chinese.
Remaining Item: Weekly Date Format - both a range expression for a whole week : Sunday, June 23, 2002 - Saturday, June 29, 2002, in the top weekly title, and for each day of a week, like June 25, 2002. Requires some help in date format conversion in codes.

(B) Errors
(1) Cannot pop preview an event item
When click on an event for preview, pop preview doesn't work, get this error message:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'doLangCode'

/i2asia/forum/pop_event.asp, line 88




line 88 in pop_event.asp:

strTitle = doLangCode(trim(rsGetEvent("Event_Title"))) '***LANG***MOD***


having being geting previous error on doLangCode...


(2) DELETE function not working

Access View By Week, click on a date of a week with some events added, click on an event, and click on a trashcan. No response. Just sits there. Doesn't even get an error message nor delete confirmation statement....
Where is it defined and how to fix this problem?


Both Edit and Delete functions/features are now fixed in events.asp. Nicely working in all languages.

(C) Date of a Week related question
I found a section dealing a weekly view and date listing... where can I find codes dealing with writing individual date expression of a week? I want to change , for example, Tuesday June 26, 2002 to other locale date format, especially for Japanese and Chinese.


Tried with UK date format a little but didn't work. Wasn't sure whether it was the latest version of UK DateFormat stuff. Remaining final internatonalization item for EC.

Thanks for your help in advance. Will greatly appreciate it.

Taku







Edited by - LeoRat on 26 June 2002 07:01:04

Edited by - LeoRat on 26 June 2002 07:05:59

Edited by - LeoRat on 27 June 2002 06:23:53<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 27 June 2002 :  06:32:59  Show Profile
Maybe this whole thing needs to be moved to MODS forum?

Appreciate if someone can advise me on VBscript error:

I tried with V2rs1's pop_events.asp as well, and getting the same type error, this time slightly on different location but on the same "strTitle"":

<%
dim strTitle
strTitle = trim(rsGetEvent("Event_title"))

if len(strTitle) > 40 then
strTitle = mid(strTitle,1,41) & "..."
end if
Response.Write strTitle
%>


--
Thanks.

<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 27 June 2002 :  13:26:35  Show Profile
Taku, as far as I can see, this code needs a lot of clean-up before release. My mistake to mislead you on using this alpha. I never recognized that I let things specific to MY forum, such as INCLUDEs and doLangCode function calls (which makes my forum multi-language even for content)...

Please let me reach home to (re)start it...


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

n/a
deleted

593 Posts

Posted - 27 June 2002 :  16:25:55  Show Profile
Hi Bozden, thanks for your reply post.

Actually, I thank you for releasing this. I am learning as I go, which is a valuable experience (and right on some of my reasons being at Snitz!) Anyway, it's not that bad - some issues are related to my lack of full understanding VBScript and codes.... and trust me, I am getting some good feel for codes. (As I am getting a better understanding of codes, or at least so I feel! Or at least learning something through code testing here!)

I am glad to know that this is more of your forum specific item. I commented out Include and actually taken it out (which you explained to me that it's your forum specific item). For strTitle, I wasn't sure where it linked to, as it is declared locally and as I could not find strTitle anywhere. I tried replacing it with strEventTitle but didn't work (although I will give another try since events.asp is cleaned!) and see what happens.

I also played with UK dateformat, but didn't work well...

Anyway, here is my current status on EC
(1) pop_event.asp fix needed for popup preview of an event item.
(2) Day of a Week and View by Week title category representing respective languages...still showing in English only across languages.
(3) Month/Year selection menu box - Change order of [MONTH] [YEAR] [GO] to [YEAR] [MONTH] [GO] for Far Eastern languages. Get [YEAR] for locale year notation. (This may be achieved by making either all year supported in yearnames as strYEARxxxx as done for monthnames or make a short if...then...response.write type code to make selective match of a locale langauge selection and locale year notation, such as if English then write 2002<blank>, if Japanese then write 2002<year character>...(Japanese and Chinese year character representations are the same!, so it can be if LCID=1041, 2052, 1028 then 2002<year character>.. and <blank> length will be at minimum a single double byte char length. I think this is doable....Ideas only...)
(4) Change/Modifictions: Far Eastern language/locale date format - esp. for long datetime format in Day of a Week and a View by Week title date formats.
==> Change an order e.g. Thursday, June 27, 2002 to 2002, June 27, Thursday. Representation should be [Year Name/nummeric+year char]<space>[Month Name/numeric+month char][Numeric+ Date char]<dash>[Day of a Week Name]. (I am assuming a necessary modifications can be made in inc_functions.asp or events_functions.asp for these date formats and wirting up necessary if .... then ....write.response code, for depending on a different locale language. As for Far Eastern languages, this format will work.
Similarly, a range expression in View by Week can be modified accordingly. (Once a basic date format modification is made, this shouldn't be a major problem, I don't think(?)).

If these are achieved, we will have a EC MODS for Far Eastern languages, with V4.x compatibility.

I think this MODS is pretty close to getting there...

Thanks again.

Please enjoy your "vacation" - sorry that I am adding a to-do laundary item to your list of things to do (although, I hate to say but getting this feeling that you are pretty well cyber hardwired guy to Snitz and net....)

Taku



Edited by - LeoRat on 27 June 2002 16:30:25

Edited by - LeoRat on 27 June 2002 16:35:50<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 27 June 2002 :  17:37:23  Show Profile
I post this in MODS Forum as a general MODS related question. Thanks.




A small/additional item:
I had some problem of not understanding how to change response.write handling text strings - Esample:

<%
' If the event lasts more than one day, indidate the start and end dates
If rsGetEvent("Start_Date") <> rsGetEvent("End_Date") Then
Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 COLOR='Gray'><%=strStarts%>: " & strToDate(rsGetEvent("Start_Date")) & vbCrLf
Response.Write "<BR><%=strEnds%>: " & strToDate(rsGetEvent("End_Date")) & vbCrLf
Response.Write "</FONT><P>"
else
Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 COLOR='Gray'><%=strStarts%>: " & strToDate(rsGetEvent("Start_Date")) & vbCrLf
Response.Write "</FONT><P>"
End If

%>

In this example, <%=strStarts> is put in place of Starts, a text.
I get an error message pointing to the end of <%=strStarts
for example. I had to replace a text string "There are no new events in upcoming month" with a graphic icon to address this issue in events_functions.asp.

I believe it is a syntax problem for replacing a raw text string expression with strXXXXX as defined in LangMODS.

Each case, response.write is handling a html font size/color/type definition for a particular text string/phrase... and since is is closed with ".....", it seems not properly processed. Tried both <%strXXXXX%> and <%=strXXXXX%>, and didn't work. (Obviously I cannot simply put strXXXXX since it will process it as textstring as is.

Can anyone suggest a way to fix this syntax problem?




Edited by - LeoRat on 27 June 2002 17:48:57<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 27 June 2002 :  18:50:39  Show Profile
Bozden,

Some changes here:

(1) pop_event.asp is working now.
(2) now having some problems with Edit/Delete event. Either Edit works or Delete works...but not both. Am keeping a version of events.asp which makes Edit feature works...no Delete. Went back to the same sitaution as before, it just blinks.

Whenever changes made -ADD, EDIT, DELETE - a popup message window for Event Message show "false" and it pops up and disappear, but ADD and EDIT made are there. DELETE again just sits there.

Thanks.


<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 01 July 2002 :  04:19:53  Show Profile
Bozden,

A small update:
(1) All UI localization and rendering issues are corrected for popup windows and messages Finally figured out how to do response.write syntax and working, except:
(2) Weekly View - days of a week still remaining in English.
(3) DELETE function is not working still. This is the only problem remaining in terms of functionality issue of an existing MOD. Clicking a trashcan icon did not do a thing...it flicks a sec and just keep displaying an event, without doing anything.

Item (3): As EC is set to "Admin Only" so it does not really affect anyone else but Delete function problem is an issue as I cannot do anything about an event added. Using Edit mode and trying to set an event to a blank does not work either...

Item (2) above is still not clear how to do it.

Making some progress. You can take a look at it at my revamped i2AsiaFORUM (a link below).

(BTW, EC V2rs1 deployed with V3.3.05 at another forum is working without this problem at all...)

Will be talking with you soon.


Taku
i2Asia<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 03 July 2002 :  03:45:17  Show Profile
Another little update on EC deployment. I have put a small amonthly calender (events_inc.asp) in default.asp also. It is working fine with languages as well. Remaining issues are very much the same as the above post, but it's more isolated and specific.

I hope to understand why Edit/Delete does not work together or at present Delete is not working. Am assuming this has something o do with events_functions.asp. Your advise on this will be appreciated.

After this function fix done, then, I think I can look at Weekly Dates.

Thanks!




Taku
i2Asia<
Go to Top of Page

n/a
deleted

593 Posts

Posted - 05 July 2002 :  22:34:53  Show Profile
PLEASE CLOSE THIS TOPIC
EDIT/DELETE function problem was solved. Events.asp contained some Turkish words in some strings, which was replaced by English and with strXXXXXX statement. Now all functions/features work fine as is. Issues related for Weekly Date format remaining in English will be looked at separately from this topic.

Thanks.

Taku
i2Asia<
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.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07