The tooltip for the button is not displayed from wcmd_lng.ini

English support forum

Moderators: Hacker, petermad, Stefan2, white

AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *AkulaBig »

ghisler(Author) wrote: 2024-12-01, 08:18 UTC It's therefore a better idea to put the tooltip text directly in the button bar configuration.
But then you cannot make a multilingual assembly.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *petermad »

2AkulaBig
No, the order in which the user command is placed does not matter. I have it 8 in the toolbar.
I am sure that your button with "User panel" is the first button with an em_command in your .BAR file and that your button with "Settings" is the 4th button with an em_command in your .BAR file.

As Ghisler writes:
ghisler(Author) wrote:The reason why it works is that em_commands are assigned the numbers 10000, 10001 etc. in the order they are used.
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
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *AkulaBig »

petermad wrote: 2024-12-01, 15:56 UTC I am sure that your button with "User panel" is the first button with an em_command in your .BAR file and that your button with "Settings" is the 4th button with an em_command in your .BAR file.
Yes, sure. Line numbers starting from 10000 correspond to em_command order.

Code: Select all

=WCMD_ENG.INC
;=========== Tooltip for tc em_commands
10000="User panel"
10001="View file under cursor"
10002="Open in Explorer"
10003="Settings"

Code: Select all

=WCMD_RUS.INC
;=========== Подсказка для tc em_commands
10000="Панель пользователя"
10001="Просмотр файла под курсором"
10002="Открыть в Проводнике"
10003="Настройки"
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *sa16 »

petermad wrote: 2024-11-28, 22:08 UTC 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.
Support!
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *nsp »

This should be asked in a suggestion, to have a dedicated overwriting of em_cmd tooltip inside the WCMD_LNG file.
Today, you can out of the box define all the same as a usemcmd.ini inside a wcmd_ENG.ini this will give you language dependent user command. When you add a button with the em_cmd_LNG defined in WCMD_LNG.ini tootips come from it !
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *petermad »

2nsp
This thread has been about finding a way to have the tooltip for already made buttons change when you change language - currently that does not happen.

I have now made a request for this feature: viewtopic.php?p=464860#p464860
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
ghisler(Author)
Site Admin
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

Post by *ghisler(Author) »

I will add reading of the tooltip from the em_command definition when the field is empty in the button definition. This way you can place the command in wcmd_language.lng to get different translations.
Author of Total Commander
https://www.ghisler.com
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *AkulaBig »

ghisler(Author) wrote: 2024-12-03, 08:58 UTC I will add reading of the tooltip from the em_command definition when the field is empty in the button definition. This way you can place the command in wcmd_language.lng to get different translations.
Great!
Is it possible to do something to make STARTMENU multilingual and quick access directories? I'm already using the new icon assignment feature in STARTMENU. But I would like to have the option of a multilingual STARTMENU. And if you make quick access directories multilingual, then TC will become completely multilingual.
Moreover, first of all, I want to localize quick access directories. STARTMENU can be replaced with a simple menu item.
User avatar
ghisler(Author)
Site Admin
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

Post by *ghisler(Author) »

Currently I don't see a way to make STARTMENU multilingual internally. You could work with redirectsection and some environment variable.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *sa16 »

History wrote:03.12.24 Added: Button bar, em_command: Read tooltip from em_command definition if none is set for the button itself (32/64)
Thank you! Works in TC 11.50RC1: for em_commands from wcmd_lng.ini and usercmd.ini.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *petermad »

Yes, thank you for implementing this :-)
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
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *AkulaBig »

The option works great. Thank you.
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *AkulaBig »

A question has arisen. How to write line breaks in a tooltip menu=...? In the button tooltip field it works like this:
"LMB - Restart as administrator|Ctrl+LMB - Restart menu"
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *petermad »

2AkulaBig
Well you can write| as linebreaks in the menu= line and if you selcts a new em_command, then it will be transferred to the Button's "Tooltip" field.

But it is correct that the | characters are not supported as line breaks when the menu= is read directly from the em_command definition as applied in TC 11.50rc1
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
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: The tooltip for the button is not displayed from wcmd_lng.ini

Post by *AkulaBig »

It's the em_command that interests me.
Post Reply