Change Words, Translation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43055
    blog1
    Participant

    Hi, I would like to find out where I can change words.

    F.e. “Search Results” and “No Posts Found.”
    (-> It’s not possible in the “search.php” or in the “searchform.php”.)

    F.e. “Error 404-Page NOT Found. It seems we can’t find what you’re looking for. This might be because: You have typed the web address incorrectly, or the page you were looking for may have been moved, updated or deleted. Please try the following instead: Check for a mis-typed URL error, then press the refresh button on your browser.”
    (-> It’s not possible in the “404.php”.)

    Thanks for help.

    #43073

    Hi blog1,

    To translate the words into your own language you need to create a .po and .mo file and that file must be added inside the language folder of child theme.

    View more about language translation.
    https://make.wordpress.org/polyglots/handbook/tools/poedit/

    Thank you!

    #44319
    8beast
    Participant

    can you elaborate a little bit more? I did create the po file but do I need to define somewhere in the code to use my let’s say hr_HR instead of ru_RU

    #44324

    Hi 8beast,

    Yes sure. You need to create a .po and .mo file and it should be kept inside the language directory. To work this language goto dashboard -> settings -> general -> site language and choose your language.

    Note: If you create a child theme then while updating to new version your customized code will not be lost. If you directly add in the language directory of parent theme then each and every time while updating to new version all your file will be lost. So you need to add the language file again. So the best way is to create a child theme.

    Thank you!

    #44364
    8beast
    Participant

    thank you got it working 🙂
    I always use child theme no worries ;=)

    #44382

    That’s great 8beast

    Thank you!

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