Table names translations in conf.ini

Archived from the Xataface Users forum.

Gwynnbleid1 — Wed Nov 07, 2012 4:21 pm

Hi Steve

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

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

shannah — Thu Nov 08, 2012 8:52 am

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


Gwynnbleid1 — Thu Nov 08, 2012 12:04 pm

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 ?


shannah — Thu Nov 08, 2012 12:09 pm

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.


Gwynnbleid1 — Thu Nov 08, 2012 12:16 pm

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


shannah — Thu Nov 08, 2012 3:16 pm

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.


Gwynnbleid1 — Mon Nov 12, 2012 1:37 pm

I’m glad that I could provide some input for this great project


shannah — Tue Nov 13, 2012 9:47 am

I have added this to the issue tracker (for documentation requests).

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