WordPress.org

Ready to get started?Download WordPress

Ideas

a general folder for costum translations for plugins

  1. Kniebremser
    Member

    Why:
    - If the language file in a plugin adapts to your needs, this is gone after a plugin update
    - So then every time via ftp upload them again manually--> that's awkward

    My idea:
    In WordPress Creating wp-content-> languages-> a folder "costum" where you can store its own language files
    and in WordPress install a function that will load language file, rather than the plugins-> languages folder.

    Posted: 3 months ago #
  2. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    That's been implemented for almost two years now. Make wp-content/languages/themes and so on :) put the files there. It works perfectly.

    Posted: 3 months ago #
  3. Kniebremser
    Member

    This only works when I'm in the Child Theme in the function.php for each plugin writing this:
    load_plugin_textdomain ('event-Organiser', false, '../.. /languages​​');
    This also does not work with any plugin.
    In the WP-reference http://codex.wordpress.org/Function_Reference/load_plugin_textdomain nothing is written to it.
    It would be better wordpress first looks in this folder. Without the Child Theme.
    Since many of translation are for back-end and front-end. With a theme change, these are also gone for.

    Posted: 3 months ago #
  4. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    Read http://ottopress.com/2013/language-packs-101-prepwork/

    it works. I just tested it.

    /wp-content/languages/themes/slug-locale.mo/po

    where slug is the plugin or theme’s slug, and the locale is the relevant locale information about the language (like “en_US” for example).

    So if the theme slug is child-theme then you would have child-theme-EN_gb.po and so on

    Posted: 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    0 Votes
  • Status

    This idea has been implemented