TC installation in native language

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

TC installation in native language

Post by *djk »

I still can't understand why TC during installation does not suggests current system language. It always suggests English. Many new programs detects the language and choose it as default.
If there is already installed older version of TC it could check the language and choose the one form .ini file.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If there is already installed older version of TC it could check the language and choose the one form .ini file.
This is actually already done! English is only suggested for new installations.
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

English is only suggested for new installations.
...at least if LanguageIni entry fits your expectations.

Mine reads LanguageIni=WCMD_TCExtMenu_DEU.LNG and is not recognized by installer.

Please check system language settings, not some INI entry.

Icfu
This account is for sale
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, custom lng files cannot currently be detected by the installer...
Author of Total Commander
https://www.ghisler.com
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Well, it doesn't seem to work correctly. :(

I've got a line LanguageIni=wcmd_pol.lng and it still suggests English version during installation.
I use config file located in %USERPROFILE%\wincmd.ini.
It's defined both in HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER proper keys.

I think it could check not only standard language files but all files with names built like this:
anythinghere_pol.lng
or
wcmd_anythinghere_pol.lng

I think more and more TC users use non-standard lang files.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will try to add it for TC7.
Author of Total Commander
https://www.ghisler.com
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Thanks :-)
Any idea why it doesn't work with standard file at my computer?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
MIDIcat
Junior Member
Junior Member
Posts: 9
Joined: 2004-01-25, 21:47 UTC
Location: Poland
Contact:

Post by *MIDIcat »

djk wrote:Thanks :-)
Any idea why it doesn't work with standard file at my computer?
Neither at mine.

Another thing, each time I install a new version I have to select, that I DON'T want to install other language files. It would be nice if the installer could remember that setting.
Cezariusz Marek
https://midicat.net/
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Any idea why it doesn't work with standard file at my computer?
How is your wincmd.ini location defined? The installer can only detect it when it's set in the registry, otherwise it will look in the windows dir. It cannot find the ini if it's set via a command line parameter, or via UseIniInProgramDir line in wincmd.ini.
Author of Total Commander
https://www.ghisler.com
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

As I've written above it's defined both in HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER proper keys:
IniFileName=%USERPROFILE%\wincmd.ini
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's very strange, perhaps it's not found because of the environment variable? I will check that.
Author of Total Commander
https://www.ghisler.com
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

It uses entries from HKEY_CURRENT_USER - I've changed manually InstalDir and it suggested the new path for installation but still wants to install English version.
I've also changed the path in IniFileName replacing variable with full path - still wrong behaviour.

I've tried it at two different computers - twice failed :-(

Maybe it simply doesn't like Polish :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I think that I found the problem. Could you please try the following installer?

https://plugins.ghisler.com/beta/install.exe.zip

Download it, unzip it, then open the public beta 2 installer with ctrl+pagedown and copy the new install.exe inside.

Thanks!
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Now it also works with LanguageIni=WCMD_TCExtMenu_DEU.LNG

Nice!

Icfu
This account is for sale
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2ghisler(Author)
Thanks. It works correctly now :-) It detects Polish.

Unfortunately, there is one problem. I've noticed that there are at least two languages (Czech and Slovak) with two-letters language tags (Wcmd_cz and Wcmd_sk) and it doesn't work for these languages.
Maybe the easiest way would be changing it into eg. _cze and _slk?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply