Incorrect Delphi exception message text

I have an application in which I catch exceptions and show the message text to the user as part of the error message. Allthough RAD Studio (10.1) is installed in English, and for the Locale ID parameter for 409 in English in the Version Info parameters for all targets, an error message is displayed in German. This happens both on German Windows 10 and on other Windows machines with different languages, even the Japanese client received it.

An exception is a system exception, such as the file could not be opened, the file was not found, but it seems that this happens in all exceptions that I do not raise using the message’s own text.

The project was recently migrated from Delphi 2007, and I had to manually clear the project files with regard to version numbers. But the Locale check in the project file is not surprising: 1033 β†’ $ 0409 - English.

Where could there be a reason for German posts?

+5
source share
1 answer

After finding a solution every time I could spend a few minutes in the last days, I solved it!

When using the BDSSetLanguage.exe tool in the bin folder of Rad Studio, you can not only change the IDE language, but also the library language. English was installed in the IDE, and the library was installed in German. Setting the library language to English solved the problem.

Thanks @mrabat for sending me in the right direction. But since his advice was just a hack, not a permanent solution, I think that I can not give any official loans here.

+1
source

Source: https://habr.com/ru/post/1273321/


All Articles