• I have tried to find the best practice for translating plugins and keep the language files safe from plugin updates.

    For most plugins it works to put it in wp language directory

    /wp-content/languages/plugins/[pluginname]-se_SV.po
    /wp-content/languages/plugins/[pluginname]-se_SV.mo

    My problem is that this file is overrided by files i the plugin language folder

    /wp-content/plugins/[pluginname]/languages/[pluginname]-se_SV.po
    /wp-content/plugins/[pluginname]/languages/[pluginname]-se_SV.mo

    So, my language file is safe from updates i the wp lang dir. But it is not loaded when the same language file is plugin folder. Is it possible with a functions snippet or anything to change the priority and load…

    /wp-content/languages/plugins/[pluginname]-se_SV.po

    …first??

The topic ‘Plugin Translation Best Pratice’ is closed to new replies.