XLSForm / pyxform

A Python package to create XForms for ODK Collect.
BSD 2-Clause "Simplified" License
80 stars 136 forks source link

Warn about mising translations issue 157 #482

Closed KeynesYouDigIt closed 2 years ago

KeynesYouDigIt commented 3 years ago

Closes #157

Why is this the best possible solution? Were any other approaches considered?

This approach ensures that the warning work has been done along side the work that puts in placeholders for missing translations. It is focused on making sure we never re-evaluate the form for missing languages but uses what is already implied in the form build.

What are the regression risks?

Last time I attempted to solve this issue, I assumed the existence of certain pieces of the path string and tried to build warning messages using those pieces. When the warnings function tried to parse paths without what I assumed to be present, it broke. I do not believe this risk is still present, but I do assume things like path and content type are not null in this function. This feels like a safe assumption, so I dont think the risks are great.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No

Before submitting this PR, please make sure you have: