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

OBPIH-5717 Add Haitian to the default supported locale #4058

Merged
merged 3 commits into from
May 29, 2023
Merged

Conversation

awalkowiak
Copy link
Collaborator

No description provided.

@awalkowiak awalkowiak requested a review from jmiranda May 23, 2023 12:11
@@ -3119,6 +3119,7 @@ react.default.italian.label=Italiano
react.default.spanish.label=Español
react.default.portuguese.label=Português
react.default.acoli.label=Acoli
react.default.haitian.label=Haitian
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haitian isn't a language and I want these names to be in the form that would be recognized by the native speaker, so this one should be Kreyòl.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmiranda I aligned it with what is returned by Locale.getDisplayName() here https://github.com/openboxes/openboxes/blob/develop/grails-app/views/common/_footer.gsp#LL28C9-L29C11. Otherwise we would get different labels on gsp and react footers. But if you want to turn it into Kreyòl, then we can change the getDisplayName in the common/_footer.gsp into g:message.

@awalkowiak
Copy link
Collaborator Author

@jmiranda I made some improvements on that one. You can review it.

@jmiranda
Copy link
Member

Sorry I didn't get a chance to review this earlier today but I'm looking at it now on my phone.

There's something with displaying the locale name that I'm not grasping and I think I need to be sitting in front of my laptop to fully understand. So give me until Tuesday before merging.

The case I'm worried about is when a user configures more supported locales in openboxes-config.groovy.

@jmiranda
Copy link
Member

Never mind I see that you're handling that.

@@ -1425,6 +1425,18 @@ localization.enable.label=Enable localization mode
localization.disable.label=Disable localization mode
localization.invalid.custom.message=To enable database storage for custom translations, please add <code>openboxes.locale.custom.enabled = true</code> to your <code>openboxes-config.properties</code> file.
localizations.label=Localizations
# Locales
locale.ach.label=Acoli
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change. I've been misspelling this for months. Could you change it to Acholi.

@jmiranda
Copy link
Member

Once that change is done feel free to dismiss my review and merge the PR.

@awalkowiak awalkowiak merged commit 770c9ff into develop May 29, 2023
3 checks passed
@awalkowiak awalkowiak deleted the OBPIH-5717 branch May 29, 2023 08:45
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

Successfully merging this pull request may close these issues.

None yet

2 participants