Article View: borland.public.cppbuilder.internationalization
Article #876Loading strings from a resource file
From: Andrue Cope
Date: Thu, 18 Oct 2001 12:56
Date: Thu, 18 Oct 2001 12:56
36 lines
2394 bytes
2394 bytes
We're currently looking at making our applications somewhat language independent. At present we only want some method of providing an alternate 'char *'. Multi-byte strings are not currently a requirement. We already have a numeric code based system for our error codes so we've decided to extend this to all strings. The Borland documentation appears a bit sparse in this area. It describes the ITE and indicates that resource string lists are the way to go but then fails to explain how you do the latter for your own strings. I have already set up the ITE for two languages and am happy about using that. This has raised a couple of questions though: 1.Translation Manager This seems to only deal with strings from components. I can't find any way to add my own strings. Is there supposed to be some way to do this or is it only concerned with VCL strings? 2.Resource string IDs We can create our own .RC and add it to the project so that we can define our own resource strings. It'd be really nice if we could use our existing error codes as string IDs but this raises several issues: How do we avoid conflicts with other string IDs? Some of our error codes are -ve. Can you have -ve resource IDs? Most of our error codes are 16-bit but some of the more recent are 32-bit. Is this going to be a problem? Your thoughts and comments would be appreciated. Andrue Cope [Bicester, UK]
Technical Details
Message-ID:
<VA.00000dd1.01136015@email.address.sorry>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,6775e502528a2b08,start X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2001-10-18 06:09:12 PST Date: Thu, 18 Oct 2001 13:56:01 +0100 Newsgroups: borland.public.cppbuilder.internationalization Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Message-ID: <VA.00000dd1.01136015@email.address.sorry> Subject: Loading strings from a resource file From: Andrue Cope <not.a.valid@email.address.sorry> Reply-To: not.a.valid@email.address.sorry NNTP-Posting-Host: 193.131.113.247 X-Trace: dnews 1003409954 193.131.113.247 (18 Oct 2001 05:59:14 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews