Internationalization

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Internationalization

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by cdshearer >> Tue, 26 Mar 2002 9:06:32 GMT

Hello All

I'm currently investing some internationalization issues for a system using JADE.

I'm aware that different locales like to sort their strings differently from us English folk and I'm wondering whether this is actually possible in JADE.

When I'm defining a MemberKeyDictionary subclass and I add a String key, I can choose the sort order as either Binary or a specific locale. This would be all very well if I was commissioned to build a system for a Chinese customer and they wanted all their dictionaries to sort in whatever order is appropriate in Chinese. However, what if I'm building a system to be used in many different locales? In this case, defining the sort order at design time is bloody useless!!!

For a system that is installed in a single locale, I'd like all dictionaries with String keys to sort for that locale when the dictionary was created.

For multi-locale systems, I realise that we can't have dictionaries appearing in the correct order depending upon the client machine's locale as that would involve re-sorting the collections for each user. So, in this instance the only solution would be to use dynamically created dictionaries (such as instances of an existing Dictionary class, or a DynaDictionary) and thus have the sort order defined for String keys at time of instantiation.

Has anybody encountered this problem before and if so, how have you solved it? Actually, I don't think there is any existing solution in JADE and this really would require some fairly hefty new features to support this. Perhaps people in other locales are just used to putting up with incorrectly sorted lists in their non-local software products.

Craig

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Internationalization

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by cnwjhp1 >> Wed, 3 Apr 2002 1:05:20 GMT

Could you define the keys as English and replace

localeDefinitions
5129 "English (New Zealand)";

with

localeDefinitions
1052 "Albanian (Albalia)";
5129 "English (New Zealand)" _cloneOf 1052;

in the .scm file before loading it in Albania? Or find and replace all the 5129's with 1052's.

Do you have a requirement to compare key values, eg find all names starting with SMI (including accented I's), or find names between SMI and SMJ? That caused problems on another (non-Jade) project I worked on.

If it makes you feel any better, Oracle's solution is (or was a few years ago) to sort the results of each query. Not very helpful if you want the first 14 items out of 5 million.

Aren't there region-generic locales, eg WesternEuropean?

Cheers,
John P


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 21 guests