1.0 beta1: select widget not using vocabulary

Archived from the Xataface Users forum.

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.


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.


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.


shannah — Tue Apr 08, 2008 7:55 am

I have added this to the issue tracker:

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