Wrong language in close confirmation dialogue - TC9.0a (X64)

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Heini
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-24, 11:24 UTC

Wrong language in close confirmation dialogue - TC9.0a (X64)

Post by *Heini »

Language is set to English.

When attempting to close a locked tab, the following dialogue appears:

[Title] Total Commander
[Message] This tab is locked! Close anyway?
[Options] "Ja" "Nein" "Abbrechen"

Obviously, the listed options are not in English.

Maybe other confirmation dialogues are affected as well.
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

What language is used by your Windows OS? Is it a German version by chance? If so, it would still be a bug of course, but giving this information could be helpful for Christian...

(I am running Win7 Pro x64 english and the dialog prompts for closing a locked tab appear correctly in English)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Not confirmed for a German OS with TC set to english language
The message and its options are fully english
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Confirmed for a English OS (set to German language) with TC set to English language


- - -

Me think this "[Options]" language depends on set OS Region settings, as TC ask OS resources to display that message.

For me:
Systemgebietsschema / Sprache für Unicode-inkompatible Programme = Deutsch



 
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

With "Windows-display language": German (Austria) enabled under System Control\All System Control Elements\Language\Language Options
and TC 9.0a - 32 bit + 64 bit, Windows 10 Pro (x64) Version 1703 (Build 15063.332) I get the same as User Heini.

Regards
Karl
Heini
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-24, 11:24 UTC

Post by *Heini »

The result seems to depend on the setting of "Display Language" / "Anzeigesprache" in Windows. Windows version is 7 in my case. I obtained the results mentioned in the first post with display language set to German. If I change it to English the dialogue options are displayed in English as well.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Afaik this is a standard MessageBox(->MSDN) where the button text are always determined by the system language.
May be a good idea to switch to MessageBoxEx(->MSDN) which offers an additional parameter for customization:
wLanguageId [in]

Type: WORD

The language for the text displayed in the message box button(s). Specifying a value of zero (0) indicates to display the button text in the default system language. If this parameter is MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), the current language associated with the calling thread is used.

To specify a language other than the current language, use the MAKELANGID macro to create this parameter. For more information, see MAKELANGID.
also it may be a big effort to match the correct Language Identifiers(->MSDN) to all possible TC-language selections....

Regards
Holger
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I didn't know about MessageBoxEx!
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Wrong language in close confirmation dialogue - TC9.0a (

Post by *tuska »

Heini wrote:Language is set to English.

When attempting to close a locked tab, the following dialogue appears:

[Title] Total Commander
[Message] This tab is locked! Close anyway?
[Options] "Ja" "Nein" "Abbrechen"

Obviously, the listed options are not in English.

Maybe other confirmation dialogues are affected as well.
With TC 9.10ß1 - 32 bit + 64 bit you get "Yes" "No" "Cancel" in options dialog.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for trying it! Btw, MessageBoxEx did NOT work. Instead, I'm using a Windows hook and set the button texts from the lng file.
Author of Total Commander
https://www.ghisler.com
Post Reply