# Delphi uses wrong resources

**URL:** https://www.finalbuilder.com/forums/t/delphi-uses-wrong-resources/7401
**Category:** Feature Requests
**Tags:** actions
**Created:** [September 5, 2023, 1:44pm UTC](https://www.finalbuilder.com/forums/t/delphi-uses-wrong-resources/7401 "2023-09-05T13:44:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![entwicklung1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/7993a0/32.png) [@entwicklung1](https://www.finalbuilder.com/forums/u/entwicklung1)
#### Post date: [September 5, 2023, 1:44pm UTC](https://www.finalbuilder.com/forums/t/delphi-uses-wrong-resources/7401/1 "2023-09-05T13:44:50Z")

</div>

when i compile a delphi project with finalbuilder we compile the data.dbconsts.pas from the directory  
Embarcadero\Studio\22.0\source\data. If I compile the project directly in Delphi, the file data.dbconsts.pas from the directory Embarcadero\Studio\22.0\source\data\*_de_\* is used.  
Why is that? How can I change this?

---

<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: [September 5, 2023, 10:12pm UTC](https://www.finalbuilder.com/forums/t/delphi-uses-wrong-resources/7401/2 "2023-09-05T22:12:07Z")

</div>

Hi

This is likely because we add the Translated library path to the search path when compiling, and that is added to the start of the search path (to ensure the translations are used over the english ones).

This is controlled by what language you have your delphi install set as. That can be changed by running the `Embarcadero\Studio\22.0\bin\BDSSetLang.exe` tool - this allows you to change the Library Language - FinalBuilder reads this setting on startup to decide whether to use the translated library path.

Do you have the `Embarcadero\Studio\22.0\source\data\data.dbconsts.pas` file added to your project? If you add it directly to the project then it should use that rather than one from the library.
