The tooltip for the button is not displayed from wcmd_lng.ini
Moderators: Hacker, petermad, Stefan2, white
The tooltip for the button is not displayed from wcmd_lng.ini
The tooltip for the button is not displayed from wcmd_lng.ini
[img]https://i.ibb.co/qpP5wq1/2024-11-28-214935.png[/img]
[img]https://i.ibb.co/qpP5wq1/2024-11-28-214935.png[/img]
Re: The tooltip for the button is not displayed from wcmd_lng.ini
The tooltip from menu= is only transferred to the button if you pick the em_command from the "Choose Command" dialog - which you can open by clicking the button with the magnifying glass to the right of the "command" field in the "Change button bar" or the "Change single buton" dialogs.
If you just enter em_command in the "Command" field, TC will not tranfer the menu= setting.
And there are no button tooltips stored in the wcmd_lng.lng file, they are stored in the .bar files and in the usercmd.ini file
If you just enter em_command in the "Command" field, TC will not tranfer the menu= setting.
And there are no button tooltips stored in the wcmd_lng.lng file, they are stored in the .bar files and in the usercmd.ini file
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
Re: The tooltip for the button is not displayed from wcmd_lng.ini
Thank you very much for your answer. There is a method I tried through 10000 in WCMD_LNG.INC. It's inconvenient, but it's the only solution. I checked. The tooltips is taken from WCMD_LNG.INI, through a magnifying glass. But it fits automatically into the field and does not change when switching languages. That is, it behaves the same way if you take it from usercmd.ini.petermad wrote: 2024-11-28, 19:23 UTC And there are no button tooltips stored in the wcmd_lng.lng file
Re: The tooltip for the button is not displayed from wcmd_lng.ini
2AkulaBig
WCMD_LNG.INI is just another usercmd.ini, which is enabled, when WCMD_LNG.MNU is loaded (not necessarily when WCMD_LNG is loaded).
If you have a WCMD_LNG.INI in your Language folder and you are currently using WCMD_LNG.MNU, then when you open the "Choose Command" dialog (cm_CommandBrowser) - then you will see WCMD_LNG.INI in the bottom left, below usercmd.ini - and you can pick em_commands from there.
WCMD_LNG.INC is the LNG-translation of TOTALCMD.INC and you cannot use em_commands in TOTALCMD.INC, hence you cannot translate an em_command via WCMD_LNG.INC
If an em_command is used in your WCMD_LNG.MNU, then the text from the MENUITEM in WCMD_LNG.MNU is used as tooltip for a button with that em_command, if the "Tooltip" field is blank for that button.
So if you have a WCMD_LNG.MNU and another WCMD_LNG2.MNU and they both have the em_command as a menu item, then the tooltip will follow the language of the .MNU file.
To put it in another way for buttons with a blank "Tooltip" field:
WCMD_LNG.INC is used if WCMD_LNG.LNG is loaded.
cm_commands get their tooltip from WCMD_LNG.INC if it exists. If WCMD_LNG.INC does not exist the button gets its tooltip from WCMD_XXX.MNU if the cm_command is used in the WCMD_XXX.MNU (does not have to be WCMD_LNG.MNU).
em_commands get their tooltip from whatever WCMD_XXX.MNU that is loaded if the em_command is usen in the WCMD_XXX.MNU file.
If the "Tooltip" field for a button is not blank, then the content of that field will always be used, no matter what language or menu you are using.
WCMD_LNG.INI is used if WCMD_LNG.MNU is loaded.
So it could be desirable, that if the"Tooltip" field for a button is blank, then the text at the menu= line in the [em_command] definition in WCMD_LNG.INI (secondary in usercmd.ini) would be used - but currently it is not the case.
If you use the OPENLANGUAGEFILE command to open WCMD_LNG.LNG then WCMD_LNG.INC, WCMD_LNG.CHM, WCMD_LNG.MNU and WCMD_LNG.INI are loaded if they exist.
If you use the OPENLANGUAGEFILE command to open WCMD_LNG.MNU then only WCMD_LNG.INI is loaded if it exists - the other language specific files stays the same.
WCMD_LNG.INI is just another usercmd.ini, which is enabled, when WCMD_LNG.MNU is loaded (not necessarily when WCMD_LNG is loaded).
If you have a WCMD_LNG.INI in your Language folder and you are currently using WCMD_LNG.MNU, then when you open the "Choose Command" dialog (cm_CommandBrowser) - then you will see WCMD_LNG.INI in the bottom left, below usercmd.ini - and you can pick em_commands from there.
WCMD_LNG.INC is the LNG-translation of TOTALCMD.INC and you cannot use em_commands in TOTALCMD.INC, hence you cannot translate an em_command via WCMD_LNG.INC
If an em_command is used in your WCMD_LNG.MNU, then the text from the MENUITEM in WCMD_LNG.MNU is used as tooltip for a button with that em_command, if the "Tooltip" field is blank for that button.
So if you have a WCMD_LNG.MNU and another WCMD_LNG2.MNU and they both have the em_command as a menu item, then the tooltip will follow the language of the .MNU file.
To put it in another way for buttons with a blank "Tooltip" field:
WCMD_LNG.INC is used if WCMD_LNG.LNG is loaded.
cm_commands get their tooltip from WCMD_LNG.INC if it exists. If WCMD_LNG.INC does not exist the button gets its tooltip from WCMD_XXX.MNU if the cm_command is used in the WCMD_XXX.MNU (does not have to be WCMD_LNG.MNU).
em_commands get their tooltip from whatever WCMD_XXX.MNU that is loaded if the em_command is usen in the WCMD_XXX.MNU file.
If the "Tooltip" field for a button is not blank, then the content of that field will always be used, no matter what language or menu you are using.
WCMD_LNG.INI is used if WCMD_LNG.MNU is loaded.
So it could be desirable, that if the"Tooltip" field for a button is blank, then the text at the menu= line in the [em_command] definition in WCMD_LNG.INI (secondary in usercmd.ini) would be used - but currently it is not the case.
If you use the OPENLANGUAGEFILE command to open WCMD_LNG.LNG then WCMD_LNG.INC, WCMD_LNG.CHM, WCMD_LNG.MNU and WCMD_LNG.INI are loaded if they exist.
If you use the OPENLANGUAGEFILE command to open WCMD_LNG.MNU then only WCMD_LNG.INI is loaded if it exists - the other language specific files stays the same.
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
Re: The tooltip for the button is not displayed from wcmd_lng.ini
Thanks again for the explanations. It works for me this way:
[img]https://i.ibb.co/GJGDm35/TC01.png[/img]
[img]https://i.ibb.co/MpXwx2y/TC02.png[/img]
[img]https://i.ibb.co/3zWN6Nq/TC03.png[/img]
Please note. The WCMD_ENG.LNG file can be empty (so as not to update it when a new version is released). But he must be present. Like all the other files shown in the screenshot.
[img]https://i.ibb.co/94phgdp/TC04.png[/img]
[img]https://i.ibb.co/GJGDm35/TC01.png[/img]
[img]https://i.ibb.co/MpXwx2y/TC02.png[/img]
[img]https://i.ibb.co/3zWN6Nq/TC03.png[/img]
Please note. The WCMD_ENG.LNG file can be empty (so as not to update it when a new version is released). But he must be present. Like all the other files shown in the screenshot.
[img]https://i.ibb.co/94phgdp/TC04.png[/img]
Re: The tooltip for the button is not displayed from wcmd_lng.ini
2AkulaBig
I can not make this: https://i.ibb.co/yRKC2BQ/TC01.png work.
Are you sure that you do not use em_settings in WCMD_ENG.MNU and in WCMD_RUS.MNU ? - and that is where TC get the tooltip from.
Try and change 10000="Settings" to 10000="Settings 2" in your WCMD_ENG.INC file - does that show "Settings 2" in the tooltip when using WCMD_ENG.LNG ?
I can not make this: https://i.ibb.co/yRKC2BQ/TC01.png work.
Are you sure that you do not use em_settings in WCMD_ENG.MNU and in WCMD_RUS.MNU ? - and that is where TC get the tooltip from.
Try and change 10000="Settings" to 10000="Settings 2" in your WCMD_ENG.INC file - does that show "Settings 2" in the tooltip when using WCMD_ENG.LNG ?
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
Re: The tooltip for the button is not displayed from wcmd_lng.ini
Sorry. I use a translator and did not understand what you wrote. Perhaps your post contains expressions that Google does not understand. Can you write briefly?
Re: The tooltip for the button is not displayed from wcmd_lng.ini
2AkulaBig
I can not make the things you show in your screenshots work.
Since it works for you, I think that you maybe are using the em_setings command in a MENUITEM in your WCMD_ENG.MNU file - as for example:
can you confirm that em_setings is in your WCMD_ENG.MNU file or not?
And then I asked for you to test this:
In WCMD_ENG.INC change:
to
Restart TC an hover your button with the em_settings command - does it now show: "Settings 2" ?
__________________________________
EDIT
I just figured out that using this in the WCMD_ENG.INC file:
works IF the first menu item with an em_command in WCMD_ENG.MNU is
So please test this - put a ; in front of the menuitem as here:
This will disable the menu item - then restart TC and - I am sure that the tooltip for the button now will show: "em_settings" in stead of "Settings"
I can not make the things you show in your screenshots work.
Since it works for you, I think that you maybe are using the em_setings command in a MENUITEM in your WCMD_ENG.MNU file - as for example:
Code: Select all
MENUITEM "Settings", em_settings
And then I asked for you to test this:
In WCMD_ENG.INC change:
Code: Select all
10000="Settings"
Code: Select all
10000="Settings 2"
__________________________________
EDIT
I just figured out that using this in the WCMD_ENG.INC file:
Code: Select all
10000="Settings"
Code: Select all
MENUITEM "Settings", em_settings
Code: Select all
;MENUITEM "Settings", em_settings
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
Re: The tooltip for the button is not displayed from wcmd_lng.ini
No. I don't edit WCMD_ENG.MNU. but it must be there.petermad wrote: 2024-11-29, 18:28 UTC can you confirm that em_setings is in your WCMD_ENG.MNU file or not?
There is no need to restart TC. Starts working immediately. em_settings must be specified in WCMD_ENG.INI, WCMD_RUS.INI.
Re: The tooltip for the button is not displayed from wcmd_lng.ini
I will continue in this topic so that everything is in one place. We sorted out the toolbar.
Is it possible to make the STARTMENU and the menu of favorite catalogs multilingual?
Is it possible to make the STARTMENU and the menu of favorite catalogs multilingual?
Re: The tooltip for the button is not displayed from wcmd_lng.ini
There are no em_command in WCMD_ENG.MNU by default.No. I don't edit WCMD_ENG.MNU. but it must be there.
I found out why it didn't work for me. with
Code: Select all
10000="Settings"
This makes the method very inconveniant to use, if you, as I, often add, delete or move buttons in my button bar.
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
Re: The tooltip for the button is not displayed from wcmd_lng.ini
I posted the screenshots. I don't use this file at all. But the file itself must exist. Not the entries in it, but the file itself.
No, the order in which the user command is placed does not matter. I have it 8 in the toolbar. They also have their own commands written in usercmd.ini.petermad wrote: 2024-12-01, 00:07 UTCin WCMD_ENG.INC the button HAS to be the FIRST button with an em_command in the current button barCode: Select all
10000="Settings"
[img]https://i.ibb.co/QkdZr4W/2024-12-01-094439.png[/img]
[img]https://i.ibb.co/g7dpq3H/2024-12-01-094504.png[/img]
Re: The tooltip for the button is not displayed from wcmd_lng.ini
Maybe your tooltip field is filled in? It should be empty, like in my screenshot.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: The tooltip for the button is not displayed from wcmd_lng.ini
WCMD_ENG.INC is not meant to translate em_commands. The reason why it works is that em_commands are assigned the numbers 10000, 10001 etc. in the order they are used. It's therefore a better idea to put the tooltip text directly in the button bar configuration.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com