WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
[resolved] different crumbs in each language (3 posts)

  1. MariaWeb
    Member
    Posted 11 months ago #

    function inkthemes_breadcrumbs() {
        $delimiter = '»';
        $home = 'Home'; // text for the 'Home' link
        $before = '<span class="current">'; // tag before the current crumb
        $after = '</span>'; // tag after the current crumb
        echo '<div id="crumbs">';
        global $post;
        $homeLink = home_url();
        echo '<a href="' . $homeLink . '">' . $home . '</a> ' . $delimiter . ' ';

    i want it do be different in each language, it isn't something that has to be changed but i would like to know if it is possible to have it different in each language :)
    thanks
    $home = 'Home'; // text for the 'Home' link

    http://wordpress.org/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 11 months ago #

    The elegant and best way:
    http://codex.wordpress.org/I18n_for_WordPress_Developers

    The easiest for a unique installation:

    if (get_locale() == 'en_US')
    $home = 'Home';
    else
    $home = 'Accueil';
  3. MariaWeb
    Member
    Posted 11 months ago #

    thank you for the quick reply, this worked like a charm :D great plugin btw, im gonna write my review(almost forgot it :S)

Reply

You must log in to post.

About this Plugin

About this Topic