Change language of page heading breadcrumb at category level

This topic has 10 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler

  • Avatar: samuraischwert
    samuraischwert
    Participant
    March 14, 2017 at 13:21

    Hello,

    I translated the theme using poedit and set language to German. But I can’t translate the breadcrumbs of the category pages saying “ARCHIVE BY CATEGORY “XXXXX”” into German using the po files. How can I do that? In which php file is this text stored?

    Thanks,

    Jan

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 15, 2017 at 10:12

    Hello,

    You can find the text “Archive by Category” in wp-content/themes/legenda/framework/theme-functions.php

    Regards,
    Rose Tyler.

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 26, 2017 at 10:46

    Hello,

    since updating to v3.3 changing the strings in wp-content/themes/legenda/framework/theme-functions.php results in php error messages:

    Warning: Cannot modify header information – headers already sent by (output started at XXXXXX/wp-content/themes/legenda/framework/theme-functions.php:1) in XXXXXX/wp-includes/option.php on line 837

    Warning: Cannot modify header information – headers already sent by (output started at XXXXXX/wp-content/themes/legenda/framework/theme-functions.php:1) in XXXXXX/wp-includes/option.php on line 838

    Do you have any solution how to translate this string now? It’s not part of legenda.pot or the default.po file.

    Best regards,

    samuraischwert

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 26, 2017 at 16:34

    Hello,

    Very likely you just need to synchronize translation files after update to get new strings.
    Try to update your translation .po file as described here http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./ (the section “Updating a .po (and .mo) file”).
    or
    Button Sync (Loco Translate plugin) allows you to synchronize your translation file with updated pot file. It means if we made any changes in template files that may affect transaltion or we added new string for the translation and you updated theme you need to synchronize your translation with updated files. Only after synchronization, you’ll be able to translate new strings or strings that were changed. You may lose only strings that were changed.
    Also, don’t forget to backup all the files before any update.

    Regards

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 31, 2017 at 09:11

    Hey,

    I synchrinized the translation files wih the latest .pot file but the mentioned strings still can’t be found. Neither in the latest legenda.pot nor one of the .po .mo translation files.
    The earlier solution was to change these strings manually (https://www.8theme.com/topic/archive-by-category-translate/) in the theme-functions.php which results in the mentioned errors.
    DO you know any other way how to do this now?

    Best regards,

    samuraischwert

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 31, 2017 at 09:41

    Hello,

    You are right. Please make needed changes in “etheme_breadcrumbs” function of theme-functions.php and provide FTP access in Private Content, so I could check your file and mentioned errors.
    We recommend you to make changes in a child theme.

    Regards

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 31, 2017 at 14:37

    Hey,
    I changed the 2 strings in the “etheme_breadcrumbs” function which resulted in the error i put in the private content field. So switched to the original file again.
    I also added ftp credentials in private field.

    Best regards,

    samuraischwert

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 31, 2017 at 15:38

    I’ve copied the function in function.php of your child theme and changed Archive by category to Archive by category 11. Please check and write needed text.

    Regards

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 31, 2017 at 16:25

    Hello Rose,

    thank you, this solution works!

    Best regards,

    Jan

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 31, 2017 at 16:26

    You’re welcome!

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.