🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6259

Re: Internationalization

#6259
From: Mark HAHN
Date: Thu, 01 Mar 1990 03:46
39 lines
2308 bytes
there is no good answer yet.  I offer a few things to be aware of:
 
CHARACTER CODING
don't make assumptions about how "character" data is coded.
once upon a time, all characters were ASCII, that is, 0 to 127.
nowadays, the minimum is 8-bit characters, with much movement
in the direction of multi-byte characters or 16-bit chars.
as far as I can see, there are no difinitive or complete standards.
(for instance: what is the format of a locale string,  are wchar_t's 
supposed to be portable, are MB chars or wchar_t's valid in file names, etc.)

PRESENTATION PREFERENCES
you also should avoid assumptions about language and country-oriented
behavior like sort order, up/down casing, date/time/number/currency formats.
to be truly virtuous, you can't even assume text directionality!

ISOLATE MESSAGES FROM CODE
keep any strings in some separate file - if nothing else,
just have them in a big array somewhere, and refer to them
using symbolic indices.  various OSs have better (?) or more elaborate
support than this - X/Open message catalogs, Mac/Windows/PM resources,
OS/2 message files.

ON THE HORIZON
there are a number of promising directions.  UniCode is one of them:
a 16-bit character set that is able to represent everything uniformly.
I don't know of any promising ideas for managing messages, though.
Internationalization is not glamorous, hence the various Unix groups
estimate 1992 for shipping international support.  Just remember that someone,
probably not the original author, will be trying to translate those messages.

Maybe the real benefit of iconic or direct-manipulation user interfaces 
is the smaller number of messages...

regards,
Mark Hahn
-- 
Mark Hahn	microsof!markha@uunet.uu.net	uunet!microsof!markha
I don't speak for Microsoft.
Technical Details
Message-ID: <51118@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uunet!microsoft!markha
References: <MCDANIEL.90Feb20135828@orenda.amara.uucp> <12570045@hpclwjm.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uunet!microsoft!markha
From: markha@microsoft.UUCP (Mark HAHN)
Newsgroups: comp.std.c
Subject: Re: Internationalization
Summary: there's no good way yet.
Keywords: internationalization
Message-ID: <51118@microsoft.UUCP>
Date: 1 Mar 90 03:46:06 GMT
References: <MCDANIEL.90Feb20135828@orenda.amara.uucp> <12570045@hpclwjm.HP.COM>
Reply-To: markha@microsoft.UUCP (Mark HAHN)
Organization: Microsoft Corp., Redmond WA
Lines: 39