• I’m struggling with the translations of a child theme after having changed the path of the po files. In short: the “sync” button is not showing up the new created strings of the child theme. I have to introduce them by hand in pot and po files, and after this, I have to push the sync button to show them up, and then, I have to save it one by one.

    So there are two problems for me now:
    1) new strings are not being detected by Sync button.
    2) (* I’m not sure if this it can be done with your plugin), but I would like to be able to edit directly de po files, and see the results in the front right away, because now I have a lot of new strings and translations to add, and I would prefer to add them by editiing the po files directly. It feels really weird that I have to find and “save” from the plugin panel each term to make it work.

    • This topic was modified 4 years, 6 months ago by Dedalos.
    • This topic was modified 4 years, 6 months ago by Dedalos.
    • This topic was modified 4 years, 6 months ago by Dedalos.
    • This topic was modified 4 years, 6 months ago by Dedalos.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tim W

    (@timwhitlock)

    1) Please read my guide to translating child themes and check you’re doing it correctly. Loco Translate will pick up any new strings if coded in the right way.

    2) I don’t follow your request here. You must save a PO file to disk, then changes to that file will be visible immediately, provided that nothing else is preventing it.

    Thread Starter Dedalos

    (@nosoloroy)

    Thank for your quick reply,

    1) yes, the translated strings and your plugin were doing well with the child theme (I’m using understrap child by the way), the problem of not detecting strings is when I changed the location of the files to “languages/loco/themes” (as you recommend). I already see those docs. Now syncing is not showing up new added strings, using the exact same tag, i.e.: <?php esc_html_e('hero-desktop', 'understrap-child'); ?>.

    2) Probably I didn’t explain it very well, I realized that your plugin is doing the .mo conversion when pressing the save button. and I need to do a bulk conversion of several terms that I would add manually in the po file. So I suppouse I will have to use other tool for that.

    * as temporary solution I revert the location of the paths, and disabled the wordpress autoupdate via wp-config.php file. In that situation “sync” button works for me.

    Plugin Author Tim W

    (@timwhitlock)

    1) The location of your saved translation files has nothing to do with extracting strings from source code. Changing that path cannot stop this from working. I’m guessing there’s a detail you’ve not mentioned.

    2) I still don’t understand this, but adding terms manually to PO files is not how this is supposed to work. The source strings in a PO file are locked to whatever you’re syncing with; ideally a POT file.

    Read about working with templates in the manual.

    If you want to know what you’ve done wrong, I’ll need a lot more detail on exactly what you have done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not syncing after changing po files location in child theme’ is closed to new replies.