Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #988354
    Kiljan
    Participant

    X version 4.4.2
    Wordpress Version 4.5.2
    Stack: Integrity
    Child theme: YES

    Hi. I have translated all the parts I need to a .po and a .mo file.
    But there are at least three words that I havnt been able to translate

    “Reply” = “Svara
    “Submit” = “Skicka”

    I would like to translate those word and also send e request for a future update, that they be somehow re-coded so that the translation I do to the .po file also translates these words (for future convenience).

    and the third one I already had a trick for translating.
    Its the “Search” in the navbar search when in mobile.

    Here under is a trick for that:

    jQuery(document).ready(function($){
    	$('.x-btn-navbar-search span span').html("SÖK");
    });

    I have searched the forum, but the posts that show similar are perhaps old because its not working.

    #988718
    Friech
    Moderator

    Hi There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Cheers!

    #989417
    Kiljan
    Participant
    This reply has been marked as private.
    #989438
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> JavaScript :

    jQuery(".comment-reply-link").html("custom text");

    Thanks.

    #989796
    Kiljan
    Participant

    Thanks.
    Just to conclude this topic, should that text be effected by the .po file?
    Im just interested in knowing.

    If not, is it not possible to write the code so that all visible words are “translatable”, I see that many other have posted similar topics.

    #990287
    Rahul
    Moderator

    Hey there,

    No, you can not just write the code to translate the words but it takes inputs from the .po file which you have used to translate the other words.

    Thanks

    #1034547
    Kiljan
    Participant

    Hi, this stopped working after the last update.

    This is what I have in the custom javascript area:

    jQuery(document).ready(function($){
    	$('.x-btn-navbar-search span span').html("SÖK");
    });
    jQuery(".comment-reply-link").html("Svara");

    Plus, I´ve realised that the word “x amount of comments” before the articles on the blog, has not been translated either.

    Login credentials above are still correct.
    All help is appreciated.

    #1035145
    Rue Nel
    Moderator

    Hello There,

    In the latest release update, there are keywords that has been added to the pot file. You may need to update your .po and .mo files. To know how you can update it, please check out this topic here: https://wordpress.org/support/topic/poedit-how-to-update-pot-and-mo-po-files

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-988354 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>