Jump to content
dormky

Can LoadResString be done according to language ?

Recommended Posts

I'm trying to have the dialogs like MessageDlg be translated. Looking at the code in Vcl.Dialogs, it uses the LoadResString function to get the string for the buttons.

It doesn't look like it can handled multiple sources for the same string, but I could be wrong because it would be kind of insane to force dialogs to be in one language only. But this is Delphi, they aren't known for making logical design decisions.

Share this post


Link to post

dxgettext can translate ressource strings. It does so by hooking several RTL functions, one of them being LoadResString.

Last time I looked it only worked for 32 bit Delphi, unless somebody has ported it to 64 bit by now.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×