Content plugin language file encoding problem

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Content plugin language file encoding problem

Post by *Lefteous »

Hi,

I have received a Russian translation for my DirSizeCalc plugin. Now I want to integrate this plugin to the DirSizeCalc.lng file which already contains the German and French translation. How to integrate these languages which uses different codepages into a single file?
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Lefteous
I think, you may insert the text just into the LNG file in common ANSI encoding. Each user will see the normal text, if he has the appropriate system codepage selected. For example:
[rus]
someitem=<Russian text>
[deu]
someitem=<German text with umlauts>
If a user has Russian codepage as the system default, he will see Russian description, but not German umlauts. On the opposite, with the German codepage set default, he will see good German text, but not Russian.
Usually, this will be enough, because if the user wants to use Russian, he will hardly set German or some other than Russian codepage as default in his system.
Post Reply