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

Message Source should interpret messages.properties with no suffix as English #212

Closed
mogoodrich opened this issue Dec 16, 2022 · 3 comments
Assignees
Labels

Comments

@mogoodrich
Copy link
Contributor

mogoodrich commented Dec 16, 2022

In OpenMRS, the convention is for the "default" messages properties files (ie messages.properties) to be in English.

However, the Message Source service in Initializer is set to interpret these files as being in the system default locale.
This is problematic. For example, on a server where the OS default is set to Spanish, the "messages.properties" will be added as Spanish keys, potentially overriding any actual translations provided in "messages_es.properties".

Additionally, since English is, by convention generally the only language there is guaranteed to be a translation for, and because generally we prefer display text in some language rather than raw message code, we should provide English as the final fallback when translating.

mogoodrich added a commit to PIH/openmrs-module-initializer that referenced this issue Dec 16, 2022
@mogoodrich
Copy link
Contributor Author

PR here: #213

@mogoodrich
Copy link
Contributor Author

fyi @mseaton @mks-d

mogoodrich added a commit to PIH/openmrs-module-initializer that referenced this issue Dec 16, 2022
mogoodrich added a commit to PIH/openmrs-module-initializer that referenced this issue Dec 16, 2022
mogoodrich added a commit to PIH/openmrs-module-initializer that referenced this issue Dec 16, 2022
mogoodrich added a commit to PIH/openmrs-module-initializer that referenced this issue Dec 19, 2022
mogoodrich added a commit to PIH/openmrs-module-initializer that referenced this issue Dec 20, 2022
@mks-d mks-d added the bug label Dec 21, 2022
mks-d pushed a commit that referenced this issue Dec 21, 2022
* [#212] Message Source should interpret messages.properties with no suffix as Englis

* [#212] Message Source should interpret messages.properties with no suffix as Englis

* [#212] Message Source should interpret messages.properties with no suffix as Englis

* [#212] Message Source should interpret messages.properties with no suffix as Englis

* [#212] Message Source should interpret messages.properties with no suffix as Englis

* [#212] Message Source should interpret messages.properties with no suffix as Englis
@mks-d
Copy link
Member

mks-d commented Dec 21, 2022

This was merged at e29810d

Thanks so much @mogoodrich!

@mks-d mks-d closed this as completed Dec 21, 2022
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