WordPress.org

Ready to get started?Download WordPress

Forums

Loco Translate
[resolved] Feature Request: Let user decide where to save po/mo files (5 posts)

  1. podpirate
    Member
    Posted 3 months ago #

    As a plugin or theme developer I love to have my po/mo files living inside my packages language directory, so I can add it to my next plugin release.

    As a blog admin, who simply wants to localize a WP installation or maybe adapt some wording to his individual requirements, I would rather prefer my translations to be stored in WP_LANGUAGE_DIR, so they don't get zapped by a plugin update.

    An option like "save in package dir" vs. "save in WordPress language dir" would be helpful.

    Thanks, still a great work!

    https://wordpress.org/plugins/loco-translate/

  2. timwhitlock
    Member
    Plugin Author

    Posted 3 months ago #

    Thanks. I'll give it some thought.

    For the record, Loco will attempt to save files in the same place as existing files, so if you put your POT file or other PO files in a particular location new files should follow suit.

    If there are no existing files, Loco will choose a writable directory over an unwritable one.

  3. timwhitlock
    Member
    Plugin Author

    Posted 3 months ago #

    The current development release now offers a choice of package vs global language directories when adding new files, but only when both locations are writable. If only one location is writable it will be automatically used. If neither location is writable the best match with existing files will be used automatically.

    Feel free to feed back. It'll go into v1.4.5 when ready to publish.

  4. podpirate
    Member
    Posted 3 months ago #

    The folder selection is pretty perfect, Thanks so far :)

    On the packages screen I get a fatal error on my local WP install:
    Screenshot: http://pasteboard.co/2EitUP3.png
    - wp-content is owned by webserver
    - no other plugins running
    - twentyfourteen theme

    Fatal error: Call to undefined method LocoPluginPackage::get_parent() in /www/vhosts/wordpress-stable.local/wp-content/plugins/loco-translate/lib/loco-packages.php on line 444
  5. timwhitlock
    Member
    Plugin Author

    Posted 3 months ago #

    Thanks for this. I spotted this bug yesterday and just uploaded a new dev version to SVN along with some other changes.

    I'll probably be releasing 1.4.5 today

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.