views:

66

answers:

2

I cannot localize a Builder C++ 2010 application. Even following the directions in the help file. Here is what I do:

  1. create a VCL Forms application.
  2. add the german language.
  3. add the german translation of the form caption using the translator.
  4. set my active language preference to german (project->language->set active...).
  5. build and run and I still get the english form caption. There is no xxx.deu file created.

What am I doing wrong?

+1  A: 

Steps look simple and correct in general, but there are two possible missed steps

  1. create a VCL Forms application.
  2. add the german language.
  3. add the german translation of the form caption using the translator.
  4. Save Translation in Translation Editor.
  5. set my active language preference to german (project->language->set active...).
  6. build and run and I still get the english form caption. There is no xxx.deu file created.
  7. Build All projects, not parent only. Both of project - main and localized must built without errors.
David Dean - Embarcadero
Here is my working solution, very close to yours:Ok, I got it working, here are the steps:1 . turn on generate drc files in build options2. goto project->languages->add and add the languages you want3. right click on main project and add dependencies4. do your translations5. set active language in project->languages5. compile and runThat should do it.P.S. Do not call your program Library, this is a keyword and will fail builds.
gbrandt
Now, how do you add a stringtable resource to a c++ builder app? I last used Builder 6 and it had a resource editor built in, I cannot find one in 2010.
gbrandt
A: 

Hello,

I have the same problem as yours, but I couldn't find a solution. Here is what I did:

  1. I created a VCL Forms application (for example, test.exe)
  2. I checked that "generate drc files" is "ON" in link options
  3. I added the language (spanish for example) -> It creates a localized project named test.ESP
  4. I did my translations using the translation editor
  5. I saved my translations (when I display the translated form in the translation editor, it works, the form appears translated in spanish)
  6. I set spanish as my active language
  7. I built all the projects (main : test.exe and localized : test.ESP)

Then, when I run, although Spanish is the active language, the form still appears in my base language (which is French).

Did I miss something?

Thanks

jbo