🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How can I create a string table to use in dynamic code?

#685
From: Baris YURTCU
Date: Fri, 06 Sep 2002 23:07
26 lines
2024 bytes
How can I create and/or maintenance a .rc file? I have an application that
internationalized. BCB has generated some files that have ".rc" extension in
some folders that named as abbreviation of languages (for example: ENG for
english). But in the files, there is a sentence like this:

/*ITE: Do not edit. This file is machine generated by the Resource DLL
Wizard. */

I want to use some values (for example a message text) from String Tables
which translated to all languages my application supports. For example:

ID: IDS_ERROR_MESSAGE
English: "Division by zero"
German: "Div. mit zero"

The code in my application must be like this:

   ShowMessage(......IDS_ERROR_MESSAGE.......);

and if current language is English, "Division by zero" text must appear. If
current language is German then "Div. mit zero" text must appear.

What must I do? How can I create a string table?

Thanks,
Baris
Technical Details
Message-ID: <3d7935b6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,52b4377476bb49a6,start
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-09-06 16:16:15 PST
From: "Baris YURTCU" <badidi@hotmail.com>
Newsgroups: borland.public.cppbuilder.internationalization
Subject: How can I create a string table to use in dynamic code?
Date: Sat, 7 Sep 2002 02:07:38 +0300
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 195.175.175.153
Message-ID: <3d7935b6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1031353782 195.175.175.153 (6 Sep 2002 16:09:42 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail