• Resolved lagunas

    (@lagunas)


    Hi there!
    I’m trying this plugin for the first time, and it looks very promising.

    I’ve been stuck with this issue for some time and thought maybe someone can help.

    I have this in my functions.php:

    if ( function_exists('register_sidebar') )
    register_sidebar(array(
      'name' => __('Footer', 'textdomain')
    ));

    and a .po and .mo files that translate the word ‘Footer’ to another language.

    But when I use this code in the template file:

    dynamic_sidebar( __('Footer') );

    all I get is the dynamic sidebar content for english, although the option is set to display the widget in “All languages”.

    If I use this code:

    dynamic_sidebar( __('Footer') );
    dynamic_sidebar( __('Footer in another language') );

    it works, but then I would have to add one line for every language, and if somebody should change the translation files, it would stop working.

    Am I doing something wrong?
    Or maybe it is a bug?

    Thank you!

    https://www.ads-software.com/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic sidebar only displaying in english language.’ is closed to new replies.