Default language not working

115 views
Skip to first unread message

András Szabadfalvi

unread,
Mar 2, 2021, 3:05:59 PM3/2/21
to enketo-users

(on ONA's Enketo installation at least) "settings" >> "default_language" = "Nameoflanguage" is not working. In ODK Collect it is working fine.
It seems that by default (i.e. when opening it) the webform is always in English.
Another issue: some webform messages (like save the form as draft or submit) and some widget labels (e.g. geopoint widget labels: accuracy, altitude) use the mobile or desktop browser's language settings(?) Basis of suspicion: when filling in a bilingual (Hungarian and English) form the above texts appeared in Russian in Cyrillic (!?)

Martijn van de Rijdt

unread,
Mar 2, 2021, 3:40:42 PM3/2/21
to enketo...@googlegroups.com
Hi András,

Since Enketo introduced a feature to sync UI and form language, the default form language defined in the form may not do what you expect. 

These are the scenarios that we have designed for after careful deliberation: https://docs.google.com/spreadsheets/d/1CigMLAQewcXi-OJJHi_JQQ-fJXOam99livM0oYrtbkk/edit?usp=sharing

If any of these scenarios do not work as described, please let us know. If they don't meet your requirements, I apologize. 

Cheers,
Martijn

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/enketo-users/d8116d4a-bc98-4e73-9b7f-2247013a11f0n%40googlegroups.com.


--
Pushing data since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog
Message has been deleted

András Szabadfalvi

unread,
Mar 3, 2021, 5:41:13 AM3/3/21
to enketo-users
Okay. Thanks for the quick response - as always.
My default form language is Hungarian (equal to Plains Mwok in the scenario table?) >>
>> but what is with this form behavior:
browser = mobile Chrome on Huawei P40 Lite
browser locale = English
preferred mobile Chrome language = Russian (first preferred language);
default form language = Hungarian;
displayed form language on opening = English;
UI language = Russian (Cyrillic). (?)

Also: now I'm overloaded with work but a bit later is it possible to translate the UI into Hungarian? I can do that.

Martijn van de Rijdt

unread,
Mar 4, 2021, 4:13:35 PM3/4/21
to enketo-users
Hungarian translation would be very welcome! Once you are ready please add yourself as a translator here: https://www.transifex.com/enketo/enketo-express/dashboard/

I would think browser preferred language overrides the locale of the OS and therefore English is in this case ignored except as a fallback language.

Assuming your form doesn't have a Russian translation, I think it should show Hungarian as the form language and Russian as the UI language (since we don't have a Hungarian UI translation).

Please feel free to send me your form, and I can have a look at why Hungarian isn't shown as the default form language. I suspect there is an issue in the form definition (but maybe that's just wishful thinking).

András Szabadfalvi

unread,
Mar 6, 2021, 12:33:45 PM3/6/21
to enketo-users
#1 Hungarian  translation: Okay, i'll do that.
#2 The oddly behaved form is attached.
"EarlyButterflies.xlsx" = the XLSForm uploaded to ONA;
"EarlyButterflies.xml" = the uploaded, converted and active XMLForm downloaded from ONA.
Thanks,
EarlyButterflies.xlsx
early_butterflies.xml

Martijn van de Rijdt

unread,
Mar 8, 2021, 4:09:12 PM3/8/21
to enketo-users
Thank you!

I haven't been able to reproduce it yet. To rule out any issue specific to the version of Enketo that Ona is running, can you please check if you experience the same behavior on this link:  https://enke.to/XBeyfTGj (This server runs the latest version of Enketo).

If I set my Chrome language to Russian, to mimic your scenario, I see this upon load:

Screen Shot 2021-03-08 at 2.06.00 PM.png

András Szabadfalvi

unread,
Mar 10, 2021, 8:06:22 AM3/10/21
to enketo-users
That's odd. Now I can't reproduce it either. I've added a Serbian translation to the former bilingual form so it's trilingual now but no other changes have been made.
The phone language is Hungarian.
In google settings the language options (preferred languages) are: 1. Russian 2. Hungarian 3. English (US).
Anyway, whatever caused it it's gone now.
Thanks for your time.screenshot_browserlanguagesettings.jpg

Martijn van de Rijdt

unread,
Mar 10, 2021, 11:06:12 AM3/10/21
to enketo-users
Ah, that's mysterious, because I think Ona's Enketo version is still the same. Anyway, I don't mind if problems resolve themselves. :) Thanks for checking and reporting.
Reply all
Reply to author
Forward
0 new messages