-
Notifications
You must be signed in to change notification settings - Fork 6
Add translation compilation to build process #147
Comments
I'm not even sure if we need any of those files, since the translation is a community effort: https://translate.wordpress.org/projects/wp-plugins/footnotes/ |
To me, it seems smarter to remove .mo files from tree and generate them at relaese time. So we can edit .po files even without havig gettetxt / poedit to generate .mo files. That said, the original translations are using those .po/.mo files and as we can see in wordpress.com that a lot of translations are missing, even if there are files; there should probably be a bridge between .po/.mo & WP dev tools, but I have no experience on what is the 'official' way to handle plugin i18n |
I recently uploaded all the .mo files to the WP translation base. It could only match 29 or so translated strings per language. IMO it's worth checking into the mechanisms as it looks like i18n can be done using https://translate.wordpress.org/projects/wp-plugins/footnotes/ with up-to-date translation strings. Since the naming convention in the plugin changed recently there should also be a way to adapt the existing translation files and re-upload them producing a higher match rate. |
OK, I'll check that within 48h and KYIT. |
On the same topic, is the |
I honestly believe that the world has moved on from needing this file. It can also easily be restored if someone complains after it's gone. |
Something else I've just noticed during #152 — am I correct in thinking that the The function calls the private class method |
For i18n, I added a few translations, I think I got the main principles. It is not clear to me if you can set a single line for de_CH, de_DE & de_AT for example. |
I requested all of these with the Wordpress team: |
OK, I suppose it takes a little time. Page I'll check later. |
I've looked a bit more into it for #190 - WPML has a large installbase and we evidently have users that use it, so @markcheret if you wanted to develop our WPML compatibility a bit, you could look into their Go Global scheme here - they publicise compatible Plugins on their site, which might be nice |
Speaking from a 4 official languages country, I can say that more than 2/3 of our WP customers are using it. |
I've noticed that we are currently tracking both
.po(t)
and.mo
files within thesrc/languages/
dir. in version control.I'm not familiar with WordPress translation, but from what I can gather the
.mo
files are compiled versions of the.po
files. @lolzim would it be better to remove the.mo
files from version control and to add a compilation step to the build process, or do the.mo
files need to be present even in the development environment?The text was updated successfully, but these errors were encountered: