How does online language switching work?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello,

I heard of an internationalization utility called "Rapid Translation"
which hooks into an MFC program and instantly allows all strings
that are displayed from resources (dialogs, menues etc.) to be
translated into a different language. Languages can be switched
at runtime, after which all strings the program loads from its
resource will instantly display in the new language. This is
accomplished by a simple function call in the program's InitInstance
function - no further source code modification is required.
Later versions of the tool even work without any modification
to the source code (by hooking into a finished .exe).

My question is, how does this language switching work? I looked
around but didn't find a way to intercept resource file loading
the way this tool does. Is there a Windows hook or some undocumented
MFC functionality that makes this possible? I'm asking because I
need a similar functionality for my program.

Thanks for any help
W. Roesler
.



Relevant Pages

  • Re: Visual C++ 6 support issue
    ... >> A common IDE is a good idea, but usually in programming, you have ... >would do what made sense for that language. ... >or at least for allocating resource ID values within specified ranges. ... >That is, for example, I'd like to keep all the help strings and all the ...
    (microsoft.public.vc.mfc)
  • Re: <resource> elements in WSCs
    ... A resource element can hold any text whatsoever, ... > for each language, or even use a basename+LCID if you have multiples. ... I have considered attempting to abstract all literal text strings into ... with all tokens replaced. ...
    (microsoft.public.scripting.wsh)
  • Re: How does online language switching work?
    ... which hooks into an MFC program and instantly allows all strings ... resource will instantly display in the new language. ...
    (microsoft.public.vc.mfc)
  • Re: internationalisation
    ... string for the static in the local language dll, ... I don't have to adapt every existing dialogue to look for translated strings ... just by updating the language resource module. ...
    (microsoft.public.vc.mfc)
  • Re: Unicode
    ... all strings are by default encoded as Unicode in the .NET Framework. ... > In order for a specific language to display on a user's machine, ...
    (microsoft.public.dotnet.framework.aspnet)