Page 1 of 1

missed something - relationshIps interface translation

PostPosted: Tue Sep 27, 2011 11:55 am
by jonbfl
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)

Re: missed something - relationshIps interface translation

PostPosted: Tue Sep 27, 2011 12:01 pm
by shannah
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.

Re: missed something - relationshIps interface translation

PostPosted: Tue Sep 27, 2011 12:35 pm
by jonbfl
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)