[Implemented] Command to load .lng files

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Great news, thanks!
User avatar
white
Power Member
Power Member
Posts: 5784
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) about the new OPENLANGUAGEFILE command wrote:I have added this now, but I will not put it in the totalcmd.inc file because it's not interesting for the normal user.
I disagree, I think it is interesting for the normal user.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The function isn't currently checking the presence of the files. It just sets the name in the ini, and tells TC to re-load the language and menu. What I could do is make it take just a mnu file as parameter.

For your tests, just make copies of the lng files matching the names of the mnu files. They don't take much space. You can even make file system links with mklink if you prefer.
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

ghisler(Author) about the new OPENLANGUAGEFILE command wrote:will not put it in the totalcmd.inc file because it's not interesting for the normal user.
Well, this could be useful, when two persons share same user account, but use different languages (there may be no real need to create a new user account for a guest staying for just two days). Both persons may understand for example English, but keyboard shortcuts are language-specific, so it's easier to use own languages.
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

What I could do is make it take just a mnu file as parameter.
That would be fine for loading just menu files.

But it doesn't meet the problem when using lng file as parameter and there is no corresponding mnu file - then TC uses the build in English menu - it would be nicer if the current menu was still used in that situation.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

ghisler(Author) wrote:I have added this now, ...
Many Thanks!

<Win+Alt+E><Win+Alt+D><Win+Alt+E>
Holger :D
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2petermad
It's an undocumented command just for translators - it shouldn't be a problem to create matching lng/mnu pairs for that purpose.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I think we'll find out that much more than translators will find it usefull - especially being able to switch custom menus could be usefull for anybody - one could then make custom menus for different tasks.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
What I could do is make it take just a mnu file as parameter.
That would be a nice addition if that implies that stating a mnu file only changes the Mainmenu= setting and leave the LanguageIni= setting untouched.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply