CHM Help for dark mode

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help for dark mode

Post by *DrShark »

history950a.txt wrote:12.02.20 Added: Dark mode: Open help file named totalcmddark.chm if it exists in the same location as totalcmd.chm (32/64)
Thanks for adding this! It works (also for localized dark help in LANGUAGE subfolder of %COMMANDER_PATH% with WCMD_<lng>dark.CHM names), but there is a minor issue: if to open the help in dark mode before installing the dark help, light chm will be opened, and if the put the totalcmddark.chm into %COMMANDER_PATH%, TC will still use light help. To apply dark help for dark mode in such case, a switch of TC itself to light and then back to dark mode, or program restart is required.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: CHM Help for dark mode

Post by *ghisler(Author) »

This happens because when TC detects that there is no totalcmddark.chm, it turns off the lookup for dark mode chm until the user switches again to dark mode.
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: CHM Help for dark mode

Post by *tuska »

There is also this case:

If both the file TOTALCMD.CHM and totalcmdDark.chm are present in %COMMANDER_PATH%, dark mode is switched on
and then the language is changed and switched back, e.g.

Code: Select all

FROM: OPENLANGUAGEFILE WCMD_ENG.LNG
TO:   OPENLANGUAGEFILE WCMD_DEU.LNG
and then the German help is called with F1 (NO dark mode available),
and then switches back to English, the help (F1) in the
English language is also displayed in normal mode (instead of dark mode).

This behaviour only affects TC 9.50a RC1 32-bit.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CHM Help for dark mode

Post by *petermad »

then the language is changed and switched back, e.g.

Code: Select all

Code: Select all

FROM: OPENLANGUAGEFILE WCMD_ENG.LNG
TO:   OPENLANGUAGEFILE WCMD_DEU.LNG
and then the German help is called with F1 (NO dark mode available),
and then switches back to English, the help (F1) in the
English language is also displayed in normal mode (instead of dark mode).

This behaviour only affects TC 9.50a RC1 32-bit.
Confirmed.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: CHM Help for dark mode

Post by *ghisler(Author) »

To have separate help files by language, you need to use
WCMD_DEU.CHM
WCMD_DEUDARK.CHM
in the Language subdirectory. For internal English, use
totalcmd.chm
totalcmddark.chm
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: CHM Help for dark mode

Post by *tuska »

ghisler(Author) wrote: 2020-02-14, 14:42 UTC To have separate help files by language, you need to use
WCMD_DEU.CHM
WCMD_DEUDARK.CHM
in the Language subdirectory. For internal English, use
totalcmd.chm
totalcmddark.chm
Thank you for this info!

Where can we get/download this file --> WCMD_DEUDARK.CHM <-- ?
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: CHM Help for dark mode

Post by *tuska »

In my opinion, the description on this page should have been adapted since TC 9.50a RC1:
https://www.ghisler.ch/wiki/index.php?title=List_of_unreleased_plugins#engdarkchmhelp wrote:To install: replace TOTALCMD.CHM file which comes with Total Commander.
This text should be removed.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CHM Help for dark mode

Post by *petermad »

I have now made a German version of the Dark help.

A preliminary package with both English and German Dark help files can be downloaded here: https://madsenworld.dk/tc-darkhelp/totalcmd950a_darkhelp.zip

The package also includes WCMD_DEU.CHM and WCMD_DEUDARK.CHM (in the English section) - and WCMD_ENG.CHM and WCMD_ENGDARK.CHM (in the Deutch section).

WCMD_ENG.CHM and WCMD_ENGDARK.CHM only works when you use WCMD_ENG.LNG - not with internal English language.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: CHM Help for dark mode

Post by *tuska »

petermad wrote: 2020-02-14, 16:55 UTC I have now made a German version of the Dark help.
Thank you very much for your efforts!
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CHM Help for dark mode

Post by *petermad »

To have separate help files by language, you need to use
WCMD_DEU.CHM
WCMD_DEUDARK.CHM
in the Language subdirectory. For internal English, use
totalcmd.chm
totalcmddark.chm
Just to make it clear:
totalcmd.chm
totalcmddark.chm
has to be located in TC's program directory (not the language directory) and will be used for all languages that does not have WCMD_<lng>CHM and /or WCMD_<lng>DARK.CHM files in the language directory.

