• Resolved zabavljaev

    (@zabavljaev)


    Hello! There was a need to redo the translation. Used the program Poedit. But the theme and translation are updated quite often. Translation files are not in the theme directory. Is there a way to put corrected files in a child theme?
    In that:
    Previous %s
    Next %s
    The variable %s (post) is not translated.
    Thank!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Brainstorm Force

    (@brainstormforce)

    Hello @zabavljaev!

    Here is an article in our knowledge base that explains how most WordPress themes and plugins are translated these days on GlotPress: https://wpastra.com/docs/how-to-translate/

    However, if you can not use GlotPress: you can use any other program of choice like Poedit as explained in the last paragraph of the same article:

    https://wpastra.com/docs/how-to-translate/#need-to-add-translation-in-your-project-immediately-

    I hope this helps! Please feel free to get in touch through the contact form on our website for further help.

    Thread Starter zabavljaev

    (@zabavljaev)

    Hello! I can’t change the translation in GlotPress: translation is good there. I had to change a few words in accordance with the features of the site. I used Poedit, but with the update everything returns. In addition, the combinations “Previous %s” and “Next %s” do not translate the value “%s” if I translate the word “Single Post” using Poedit. Probably, the word Post (Single Post) is not in your files.

    Thread Starter zabavljaev

    (@zabavljaev)

    I did this with jquery, but this is not the best way:

    var replaced = $('.nav-previous').html().replace('Запись', 'Сказка');
      $('.nav-previous').html(replaced);

    or

    $(".nav-previous, .nav-next").each(function() {
        var text = $(this).html();
        text = text.replace("Запись", "Сказка");
        $(this).html(text);

    Can you please tell me if there is another way?

    • This reply was modified 5 years, 7 months ago by zabavljaev.

    Hello @zabavljaev,

    Can you give me an example page where I can check this? maybe with that, I can suggest a good solution over using JS for this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate’ is closed to new replies.