Req: overwrite single language entrys.

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Req: overwrite single language entrys.

Post by *Samuel »

Currently I have my custom language file. The only reason is that I want to have the strings 1450 to 1453 like this:

Code: Select all

1450="bytes"
1451="KB"
1452="MB"
1453="GB"
Currently, I need to compare it with every update. (Include new and changed strings)

Wouldn't it be great if TC would automatically load "WCMD_Custom_DEU.LNG" additionally to "WCMD_DEU.LNG" overwriting all entries.

So I would just create the "WCMD_Custom_DEU.LNG" like this:

Code: Select all

Deutsch
codepage=1252
1450="bytes"
1451="KB"
1452="MB"
1453="GB"
And I would never have to bother when I update.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sounds like a good idea! I will add it to my wish list for the next version (sorry, too late for 7.55).
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

That's good idea to use strings of base translated language if non-standard language file is used. BTW, I may suggest additional feature - to add some parameter into LNG file like "codepage=" to control such behaviour. E.g.:

Code: Select all

Deutsch (custom)
codepage=1252
base=WCMD_DEU // this line tells which language file should be used prior to built-in English for absent strings
1450="bytes" 
1451="KB" 
1452="MB" 
1453="GB"
(I think there may be support for more than one level redirection - it will not take additional code but will give additional flexibity if user will be ready to wait for increased load time)
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

base=WCMD_DEU
Looks like a good idea.
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
Post Reply