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)
 International monthnames patch
 Forum Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

n/a
deleted

593 Posts

Posted - 20 May 2002 :  17:57:52  Show Profile
quote:


No the gg & y are from the string which indicate the format from nlsweb. They get replaced with whatever they mean. The original string was for example

gg y'年'M'月'd'日' dddd

the dddd, d, M got replaced, but these are left because I don't know whatever they mean. "y" must be a part of year, no idea on "gg" thou. Can it be other non-usual date coding for quarter, etc?

Have a look at the following and tell me what it is please (got this from global.exe, double quotes are put by me to show where it starts/ends):

For format: "gg y'年'M'月'd'日'"
It outputs: " 2年5月21日"

For format: "gg y'年'M'月'd'日' dddd"
It outputs: " 2年5月21日 火曜日"

For "y" it puts "2", either last or first number of year 2002 (bad year for tests )
For "gg" it seems to put nothing, and the space between gg and y is kept.

Strange.


Think Pink
==> Start Internationalization Here



This is not handling any of these Japanese ERA notation, right? like 平成 which happens to be a current era....平成7年5月20日 for proper Japanese expression (7 is arbitrary, since I don't remember which # is this year...most likely somewhere between 6~8....)

Not sure at all.... There are two calander expressions in NLS....locale and western...will this something to do with this?



LEORAT
i2AsiaFORUM
<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 20 May 2002 :  17:57:57  Show Profile
OK, I think I localized the problem... I used W2K control panel Regional Options to set Japan as the locale, "gg" type options come only when I choose "Japanese Emperor Era, 和暦" as the calendar type.

Must be a special code for this calendar. It does not render the example box in this case thou.


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

Deleted
deleted

4116 Posts

Posted - 20 May 2002 :  18:04:01  Show Profile
quote:

This is not handling any of these Japanese ERA notation, right? like 平成 which happens to be a current era....平成7年5月20日 for proper Japanese expression (7 is arbitrary, since I don't remember which # is this year...most likely somewhere between 6~8....)

Not sure at all.... There are two calander expressions in NLS....locale and western...will this something to do with this?



Hmmm. There are three calendar options:
Japanese Emperor Era, 和暦
Gregorian (English strings always), 西暦 (英語)
Gregorian (localized), 西暦 (日本語)

I think, without full calendar support I must leave non-western ones . I have to study more on calendars (there are more than you think). But I think it is for v4.1...


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

n/a
deleted

593 Posts

Posted - 20 May 2002 :  18:04:59  Show Profile
quote:

OK, I think I localized the problem... I used W2K control panel Regional Options to set Japan as the locale, "gg" type options come only when I choose "Japanese Emperor Era, 和暦" as the calendar type.

Must be a special code for this calendar. It does not render the example box in this case thou.


Think Pink
==> Start Internationalization Here


---From NSL APIs Table on LANGID=0411 Japanese --
Date formatting
Default short date format 2002/02/18
Default long date format 2002年2月18日
All short date formats
yyyy/MM/dd
yy/MM/dd
yy/M/d
yyyy/M/d
yy/MM/dd' ('ddd')'
yy/M/d' ('ddd')'
yyyy/MM/dd' ('ddd')'
yyyy-MM-dd
gg y/M/d
gg y/M/d' ('ddd')'
y/M/d
y/M/d' ('ddd')'
gg yy/MM/dd
gg yy/MM/dd' ('ddd')'
yy/MM/dd
yy/MM/dd' ('ddd')'
M/d/yyyy
M/d/yy
MM/dd/yy
MM/dd/yyyy
All long date formats
yyyy'年'M'月'd'日'
yyyy'年'MM'月'dd'日'
yyyy'年'M'月'd'日' dddd
yyyy'年'MM'月'dd'日' dddd
gg y'年'M'月'd'日'
gg y'年'M'月'd'日' dddd
y'年'M'月'd'日'
y'年'M'月'd'日' dddd
gg yy'年'MM'月'dd'日'
gg yy'年'MM'月'dd'日' dddd
yy'年'MM'月'dd'日'
yy'年'MM'月'dd'日' dddd
dddd, MMMM dd, yyyy
MMMM dd, yyyy

Calendars
Japanese Emperor Era, 和暦
Gregorian (English strings always), 西暦 (英語)
Gregorian (localized), 西暦 (日本語)

---

There are three calender types used .... per above...not sure which ones applying which one, but seems like gg y is for Japanese Emperor Era, Gregorian Western in English and in Japanese.....




LEORAT
i2AsiaFORUM

Looking at the same table simultaneously?????


Edited by - LeoRat on 20 May 2002 18:07:29<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 20 May 2002 :  18:10:36  Show Profile
OK, deal . Apologies to Inworg because of this loosely related discussion here... But it helped a lot. Thank you Leorat .


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

n/a
deleted

593 Posts

Posted - 20 May 2002 :  18:22:17  Show Profile
quote:

OK, deal . Apologies to Inworg because of this loosely related discussion here... But it helped a lot. Thank you Leorat .


Think Pink
==> Start Internationalization Here



Suggestion: Opting for not using Japanese Emperor Era date format.... use perhaps Gregorian either English or Japanese... much simpler and consistent.... Similar issues with Chinese, I suspect (not Emperor Era, that's gone!).





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