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

Working with locales #126

Open
Balex70 opened this issue Jan 3, 2018 · 2 comments
Open

Working with locales #126

Balex70 opened this issue Jan 3, 2018 · 2 comments

Comments

@Balex70
Copy link

Balex70 commented Jan 3, 2018

Hi guys,
Nice work from you!
But I have an issue. I can't figure out how to work with locales. I see broken characters in FE even after locales have been generated. So I have my locale uk_UA.utf-8 but months renders with broken characters!

Can someone help me?
Thanks

@dsifford
Copy link
Collaborator

dsifford commented Jan 3, 2018

Hi there.

Not sure this project is going to be the best bet for this since we really don't have anything to do with the loading and rendering of i18n strings.

Does this only happen when using this docker service?

A quick check to https://translate.wordpress.org/ is showing that there is not locale named uk_UA that exists in wordpress. Could that be the issue? Maybe try setting your locale to just uk?

@Balex70
Copy link
Author

Balex70 commented Jan 6, 2018

Hi,
Thanks for your reply! Yes, I have figured out how to solve that. There were two problems:

  1. First of all there were no locales when you start wordpress docker container. It can be easily fixed with this command (sudo docker exec -it <wordpress_docker_container> /bin/bash -c "apt-get update && apt-get install -y locales locales-all") . It will generate all locales. But it would be great if we have it from the start, after docker container is first run (locales will remain in volumes, but sometimes volumes need to be removed and all locales needs to be regenerated again :( )
  2. Another one, looks like apt-get install -y locales locales-all generate locales correctly, bit for Ukraine it generate locales: uk_UA.utf-8 and in wordpress we have just "uk". So I had to fix that in Polylang plugin (change uk to uk_UA).

After that locales shows correctly in FE.
Thanks

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

No branches or pull requests

2 participants