Page 1 of 1

Table names translations in conf.ini

PostPosted: Wed Nov 07, 2012 4:21 pm
by Gwynnbleid1
Hi Steve

Is it possible to translate table names in conf.ini file:

Code: Select all
[_tables]
Cars="Cars"//Samochody for pl

Re: Table names translations in conf.ini

PostPosted: Thu Nov 08, 2012 8:52 am
by shannah
You use the key:
Code: Select all
tables.tablename.label="The Label"

in your language ini files.

e.g. in your lang/pl.ini file you would have:
Code: Select all
tables.Cars.label="Samochody"


Steve

Re: Table names translations in conf.ini

PostPosted: Thu Nov 08, 2012 12:04 pm
by Gwynnbleid1
shannah wrote:You use the key:
Code: Select all
tables.tablename.label="The Label"

in your language ini files.

e.g. in your lang/pl.ini file you would have:
Code: Select all
tables.Cars.label="Samochody"


Steve

Thanks for quick answer ! So can I remove translations from conf.ini ?

Re: Table names translations in conf.ini

PostPosted: Thu Nov 08, 2012 12:09 pm
by shannah
Whatever you have in your conf.ini file will be treated as the default label to be used in the event that it can't find a translation for the label in your language files. You can put whatever you like in there.

Re: Table names translations in conf.ini

PostPosted: Thu Nov 08, 2012 12:16 pm
by Gwynnbleid1
shannah wrote:Whatever you have in your conf.ini file will be treated as the default label to be used in the event that it can't find a translation for the label in your language files. You can put whatever you like in there.

Thanks again !! (This time for ultra fast answer :) ) I search for this info in tutorial and forum and I couldn't find it anywhere. Maybe it is worth to add it ?

Regards !!!
Gwynnbleid1

Re: Table names translations in conf.ini

PostPosted: Thu Nov 08, 2012 3:16 pm
by shannah
Yes. I couldn't find it anywhere either. Had to refer to the source code. Yes. It definitely should be added to the online docs.

Re: Table names translations in conf.ini

PostPosted: Mon Nov 12, 2012 1:37 pm
by Gwynnbleid1
I'm glad that I could provide some input for this great project :)

Re: Table names translations in conf.ini

PostPosted: Tue Nov 13, 2012 9:47 am
by shannah
I have added this to the issue tracker (for documentation requests).

http://bugs.weblite.ca/view.php?id=1176