Article

From:
To:
Ciaran Manning
Subject:
Re: Build fails for language files [Edit]
Newsgroup:
embarcadero.public.cppbuilder.localization

Re: Build fails for language files [Edit]

Hi Ciaran,
Back to problems again. 
In both the Hello World program and my complete program I'm using both dfm files and a text.rc file. The text.rc file replaces some labels actively in the program by using LoadStr() commands. The Hello World program shows both the results from the dfm files and text from the text.rc files correctly on the forms. I have the full program completed and have put in all of the translations. However when I run the program now it only shows the forms which had DFM files with the translations. Nothing from the text.rc file seems to be coming through in any of the languages. I've tried removing all of the languages and putting them all back (that helped with some of the compiler/linker problems) but it didn't help with this. I've put breakpoints in the program to see what is happening but that doesn't help because the LoadStr just shows what comes through after the VCL has fetched the string and it is always in English. The text.rc file does show in the list of files in the Project Manager and is different for each of the languages. I was pretty sure that I had tested this and that it was working before I started editing all of the dfm files translations, so I don't know why it quit after the dfm translations have been done
.
Have you gotten your program to a point where you have tried the languages? Also are you using both a STRINGTABLE in a .rc file and dfm files?
Thanks,
Bruce

OK I think I have a clue as to what the problem may be. I have been playing with the text.rc files and if something is put into the translation version of that .rc file before it is put into the English version then the data goes into the XML file but keys off of the foreign language instead of the English. Then when the English is put in, the 'database' gets confused and nothing is printed (or the English only is printed). However, when I remove the language and then also remove the folder and then lat
er add it back in, the problem is still there.

Edited by: Bruce Petty on May 21, 2013 1:28 PM
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Mon, 25 Nov 2024 17:40:58 UTC
Copyright © 2009-2024
HREF Tools Corp.