Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for translating or_other? #218

Closed
yanokwa opened this issue Jul 23, 2018 · 5 comments
Closed

Add support for translating or_other? #218

yanokwa opened this issue Jul 23, 2018 · 5 comments

Comments

@yanokwa
Copy link
Contributor

yanokwa commented Jul 23, 2018

As noted at https://forum.opendatakit.org/t/translation-for-or-other/14161, if you have an or_other question, there's no way to localize the "other" text.

If there isn't an easy way to do this (I can't think of it), maybe the solution here is to describe this limitation at https://github.com/XLSForm/xlsform.github.io,

@ukanga
Copy link
Contributor

ukanga commented Nov 29, 2018

I don't this is supported yet in XLSForm. I will agree with you on making an update of the limitation.

I propose we add additional columns into the xlsform, label_other and label_other_specify or something simpler other and other_specify.

survey
type name label::English label::Italian other::English other::Italian specify_other::English specify_other::Italian
select_multiple mylist or_other rank Rank Rango Other Altro Specify other Specificare altro
choices
list_name name label::English label::Italian
mylist a A AA
mylist b B BB

@MartijnR
Copy link
Contributor

I wonder if this is still easier than letting users create a separate 'other' question manually if translations are required (and providing an example for this on xlsform.gihub.io).

@yanokwa
Copy link
Contributor Author

yanokwa commented Nov 29, 2018

I hesitate at adding more columns. Truth be told, I've never loved the or_other syntax because it ends up being restrictive in other ways (e.g., maybe you want to use a number as a value instead of 'other'). Would it be crazy to just point out this limitation and maybe move to deprecate or_other?

@craigappl
Copy link

Notes from breakout session:

Decision

  1. We do not need to do this. We will close this issue.
  2. This needs to be an issue in the xform spec.

@lognaturel
Copy link
Contributor

lognaturel commented Oct 16, 2019

The new goal is to properly support open selects as defined by W3C XForms. This would let clients deal with how to display the prompt for user-specified content, including possibly translations (but it's possible there won't be any text).

Forum post: https://forum.opendatakit.org/t/allow-custom-choices-for-selects-that-get-saved-to-the-same-field/22788

ODK XForms spec issue: getodk/xforms-spec#249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants