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
pushed POT file doesn't show in web frontend #400
Comments
@ReneBoehm this one is odd. Let's first look at fixing #401 and then make sure you see data for the demo project. |
That one still exists, even after resolving #401. |
@ReneBoehm did you try with another |
Yes, I've created two projects, each with his own POT file. I've used the following command
|
How did you install mojito wondering if there is something with the version.. can you check the version Else you share the |
I've used the docker image source from here: https://github.com/zuc/docker-mojito, updated to mojito 0.96 and built the full version. Here is one of the POT files. It's for testing purposes right now. The file misses some things (header, msgstr) but works with all the other tools I've tested.
|
Thanks, having the file helped to reproduce! It is something with the file format. Usually,
I haven't dug in the implementation details but Mojito relies on another project called Okapi for the filter and it seems to require What other tool support this format? Is this file generated? |
Ah ok, thanks for the clarification. Didn't use gettext before these tests. The other tools are Weblate and Pootle which both didn't have any problems with the file. |
usually If you're going to write resource file by hand a format like properties file is simpler to work with (pretty much type string as they show with little escaping). If you are starting to internationalize your application (and depending on your constraint) I would not recommend gettext and look for solution like ICU/Message format. Inlining string in the code base comes at a cost also and if you can avoid it, it is better (though some may say it is a matter of taste). Some other L10N best practices is to have unique string id (in gettext can be done with context) and comments for translators and not reference the string only by it is English value. A somewhat complete PO file usually looks like:
Back to Mojito, unless you have a strong need for it and I can look for a solution, I'll close this ticket. Let me know. |
I've create a new repository and pushed an example POT file. The push worked well but the strings don't show up in the frontend.
I even tried to restart the frontend server but that doesn't help. What I'm doing wrong ?
The text was updated successfully, but these errors were encountered: