# Using Delphi's translated units

**URL:** <https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335>\
**Category:** Bugs\
**Created:** [January 31, 2011, 3:24am UTC](https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335 "2011-01-31T03:24:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![uraabe](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/uraabe/32/2502_2.png) [@uraabe](https://www.finalbuilder.com/forums/u/uraabe)\
**Post date:** [January 31, 2011, 3:24am UTC](https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335/1 "2011-01-31T03:24:18Z")

</div>

According to this thread [www.finalbuilder.com/forum.aspx](https://www.finalbuilder.com/forum.aspx?aft=9542) the translated versions of the RTL/VCL units should be used when a registry key is set using BDSSetLang.exe.

The problem is that this key is blanked when set to the current Windows language (DE in my case). As a consequence Finalbuilder seems to assume the English locale resulting in the wrong units compiled.

Is it possible that Finalbuilder provides a LANGDIR variable in any case and initializes it with the current Windows locale if no or an entry MUI&nbsp;entry is found?

Or is it just me doing it the wrong way?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [February 3, 2011, 5:05am UTC](https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335/2 "2011-02-03T05:05:00Z")

</div>

Hi Uwe   
  
 This is a difficult one. There isn’t a 1 to 1 correlation between the windows local and the MUI entry. Currently the only way to detect which language to use is through the MUI entry. If you know of a better way I’m happy to try that.   
  
  
 If you add a project variable LANGDIR and set it to DE, finalbuilder will attempt to read the Translated Library Path from HKEY\_CURRENT\_USER\Software\CodeGear\BDS\7.0\Library (which by default is $(BDS)\lib$(LANGDIR) ).   
  
 HTH

---

<div class="post-metadata">

**Author:** ![uraabe](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/uraabe/32/2502_2.png) [@uraabe](https://www.finalbuilder.com/forums/u/uraabe)\
**Post date:** [February 3, 2011, 1:35am UTC](https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335/3 "2011-02-03T01:35:46Z")

</div>

Hi Vincent,

I didn't realize that defining a user or project variable solves the problem. I tested a few scenarios and it seems to work well, so far.

Although having the LANGDIR set automatically would be nice, I can perfectly live with that. Perhaps a case for the FAQ.

Regards

Uwe

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [February 4, 2011, 2:23am UTC](https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335/4 "2011-02-04T02:23:22Z")

</div>

Ok, will look at writing something up. Just for the record, are you using the English language version of Delphi or the German one?

---

<div class="post-metadata">

**Author:** ![uraabe](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/uraabe/32/2502_2.png) [@uraabe](https://www.finalbuilder.com/forums/u/uraabe)\
**Post date:** [February 5, 2011, 1:11am UTC](https://www.finalbuilder.com/forums/t/using-delphis-translated-units/3335/5 "2011-02-05T01:11:28Z")

</div>

During installation I also checked English, French and Japanese, but I usually work with the German version. Before I executed BdsSetLang for the first time the MUI key didn't even exist.
