• Resolved Lex78

    (@lex78)


    Hello! I can’t translate a plugin into Russian. Localization is set up, but more than half of the text remains untranslated. Why could this be happening? I open the file with the .po extension, find the necessary text string, and see that the translation is there. However, the translation doesn’t appear on the website. I’m using the Loco plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    Can you please provide some more details here? What’s the exact file (with path) that you are translating? Could there be a language file in the normal WordPress language files folder for plugins?

    Best wishes,
    Tobias

    Thread Starter Lex78

    (@lex78)

    Greetings, Tobias!

    The file I am translating is called tablepress-ru_RU.po.

    This file is located at: public_html/wp-content/languages/plugins/.

    Everything works correctly on the website, but in the admin panel, the plugin interface is almost not translated into Russian. Is there any way I can fix this?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    can you maybe send me some examples (a screenshot is fine) of strings that are not translated?

    Best wishes,
    Tobias

    Thread Starter Lex78

    (@lex78)

    Could you tell me if I can attach a file here in the chat? I don’t see such a function. Or is it only possible to add a screenshot by providing its URL?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    uploading photos is indeed not possible here, but you could upload the screenshot to a service like imgur.com and then post the link here.

    Best wishes,
    Tobias

    Thread Starter Lex78

    (@lex78)

    Thank you! Could you tell me how I can translate the highlighted areas into Russian? Where can I find this file and the line numbers responsible for translating the highlighted areas?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, I see. So, these strings are translated in JavaScript, using the normal WordPress JavaScript translation API. They should still be in the *.po file, but they will then not be in the *.mo file, but in some *.json files with “strange” names. If this is not working, I can only suggest to check with the Loco Translate team on this.

    Now, instead of using Loco Translate, it might actually be better and easier to use WordPress’ own translation system at https://translate.wordpress.org/projects/wp-plugins/tablepress/stable/ru/default/.

    You will then get the correct translations automatically, and everybody else who uses Russian as the language for their site will also benefit from these translations 🙂

    Best wishes,
    Tobias

    Thread Starter Lex78

    (@lex78)

    Oh, I found these files. There are so many of them. I don’t even know which one contains the text I need.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, those are the files. Each one is for a different screen. But you should not really need to handle with the individual JSON files! If you translate the *.po file, your translations plugin should be able to create these JSON files again.

    But as I said: Maybe the translation on wordpress.org is more reliable for this, and it will ensure that your translation is also validated.

    Best wishes,
    Tobias

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

The topic ‘Help with translation setup, please.’ is closed to new replies.