Exporting .mo files
-
GlotPress looks very promising. But due to lack of detailed docs learning to use it is a struggle. Here’s what I can’t understand.
I’m developing a site, installed GlotPress plugin, configured, it works. I’ve generated .POT file for my theme and imported it to GlotPress. Everything is fine with that.
However, there’s 2 crucial actions – importing (updating strings from .POT or sources) and exporting. I’ve seen this reply which states that we can’t import it automatically. Ok, I can live with that. But what about exporting? Currenty I found only an option to export .MO file, download it to my computer and manually upload to the server (theme folder) which is damn lot of manual work (and unacceptable for a non-techie client).
Is it really limited to only manually updating translations or am I missing smth?
If not, are there any hooks or interfaces I can use to develop my own routine? My reasoning and goals are:
– The plugin is installed on the site, it shares the same filesystem and WP install root
– There’s only one translator user, who is a site admin as well
– A manual .POT update from sources, manual .POT import to GlotPress, manual .MO export followed by manual .MO upload isn’t smth client will be happy withTechnically, maybe it’s not the best idea to allow GlotPress to write directly to /wp-themes/theme-name/languages/xx_XX.mo, but smth like export to wp-content/uploads/gp-temp from GlotPress and then importing that file from theme settings page would be nice. Just to get rid of that “download – upload – edit – download – upload” process.
- The topic ‘Exporting .mo files’ is closed to new replies.