Skip to content
⌘ NSIS Forum Archive

Get File Language

13 posts

kookh#

Get File Language

Is it possible to get the (spoken not programming) language of an EXE or DLL file ? What I'm looking for is something similar to GetDLLVersion: to return the Language value that appears under the Version tab in the Properties dialog of an EXE or DLL file.
Anders#
i think that is just the language of the version info, and a exe/dll can contain version info in many languages in one file
onad#
See my "MoreInfo" plugin sourcecode for how to do this.

You can just also try the plugin, but it still has (for the spoken language) not a 100% score of result (e.g. if the resource in the EXE of DLL is build differently.

If you encounter a defect I'll improve the plugin for you, if you promise to retest improved version! well if that is not a good offer... 😉
kookh#
I'm sorry but your Plugin gets the language of the OS. What I'm talking about is something similar to GetTransTable here (but that's delphi)
Afrow UK#
I think what onad is saying is that languages being used in programs (DLL/EXE) are specified by the OS and not the programs themselves.

-Stu
kookh#
Originally posted by Afrow UK
I think what onad is saying is that languages being used in programs (DLL/EXE) are specified by the OS and not the programs themselves.

-Stu
Oh, well the program whose language I'm trying to obtain is available in different languages, and well I've tried it in several languages on my OS.

To be more exact, I included a screenshot. 0x0409 is 1033 in decimal which means English (United States). That is under the version info of a dll. What I'm aiming to is to read the 0x0409 part.
Afrow UK#
Try this out:

It was only put up a few days ago, so the author is still around if you need any help.

-Stu
Instructor#
GetFileInfo plugin
onad#
kookh wrote:
> I'm sorry but your Plugin gets the language of the OS.

Also, but not only! also the language of a chosen DLL/EXE see the documentation...

That's why it is called "MoreInfo" not "OSLangInfo" 😉