Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8477479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:28:46+00:00 2026-06-10T18:28:46+00:00

I have a Delphi app with localized resource DLLs. I would like to do

  • 0

I have a Delphi app with localized resource DLLs.

I would like to do a search and replace on a resource string once it is loaded from the DLL.

Is there any internal procedure to hook into to do this?

I need a way to just do search and replace for any resource string loaded, and not just change a specific resource string.

Raoul.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:28:48+00:00Added an answer on June 10, 2026 at 6:28 pm

    Yes you have to hook the LoadResString() procedure defined in System.pas.

    See for instance how we do in http://synopse.info/fossil/finfo?name=SQLite3/SQLite3i18n.pas

    There is everything in this unit code:

    • For extracting all resource strings (but you may also compile the executable with the “detailed map” option to get the same list);
    • For replacing all resource strings on the fly, to your expected language;
    • For caching all resource string, since default LoadResString API can be slow.

    You have also similar code around, but this is one included in our Open Source mORMot framework, working from Delphi 6 up to XE2. There is also code to change on the fly all .dfm content (i.e. your forms), from the same translated text file. There is a chapter about that in the framework documentation at http://mormot.net

    I think you will get here every code pattern needed for your task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Delphi 2010 DLL loaded in a Delphi 2010 app. It works
I have a class in my Delphi app where I would like an easy
I have a DevExpress VCL ribbon in my Delphi app From time to time
Is Delphi have any ability to write script of IDE actions? I would like
I have a Delphi 6 app that makes movies from an incoming video and
I have a Delphi DLL and I want to load it in my app
I have a delphi app that logs data from various places and writes the
I have old Delphi application. This app takes session key from server, do some
I have a Delphi 2006 app which can pop up a modal dialog in
In a Delphi app we have assigned a dataset provider with a TADOQuery, passing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.