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

Handle all translatable columns #214

Open
jnm opened this issue Apr 14, 2020 · 2 comments
Open

Handle all translatable columns #214

jnm opened this issue Apr 14, 2020 · 2 comments
Assignees
Labels

Comments

@jnm
Copy link
Member

jnm commented Apr 14, 2020

In addition to

if column_name in ['label', 'hint']:

…we need constraint_message, required_message, and guidance_hint to be recognized even if they don't have a ::language suffix. Check http://xlsform.org/ to make sure we aren't missing any other columns.

The list of columns should be stored in an easy-to-find constant so that it can be kept up-to-date as the XLSForm specification evolves.

@jnm
Copy link
Member Author

jnm commented Apr 14, 2020

Can we get a list of translatable columns from pyxform? (Alex's idea)

@joshuaberetta
Copy link
Member

This seems to be where pyxform handles the various translatable columns — unfortunately not great for integrating into formpack:

https://github.com/XLSForm/pyxform/blob/cf7ba39d4c7214c3ff7f43394fb057622fd21382/pyxform/survey_element.py#L275-L279

@joshuaberetta joshuaberetta self-assigned this Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants