Page 1 of 1

Req: overwrite single language entrys.

Posted: 2010-04-11, 08:15 UTC
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.

Posted: 2010-04-11, 15:30 UTC
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).

Posted: 2010-04-11, 16:47 UTC
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)

Posted: 2010-04-11, 22:11 UTC
by petermad
base=WCMD_DEU
Looks like a good idea.