🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Translation suite doesn't recognize strings in sources

#745
From: Wim Bekker
Date: Wed, 27 Feb 2002 12:08
42 lines
2069 bytes
"Paolo Viti" <pviti@2ks.net> schreef in bericht
news:3c729f7b_1@dnews...
> Hello,
>
> Why translation manager correctly manages only strings from forms
and their
> objects?
>
> For instance,  the declaration :
>      char *msg = "This is a message";
> is not included in message list produced by T.M.
> Who can I use multilanguage strings in a source making T.M. able to
operate
> on it?

I use a pascal unit (ResMyApp) with this syntax:
unit ResMyApp;
interface
uses Windows;
const
    LCID_English    = (SUBLAND_ENGLISH_US shl 10) or LANG_ENGLISH;
resourcestring
//here is where I place all my strings for localistation ex:
    Initialising    ='Initialising';
implementation
end.

Compiling this results in ResMyApp.hpp.
Because ResMyApp.hpp is created everytime I compile, I copy this to
ResMyApp.h to include in the files that need it.

In the CPP file I then use:
#include "ResMyApp.h"
and
ex: Label1->Caption=Resmyapp_Initialising;

After using the resource wizard I have MyApp_DRC.rc file in every
language directory. In this file are all the entries I made in
ResMyApp.pas.

Wim
Technical Details
Message-ID: <3c7ccbfa$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news.stealth.net!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c729f7b_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,900a0d33a45d8a3d
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-02-27 04:09:05 PST
From: "Wim Bekker" <Wim@dv-rec.com>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3c729f7b_1@dnews>
Subject: Re: Translation suite doesn't recognize strings in sources
Date: Wed, 27 Feb 2002 13:08:02 +0100
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 213.84.220.18
Message-ID: <3c7ccbfa$1_2@dnews>
X-Trace: dnews 1014811642 213.84.220.18 (27 Feb 2002 04:07:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news.stealth.net!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews