• Resolved headonfire

    (@headonfire)


    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 with

    Technically, 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.

    https://www.ads-software.com/plugins/glotpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Greg Ross

    (@gregross)

    There’s a plugin to help auto import originals (https://www.ads-software.com/plugins/gp-auto-extract/).

    There are lots of hooks and actions you can use to create a plugin to do what you want. Unfortunately the documentation relatively limited.

    GlotPress isn’t designed to translate the current WordPress install, but is targeted at developers who write plugins or themes and need a way to manage their translations (in fact translate.www.ads-software.com runs GlotPress).

    Thread Starter headonfire

    (@headonfire)

    Thank you for the info! Sure, I understand the purpose (and used it couple times for Core translations to my native language). Just thought if it was switched from standalone model to a WP plugin it should be somehow integrated with WP. And the “export to .MO file somewhere in the filesystem” feature seems so obvious to me, kinda has to be built-in.

    Will definitely have a look into the code closer to project finale. Auto-export is a must.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exporting .mo files’ is closed to new replies.