Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

International applications

Status
Not open for further replies.

happyabc

IS-IT--Management
Mar 10, 2004
164
IN
Will any member, experienced in internationalization, say what might be a good strategy for cases of the local text: (a) have different strings for different cases e.g. "Module" and "module" (b) have a single string e.g. "module" and capitalize it in code. The main problem I see with the latter course of action are how to secure a general purpose function as LCase etc. wont work for phrases and how would that function handle capitalization for different languages? On the other hand, creating differently capitaized strings of the same text seems so tedious e.g. "word processor", "Word processor", "Word Processor" etc.
 
>seems so tedious

Sadly, internationalization can indeed be tedious
 
Yes, it's tedious. As you've found, you can't use the LCase() and Ucase() functions, as they are pretty much US specific. Turkish is a tough language to do, as they have two letter "i"'s in their alphabet (one with a dot, one without, and they both have upper and lower-case versions).

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
> have different strings for different cases

Well, I may have mis-understood the issue.

>do a binary comparison
Rather, text comparison

If you are doing comparisons, then instead of comparing:

If LCase$(Text1.Text) = "SomeTHING" Then

try:

If StrComp(Text1.Text, "SomeTHING", vbCompareText) Then

It may help

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top