Jump to content
Al T

what is the structure of the file needed for LoadLangFromFile ??

Recommended Posts

The language designer can save to a .lng file. See; FMX.Types.TLang - RAD Studio API Documentation (embarcadero.com) 

Can also create a txt-file template then load from txt-file latter then save as a .lng file.


The format of .lng files looks binary but not too complex - a section of strings (xxxx) one per line to translate then sections for a language code and translation pairs (xxxx=yyyy) one per line. 

  • Thanks 1

Share this post

Link to post



Please read:



It says:

There are special cases where switching between languages does not work as expected if the language that you switch to is English (en). As a workaround, we recommend that you use LoadLangFromStrings instead of setting TLang.Lang to switch between languages at run time. 

So, you can save your language file as a text file, it's contain is key=value format.


One language, one file. If you want changes the language, load another file.

Share this post

Link to post

I use .ini for language files. This makes it easy for users to create their own language files. Is there any specific advantage of the .lng format over .ini?

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