-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Make export constants consistent with FormPack - fix #2037
Conversation
…stead of 'xml' to backend when choosing 'XML values and headers'
used for labels. Leave unset, or use `_default` or `None`, for | ||
labels in the default language | ||
* `lang`: optional; It can be: | ||
- unset (`None`) or `formpack.constants.UNTRANSLATED` for labels in the default language (default: `None`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I try to keep lines under 80 characters for readability. It can certainly be a pain sometimes.
Is there a docstring parser you like to use that doesn't handle line breaks within these parameter descriptions well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jnm , I kept the default of my IDE which is 120 characters instead of 80. Nowadays, screen resolutions are wider than before. 80 is really narrow, but if you want me to go with 80. I will.
// Backend also changes `_xml` to `FormPack.constant.UNSPECIFIED_TRANSLATION` | ||
// `FormPack.constant.UNSPECIFIED_TRANSLATION` constant equals `False`. | ||
else if (lang === '_xml' || lang === false) { | ||
langDescription = t('XML values and headers'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the suggestion? Only XML
in caps?
I've seen your change. Sounds good.
Also improves handling of formpack `UNTRANSLATED` and `UNSPECIFIED_TRANSLATION` constants; closes #2037
Fixed #2030.