• Resolved Mario

    (@warioneila86)


    Hi,

    I’m using WP 4.7.2 and Loco Translate 2.0.11. The site also uses Magazine theme from Themify.

    It seems there are some problems with the translation files loading order. According to FAQ, it should be:

    1. Custom wp-content/languages/loco/plugins/wdcp-es_ES.mo
    2. System wp-content/languages/plugins/wdcp-es_ES.mo
    3. Author wp-content/themes/comments-plus/languages/wdcp-es_ES.mo

    I have translated some strings of “Comments Plus” plugin (a WPMU DEV plugin) saving the language files into the “Custom” folder. However, the strings are shown in English unless I move the files to either “System” or “Author” folders.

    Is this expected? Should I save language files in “System” folder from now on? I guess this is unsafe because: “Files saved here can be overwritten by WordPress’s own language installer”…

    Thanks in advance,
    Mario.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hola Mario,
    Como veo que estás trabajando con Traducción en Español, te escribo en el mismo idioma.
    Te suiero que leas este suporte de otro Tema relacionado con las traducciones. Espero que te pueda servir:

    Mirar Suporte sobre Loco Translate

    Thread Starter Mario

    (@warioneila86)

    Gracias, exactamente eso es lo que he tenido que hacer para que me coja las traducciones. Pero según el creador del plugin, la ruta “Custom” debería tener prioridad.

    Un saludo.

    Plugin Author Tim W

    (@timwhitlock)

    Hi.
    I Google-translated your posts, but my reply will have to be in English.

    Regarding the advice given in that link. If you know that the global (“system”) location is safe, then use that one as it says.

    I describe this location as unsafe as a precaution (because WordPress can write to it during updates). The system languages folder is used for automatic translation updates. Only you can know whether you have this enabled and whether your theme can receive translation updates. If your theme is a commercial one, you may find this is a non-issue.

    Regarding priority, the custom route will indeed take priority, but will not prevent the normal files from being loaded by the theme. See note on loading order.

    However, not every theme allows Loco Translate to use this location at all. If files saved there are not working then most likely this is due to the theme’s loading process. Possible causes are given in this FAQ: https://localise.biz/wordpress/plugin/faqs/custom-folder

    • This reply was modified 9 years, 3 months ago by Tim W.
    Thread Starter Mario

    (@warioneila86)

    Hi Tim, thanks for your comments. I really appreciate them. I’m using a comercial theme which does not include Spanish language files (I’ve already translated some strings using your plugin). So, I think the best option for now would be to use System folder to store my translation files and backup them before updating themes or plugins affected, just in case.

    Thanks.

    Plugin Author Tim W

    (@timwhitlock)

    Sounds perfect. Marking this as resolved for now. Thanks for posting back.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Incorrect translation files loading order’ is closed to new replies.