missed something - relationshIps interface translation

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

missed something - relationshIps interface translation

Postby jonbfl » Tue Sep 27, 2011 11:55 am

Hi all -

In my test application, I have multiple many-to-many Join Tables and relationships.ini entries to support them. Work great!

Today I started on the task of fixing the Navigation Menu and the Tabs to handle multiple languages. To make it clearer for me, I made my 'new' labels in UPPERCASE -

I have one piece that is eluding me - the Tab Label for the relationships -

Image


The syntax I used was:
tables.cases.relationships.victims.label = "VICTIMS"
tables.cases.relationships.victims.description = "VICTIMS"

Those entries 'fixed' the Navigation Menu and the 'hover' description that now shows "VICTIMS" on mouseover. But, as you can see, the tab label for the relationship still shows 'victims' in lower case (which I believe is defaulting to something defaulted from tablename) its not translated into my second language either. I have a full set of table and fieldnames in both languages (well, maybe - I didn't translate the join tables)

I also 'tried'
tables.cases.relationships.victims.widget.label = "VICTIMS"

I may have just solved it - it may be parsing the JoinTables. Inquiring minds need to find out. Nope - not at least as I understand it. :?

here is the URL that query (tab) generates -
http://localhost/alpha/index.php?-table ... ip=victims

This was the Forum post I used as a guide:

viewtopic.php?f=4&t=5104&start=0


Thanks again -
8)
jonbfl
 
Posts: 66
Joined: Thu Jul 28, 2011 8:20 pm

Re: missed something - relationshIps interface translation

Postby shannah » Tue Sep 27, 2011 12:01 pm

That is a CSS rule that changes them to lower case. If you look through the plone.css file and search for "text-transform" you'll find a number of rules for text-transform: lowercase; If override these in your own CSS file you can make things the way you want.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: missed something - relationshIps interface translation

Postby jonbfl » Tue Sep 27, 2011 12:35 pm

Thanks for the prompt reply Steve, I can now stop pulling out my remaining few long grey hairs! :shock:

I have to say its coming along very nicely...

Thanks for such an excellent toolset -

:D

Edited - works perfectly - El último aplicación funciona perfectamente. :D

next to tackle => permissions for admin functions 8)
jonbfl
 
Posts: 66
Joined: Thu Jul 28, 2011 8:20 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

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