Title: Polylang custom Language Switcher names
Last modified: August 31, 2016

---

# Polylang custom Language Switcher names

 *  Resolved [sdenec](https://wordpress.org/support/users/sdenec/)
 * (@sdenec)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/polylang-custom-language-switcher-names/)
 * Hello, I would like to know if it is possible to declare an alternative language
   name that is displayed in the frontend (via the language switcher menu). I would
   like to create a switcher that displays the language like “Willkommen zu”/”Welcome
   to”/”Bienvenue á” rather than “Deutsch”/”English”/”Francais”. I know it technically
   is possible by simply changing the display name, but it would also change the
   label in the Backend. Maybe there is a way to do a str_replace somewhere? I’m
   not an exepert programmer so any suggestions or help would be much appreciated.
   Thanks in advance.
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/polylang-custom-language-switcher-names/#post-7197753)
 * Hi!
 * That’s indeed possible with some str_replace thanks to the ‘pll_the_languages’
   filter:
 *     ```
       add_filter( 'pll_the_languages', 'modify_switcher' );
       function modify_switcher( $switcher ) {
         // you can modify the $switcher with some str_replace here.
         return $switcher;
       }
       ```
   
 *  Thread Starter [sdenec](https://wordpress.org/support/users/sdenec/)
 * (@sdenec)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/polylang-custom-language-switcher-names/#post-7197760)
 * That is perfect! Thank you for your quick help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Polylang custom Language Switcher names’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)

 * 2 replies
 * 2 participants
 * Last reply from: [sdenec](https://wordpress.org/support/users/sdenec/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/polylang-custom-language-switcher-names/#post-7197760)
 * Status: resolved