• Resolved whymatt

    (@whymatt)


    Hi Tim,
    Thanks for your great work on this very useful plugin.
    It has been working perfectly for me until recently, when my translations suddenly stopped working.

    The only potential problem I can find is the following message under the File Info tab:

    Out of sync with template
    PO file has different source strings to “learts.pot”. Try running Sync before making any changes.

    When I click Sync in the Editor tab everything appears to work, and I get the message:

    OK: Merged from learts.pot. 1 new string added

    However, the Out of sync warning remains, and my translations aren’t appearing.

    Do you have any insight on what’s happening here?
    Thanks.

    The page I need help with: [log in to see the link]

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

    (@timwhitlock)

    If you sync and it still says it’s not synced, then it sounds like a bug in Loco Translate’s file comparison.

    However, this can also happen if the POT has an error such as a duplicate string. That would be the fault of the POT author and would mean that the PO will never be in sync, because Loco Translate won’t copy over the error.

    I will only be able to solve this with access to your POT file and the PO file which is out of sync. Are you able to post download links for these? You can link directly to them on your website if you like, but I can’t guess the paths.

    Thread Starter whymatt

    (@whymatt)

    Plugin Author Tim W

    (@timwhitlock)

    The POT has an error. A duplicate empty string.

    If you remove lines 2299-2302 that should fix it. You should also report it to the author as a bug.

    Thread Starter whymatt

    (@whymatt)

    Thanks again Tim.
    That resolved the sync error.
    I’ll report it to the theme author.
    Unfortunately the translations aren’t working though.
    I know you don’t help with translation problems, but can you recommend a place to get help?

    Plugin Author Tim W

    (@timwhitlock)

    Read the FAQs and narrow down your problem before deciding who best to ask. https://localise.biz/wordpress/plugin/faqs

    Usually the best placed person to ask is the author of the code that displays the translations. If it’s a string in learts.pot then that means the theme author.

    However, as you have a commercial theme you will find it harder to get help. The WordPress community can’t look at their code and their support team may be inclined to send you back here.

    Plugin Author Tim W

    (@timwhitlock)

    On that last point, if you say “I’m using Loco Translate and my text doesn’t show up” they are very likely to send you back here, because this is an easy blame.

    You should instead say “the specific string is saved into an MO file and that file is located at X”. It should not matter what editor generated the file.

    Thread Starter whymatt

    (@whymatt)

    Thanks again Tim.

    I’m not sure the fault is with the theme though. Loco translate has been working perfectly on my site since I installed it. I haven’t updated the theme since then, but the translations stopped appearing.

    I asked for help (and I’m willing to pay for it), because the suggestions made in the FAQ’s are incomprehensible to me. I have no idea how to check to see whether the theme is calling the correct function or what a bundle refers to in step 2.

    More specific step-by-step instructions would be very helpful here for non-developers like myself.

    Plugin Author Tim W

    (@timwhitlock)

    I provide the best FAQs I am able to write and have spend hundreds of hours doing so. I’m sorry if you find them too technical, but WordPress localisation is technical. The information has been made as simple as I can make it, but to make it simpler would be to remove its meaning. If someone else would like to write simpler instructions I will happily link to them.

    Specific step-by-step instructions are rarely possible with these issues, because everybody’s steps will be different. I could say “Do X” but then, depending on the result, you may have to do Y, or Z. There are tens of thousands of plugins and themes and infinite ways your system could be set up.

    You say you’re not sure it’s the fault of the theme, but you also admit you don’t know how to check whether theme’s code is correct. This is why open source themes are great, everyone can see the code and the authors can’t hide their mistakes.

    I don’t offer paid support and unless an issue can be pinned to the functions of my plugin, then I can’t help with solving it.

    Thread Starter whymatt

    (@whymatt)

    Thanks for taking the time to reply Tim. I did find your instructions for beginners to be unusually well written, and straightforward to follow.

    I’m just a bit frustrated not to be able to find a solution. I’ll repost here when I find a solution (hoping that I eventually do)!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Out of sync with template’ is closed to new replies.