• Resolved fatbones

    (@fatbones)


    Hi,
    I’m having some problems with wpLingua’s translation system, since the resulting post for all text fragments that are generated by having bold or italic text before or after them , the spaces between these fragments are removed. When editing these translated fragments, I manually enter the missing spaces between words but wpLingua automatically removes them again, restricting my ability to view the final text correctly.

    I need to know how to get the spaces I add to the translated fragment to be taken into account by the wpLingua compiler.

    Thanks.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Hello,

    I looked at the page you shared. The missing spaces I spotted are present when character strings are separated by commas in the original text, but not in the translated text.

    It is normal for wpLingua not to put spaces between these strings, because if they were translated with commas, then they should not be separated by spaces.

    If you want to force the addition of a space, you can add the following shortcode to your original text:

    [wplng_only lang="en"] [/wplng_only]

    This will add a space that is only visible on English pages.

    Please let me know if this has solved your problem.
    Best regards,

    Thread Starter fatbones

    (@fatbones)

    Hi,
    Yes, it worked. Thanks so much!
    Now I have another question: I would like to remove some commas in the English translated version of the original text since they are not used after some words or in the context of the whole sentence. Is there any special setting or shortcode as well to indicate wpLingua not to include those commas into the translation?

    Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Hello,

    I’m happy that it worked.

    If I understand your question correctly, I suppose you can use the shortcode in reverse:

    [wplng_only lang="es"],[/wplng_only]

    But the best solution in this case might be to use the full translation via shortcode:

    [wplng_only lang="en"]Your content in English[/wplng_only][wplng_only lang="es"]Su contenido en español[/wplng_only]

    This solved the problem ?

    Best regards,

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

The topic ‘No spaces after the translation of a sentence fragment’ is closed to new replies.