Support » Plugin: Name Directory » Mismatching placeholder type; check against source text formatting.

  • Resolved anderskim

    (@anderskim)


    hi.jeroen. It is the latest version of loco, and when I translate it in php7.4, an error like the title occurs. I am attaching the part where the error occurs.

    1. There is currently %d %s in this directory containing the search term %s.
    2. There is currently %d %s in this directory beginning with the letter %s.
    3. There are currently %d %s in this directory containing the search term %s.
    4. There are currently %d %s in this directory beginning with the letter %s.
    5. There are %d names in this directory containing the search term %s.
    6. There are %d %s in this directory containing the search term %s.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author jeroenpeters1986

    (@jeroenpeters1986)

    Hi @anderskim,

    I am currently not familiair with Loco Translate. It seems to work fine on WordPress translate. Do you have any more details, screenshots etc?

    Kind regards,

    Jeroen Peters

    Thread Starter anderskim

    (@anderskim)

    I share a screenshot of the location of the translation error called by Loco to my Google Drive.

    https://drive.google.com/file/d/1igfhFuCvM2HaP-0viXrqiZmWo4EgSOCx/view?usp=sharing

    Plugin Author jeroenpeters1986

    (@jeroenpeters1986)

    Hi @anderskim,

    my source code is fine, I double checked it, also against your screenshot.

    What I think PO Edit is telling you, is that you are making it a different sorting.

    In the example you are sharing, these are the placeholders: %d %s %s
    What you are doing in your translation is changing the order, you are using %s %d %s
    I think Loco translate is warning you about that. What does happen when you change the order back?

    Kind regards,

    Jeroen Peters

    Thread Starter anderskim

    (@anderskim)

    Maybe because of the language, the sentences are awkward, but because I change the order, the error message doesn’t appear anymore. Thank you.

    Plugin Author jeroenpeters1986

    (@jeroenpeters1986)

    Yes, that is true. The order might be awkward, this is a small shortcoming of the current translations way. You can also contribute to the translations here if you like, then the language will be bundled.
    Glad that it works for you!

    Kind regards,

    Jeroen Peters

    PS: if you like the plugin would you like to write a review?

    Thread Starter anderskim

    (@anderskim)

    yes. I already gave it 5 stars. 🙂

    Plugin Author jeroenpeters1986

    (@jeroenpeters1986)

    Thank you very much! i wish you all the best with your site

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.