1.0 beta1: select widget not using vocabulary

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

1.0 beta1: select widget not using vocabulary

Postby ststoddard » Mon Mar 24, 2008 10:42 am

I have some variables that are coded as enum('x','y','z') in the database.

My application is intended to be viewed in Spanish, however, so I used vocabularies to translate the values specified in enum to Spanish. This worked in the previous version. Now the vocabulary is ignored if enum is specified, so everything is in English, which is confusing my users.

I figure my only work-around at the moment is to eliminate all my enum() variables and use the valuelists.ini files.
S. T. Stoddard
ststoddard
 
Posts: 56
Joined: Mon Nov 05, 2007 4:10 pm
Location: Davis, CA

Postby shannah » Fri Mar 28, 2008 8:07 pm

Can you describe specifically how you had the fields set up so that it worked. E.g. the relevant valuelists.ini and fields.ini settings so I can set up a similar test to fix this.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby ststoddard » Mon Mar 31, 2008 4:17 pm

Here is an exemplary value-list, values on the left are specified in the database as enum options:


Code: Select all
[freq]
NA      =   NA
DAILY   =   diario
OTHERDAY =   interdiario
2-3DAYS   =   cada2-3
WEEKLY    =   semanal
BIWEEKLY =  quincenal
MONTHLY   =   mensual
SOMETIMES = a veces
WATERTABLE = filtracion
DRIP    =   gotero
UNPREDICTABLE = impredecible


Now my fields.ini for this valuelist:

Code: Select all
[fill_freq]
widget:label = Cada cuanto?
widget:type = select
vocabulary = freq
Default = DAILY


In the form I only see the english. If, however, I switch to a checkbox group, the spanish labels display.
S. T. Stoddard
ststoddard
 
Posts: 56
Joined: Mon Nov 05, 2007 4:10 pm
Location: Davis, CA

Postby shannah » Tue Apr 08, 2008 7:55 am

I have added this to the issue tracker:
http://bugs.weblite.ca/view.php?id=127
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 14 guests

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