🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #909

Re: In swedish!

#909
From: Stephen Ciricillo
Date: Tue, 22 Jan 2002 19:59
62 lines
3730 bytes
Genheden wrote in message <3c4bfa4d$1_1@dnews>...
>Hello!
>
>I would like to have message boxes in my applications with the text like :
"Error. When
>trying to save the file!" (but in swedish of course). I know there're two
>methods I can use to make these message boxes.
>1) Application->MessageBox

MessageBox is a wrapper on the WINAPI MessageBox function and therefore will
use the language native to the version of Windows currently running.  For
example, if you're running Swedish Windows then MessageBox will yield
Swedish text - but no button graphics, since Windows buttons are generic.


>2)MessageDlg
>Here is the problem. In MessageBox I will get the buttons Yes, No etc. in
>swedish but there're no way I can have those nice little icons on the
>MessegBox.
>Those can I get when I use MessageDlg but then I will get the buttons in
>english.

MessageDlg is a Borland VCL function that conveniently (or NOT so
conveniently) uses Borland's derivations of buttons with the "check mark"
and "X" for OK and Cancel, etc.  The text for these buttons is buried in the
code for the VCL and therefore a little trickier to get translated.

There exist various products on the market to assist in translation
processes.  One common theme they have is the idea of scanning the
programmer's source files for all occurences of text strings and replacing
with some indirect method of reference (STRINGTABLE or function call, etc.).
The programmer is then typically presented with some sort of database
utility to enter foreign language strings side by side with their English
counterparts.  A few mouse clicks and a recompile and the application now
speaks a foreign language.  Almost...

The whole process is tougher than it sounds.  Some of the available tools to
do this all suffer from some limitations, in some cases related to the very
thing you are trying to do.  One product scans source files but misses or
ignores text embedded in Builder form files.  Another will catch that but
won't scan your files for you - need to do that manually.  But there are
several products available, some research into them is in order.

One product I have personal experience with is TSILANG:
(see http://www.sicomponents.com)
Not bad and inexpensive.  Some quirks but the developer is responsive to
suggestions and bug reports.

Another product to consider but costly ($2000 US):
http://www.multilizer.com/solutions/products/

Others are available, do some internet searches.  One thing is for certain -
work by you is necessary to provide finishing touches.  Particularly if you
use currency or time strings.  The you must deal with locale specific
windows calls.  Lots of learning curve here...

Hope this has helped.  Maybe check out a book by Nadine Kano, Microsoft
Press I think.  Good information about internationalization issues for
Windows programs.

Good luck,
Steve
Technical Details
Message-ID: <3c4dc455$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub1.nntpserver.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c4bfa4d$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,11bb818643d04c2d
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-01-22 11:59:22 PST
From: "Stephen Ciricillo" <sjciric@localnet.com>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3c4bfa4d$1_1@dnews>
Subject: Re: In swedish!
Date: Tue, 22 Jan 2002 14:59:26 -0500
Lines: 65
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 24.24.6.4
Message-ID: <3c4dc455$1_1@dnews>
X-Trace: dnews 1011729493 24.24.6.4 (22 Jan 2002 11:58:13 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub1.nntpserver.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews