I have been testing the output of pyxform, trying to understanding how to "impose" the language I want to use as default. I had the following issue:
- survey and choices sheet with 2 languages (e.g. Portuguese (pt) and Español (es) ),
- default_language set to pt,
- portuguese columns coming first in all sheets.
- still, xml has the Espanol label first and the phone will take it as default language
(of course you can change it from the Menu, but we wanted to have it automatic)
I realized that pyxform chooses as default language the one whose label come first, i.e., if I have a "calculate" type question with a label in Spanish (second language in my survey), but not in Portuguese (first language in the survey) pyxform will set Spanish as default.
My solution for this is to add a "calculate" variable at the beginning, and put a label only in the column corresponding to the default language that I want.
Did anybody experienced a similar issue or observed a similar behavior? Is there a better solution?