• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

How to get localized "Flight Simulator X files" folder ?

JAB

Messages
19
Country
switzerland
Hello,

As you probably noticed, the name of the folder where FSX places saved flights is localized. It is always in "My Documents" (or localized equivalent)
but the name changes.

In english it is "Flight Simulator X Files"
In french it is "Fichier Flight Simulator X"

Does anybody know where to find this information ?
It is not in registry, it is not if cfg files ... it should be somewhere ...

Thanks in advance for your help

A+
Jacky
 
It uses the same localization scheme (language codes) as windows. For example, 1033 is the code for English.

This value is stored as a dword in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\microsoft games\flight simulator\10.0 as LangID.

For example my LangID is 00000409. This is the DWORD value for 1033.

So now that you know the language the product is in, you can deduce what the name of the folder is.

I'll bet if you google it you can find a list of all of the language codes without too much trouble.

Hope this helps,
Sean
 
HiSean,

Thanks for your reply.
But it doesn't help to find the name of the folder ! :confused:

Example : In the registry, I find that the language is 405 (dec 1029) = Czech.
How can I deduce the folder's name ??? :eek:

A+
Jacky
 
I think you are asking about how the names of folders are rendered in different cultures?

I have no idea how it is managed. I have not checked but I assume that the Registry contains a number of keys for different elements of the set-up. One of them is certainly the FS Application folder. Is there another one for the Flights Folder?
 
In english it is "Flight Simulator X Files"
In french it is "Fichier Flight Simulator X"

Does anybody know where to find this information ?

It's a resource in the LANGUAGE.DLL in the FSX folder. Try something like this:

HINSTANCE hInstLang = LoadLibrary("<fsx folder>\language.dll");
if (hInstLang)
{ LoadString(hInstLang, 36864, szFSXfilesfolder, 128))
FreeLibrary(hInstLang);
}
else ...

where obviously you need code to insert the FSX folder path.

Regards

Pete
 
Ouaip!

with InstallCreator


HKEY_LOCAL_MACHINE

Software\Microsoft\Microsoft Games\Flight Simulator\10.0

setupPath

:wave:
 
Hello,

Thanks everybody for your answers !

Pete gave the solution I was looking for ! :)
Thanks Pete !

A+
Jacky
 
Back
Top