Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7441
    [email protected]
    Participant

    Hi,

    I’m a beginner in WP, I hope I won’t ask silly questions ! My web site is in French, WP and/or the theme I use (Bold Photography Pro) manage this quite well. But Catch Breadcrumb Pro does not. For search result I get a “Search results for:” prefix before the keyword used for search. For posts in categories I get a “Archive for” before “catégorie: category_name” (which is in French) and so on. This gives a mix English / French I do not appreciate. Is there a way to set my own prefixes (even empty) ? I did not find this option in the settings. I can to this by changing the plugin code code but I’m not fond of this kind of solution. Or is there a standard way to do this in wordpress ?

    In the code I found:
    $text[‘home’] = esc_html__( ‘Home’, ‘catch-breadcrumb-pro’ ); // text for the ‘Home’ link
    /* translators: 1: before text/html, 2: after text/html. */
    $text[‘category’] = esc_html__( ‘%1$s Archive for %2$s’, ‘catch-breadcrumb-pro’ ); // text for a category page
    /* translators: 1: before text/html, 2: after text/html. */
    $text[‘search’] = esc_html__( ‘%1$sSearch results for: %2$s’, ‘catch-breadcrumb-pro’ ); // text for a search results page
    /* translators: 1: before text/html, 2: after text/html. */
    $text[‘tag’] = esc_html__( ‘%1$sPosts tagged %2$s’, ‘catch-breadcrumb-pro’ ); // text for a tag page
    /* translators: 1: before text/html, 2: after text/html. */
    $text[‘author’] = esc_html__( ‘%1$sView all posts by %2$s’, ‘catch-breadcrumb-pro’ ); // text for an author page
    $text[‘404’] = esc_html__( ‘Error 404’, ‘catch-breadcrumb-pro’ ); // text for the 404 page

    Which means these labels are yours. You should find a way to modify them !

    #7461
    Skandha
    Participant

    @pierre-ladonnewanadoo-fr: Hello there,

    To translate the plugin into French first of all you will need to use Poedit software. Install and Open the software.

    Create New Translation => Browse and Select catch-breadcrumb-pro.pot file from the languages folder and Click Open => Select the language as French (France).
    Now, you will see a list of translation ready strings and Translation text area where you can add the required translation. Search for the strings you want to translate and add the translation. When you are done translating the strings save the file as catch-breadcrumb-pro-fr_FR.po to the languages folder.

    Now,Go to => Dashboard => Settings => Select Site Language as Francais and Save Changes.

    You should be to see the strings translated to french.

    But the translated files when be lost when you update the plugin to newer version, so when you are done translating all the strings you can email us the translation file so that we can add the translation to the plugin folder with your name as the contributor.

    Let me know if this helps you out!
    Kind Regards,
    Skandha

    Kind Regards,
    Skandha

    #7475
    [email protected]
    Participant

    Hi Skandha,

    Thanks a lot. I’ve translated only a few labels yet (the ones of interest for testing). I’ll do better in the coming days. I’ll send you the files. For “Archive for” I decided to remove all. My choices may not match yours !

    Regards,
    Pierre.

    #7494
    Skandha
    Participant

    @pierre-ladonnewanadoo-fr: Hello there,
    Please let me know when you are done translating so that you can send us the files and we can put it in the plugin folder itself otherwise your translation will be lost when you update the theme to newer versions.

    Kind Regards,
    Skandha

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Translation / Custom labels’ is closed to new replies.