a general folder for costum translations for plugins

  1. Kniebremser

    - 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: 4 years ago #
  2. Ipstenu (Mika Epstein)

    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: 4 years ago #
  3. Kniebremser

    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: 4 years ago #
  4. Ipstenu (Mika Epstein)

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

    it works. I just tested it.


    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: 4 years ago #

RSS feed for this topic


You must log in to post.

  • Rating

    0 Votes
  • Status

    This idea has been implemented