[Implemented] Command to load .lng files
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
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.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.
That would be fine for loading just menu files.What I could do is make it take just a mnu file as parameter.
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
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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2petermad
It's an undocumented command just for translators - it shouldn't be a problem to create matching lng/mnu pairs for that purpose.
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
https://www.ghisler.com
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
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
2ghisler(Author)
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.What I could do is make it take just a mnu file as parameter.
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
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