Table names translations in conf.ini

A place for users and developers of the Xataface to discuss and receive support.

Table names translations in conf.ini

Postby 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
Gwynnbleid1
 
Posts: 31
Joined: Thu Sep 20, 2012 3:02 pm

Re: Table names translations in conf.ini

Postby 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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Table names translations in conf.ini

Postby 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 ?
Gwynnbleid1
 
Posts: 31
Joined: Thu Sep 20, 2012 3:02 pm

Re: Table names translations in conf.ini

Postby 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.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Table names translations in conf.ini

Postby 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
Gwynnbleid1
 
Posts: 31
Joined: Thu Sep 20, 2012 3:02 pm

Re: Table names translations in conf.ini

Postby 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.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Table names translations in conf.ini

Postby Gwynnbleid1 » Mon Nov 12, 2012 1:37 pm

I'm glad that I could provide some input for this great project :)
Gwynnbleid1
 
Posts: 31
Joined: Thu Sep 20, 2012 3:02 pm

Re: Table names translations in conf.ini

Postby 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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 30 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved