• Resolved Doobeedoo

    (@doobeedoo)


    Hello,

    I love Loco Translate and use it for all my websites, thank you for this plugin

    On one of my websites, there is a string that I can find in the original language file /wp-content/themes/theretailer/languages/en_US.po

    But I cannot find it in my Loco translation. I clicked “Sync” on both US and FR pages

    What could be the reason ?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tim W

    (@timwhitlock)

    At a guess you haven’t told Loco that en_US.po is the name of the template you want to sync with. Once that’s configured you should be able to Sync from the fr_FR.po edit view.

    See how to configure your bundle:
    https://localise.biz/wordpress/plugin/manual/bundle-config#pot

    en_US.po is not the correct name for a POT file, which is why it doesn’t always pick it up automatically.

    Thread Starter Doobeedoo

    (@doobeedoo)

    Hello Tim,

    Thank you for your answer

    There is no .pot in the theme : The Retailer WordPress https://themeforest.net/item/the-retailer-responsive-wordpress-theme/4287447

    In /wp-content/themes/theretailer/languages there is only en_US.mo and en_US.po

    I contacted them and they dont want to fix it or do anything to make their theme working properly with WordPress …

    So I clicked on “Create template” in Loco and this created theretailer.pot

    I sync the FR

    But the missing strings still do not appear ??

    Plugin Author Tim W

    (@timwhitlock)

    You missed the point of what I was saying. Loco will use en_US.po as if it was the .pot file. You just have to configure it to do that.

    Don’t create your own template if the en_US file is correct. (which you have to assume it is). You can’t guarantee your own template will extract the author’s strings exactly as intended.

    Delete the theretailer.pot you created and configure Loco to use en_US.po as I said previously.

    • This reply was modified 8 years ago by Tim W.
    Thread Starter Doobeedoo

    (@doobeedoo)

    Hello Tim,

    Thank you for your help

    I deleted theretailer.pot I created

    I declared en_US.po as the template, sync the FR translation, and Loco writes :
    “Already up to date with en_US.po”


    But the strings are still missing

    What am I missing ?

    Thread Starter Doobeedoo

    (@doobeedoo)

    Ok I found out, a en_US.po-backup-abcdxxxxxx~ was there, 20 Mo
    And the en_US.po was only 10 Mo

    I deleted en_US.po and renamed the backup to en_US.po, now the strings are here

    Very strange

    Thanks !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘String in .po but not in Loco’ is closed to new replies.