Also notice that a WCMD_<lng>DARK.CHM file will not be used, unless there is a corresponding WCMD_<lng>.CHM file present.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: CHM Help for dark mode

Post by *DrShark »

tuska wrote: 2020-02-14, 15:32 UTC In my opinion, the description on this page should have been adapted since TC 9.50a RC1:
https://www.ghisler.ch/wiki/index.php?title=List_of_unreleased_plugins#engdarkchmhelp wrote:To install: replace TOTALCMD.CHM file which comes with Total Commander.
This text should be removed.
I updated List_of_unreleased_plugins#darkchmhelp. Maybe in future there will be a sense for adding a separate wiki page for dark style help files...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: CHM Help for dark mode

Post by *tuska »

DrShark wrote: 2020-02-14, 18:53 UTC
tuska wrote: 2020-02-14, 15:32 UTC In my opinion, the description on this page should have been adapted since TC 9.50a RC1:
https://www.ghisler.ch/wiki/index.php?title=List_of_unreleased_plugins#engdarkchmhelp wrote:To install: replace TOTALCMD.CHM file which comes with Total Commander.
This text should be removed.
I updated List_of_unreleased_plugins#darkchmhelp. ...
Ahh, I see... :)
Thanks!

2petermad
Since it is available on this official site, I would like to mention/suggest the following:
English, German (for TC 9.50a RC1): direct download --> totalcmd950a_darkhelp.zip

Code: Select all

[Darkhelp][Deutch][language]
             |        |----> Here are currently the files for ENGLISH language and not for German language (Deutsch)
             ∨       ∨
          [Deutsch] [Language]

[Darkhelp][English][LANGUAGE]
                      |-----> Here are currently the files for GERMAN language and not for English language
                      ∨                      
                   [Language]
As mentioned above, the same applies to the "Darkhelp2" folder - please change it accordingly.

Readme.txt
The package also includes:

Code: Select all

Original:    WCMD_DEU.CHM and WCMD_DEUDARK.CHM (in the english section)
Suggestion:  WCMD_ENG.CHM and WCMD_ENGDARK.CHM (in the English section).  <--

Original:    WCMD_ENG.CHM and WCMD_ENGDARK.CHM (in the deutch section).
Suggestion:  WCMD_DEU.CHM and WCMD_DEUDARK.CHM (in the Deutsch section).  <--
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: CHM Help for dark mode

Post by *petermad »

2tuska
The Idea is the if you for instance install the German totalcmd.chm and totalcmdDark.chm in TC's program directory (then being the default help file), then you might need the WCMD_ENG.CHM and WCMD_ENGDARK.CHM in TC's language directory, in case you switch to English (via wcmd_eng.lng).

And vice versa - probably what most people would do: install the English totalcmd.chm and totalcmdDark.chm in TC's program directory and then having WCMD_DEU.CHM and WCMD_DEUDARK.CHM n TC's language directory, in case you switch to/use German.

There is no reason to have the SAME language version both as totalcmd.chm/totalcmdDark.chm and WCMD_<lng>/CHM/WCMD_<lng>DARK.CHM - that would be redundant.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: CHM Help for dark mode

Post by *tuska »

2petermad
Thanks for the explanation of the structure and the files regarding file "totalcmd950a_darkhelp.zip" :!:
Thinking that the English help files are in a parent folder called "Deutsch", I have to get used to it first. :)

In any case, thanks again for your efforts!
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: CHM Help for dark mode

Post by *tuska »

2petermad

Then I have only one request regarding file "totalcmd950a_darkhelp.zip":
Could you occasionally change the name "Deutch" to "Deutsch" or "German"
(Readme.txt: deutsch section / folder names: \Darkhelp\Deutsch\, \Darkhelp2\Deutsch\)?

It is important to me that the name of the language is spelled correctly.
[The name "Deutch" could perhaps be wrongly interpreted as "Dutch" -> The Netherlands].

Thank you in advance for your efforts.
Post Reply