Title: String translation not working
Last modified: August 30, 2016

---

# String translation not working

 *  Resolved [ced64k](https://wordpress.org/support/users/ced64k/)
 * (@ced64k)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/string-translation-not-working-1/)
 * Hi,
 * I use Polylang on my website for posts and pages translation. Now I would like
   to use string translation function but it doesn’t work. The function always echoes
   the default language.
 * I tryed with
 *     ```
       <?php
       pll_e('City');
       echo pll__('City');
       echo pll_translate_string('City','fr');
       ?>
       ```
   
 * And regardless the current language, it always return ‘City’. However the string
   is registered and present in the string tab of the plugin option.
    I also tried
   with a basic theme and without any plugin.
 * Did I miss something ?
 * Thanks.
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  Plugin Support [Chrystl](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/string-translation-not-working-1/#post-6902278)
 * Hi
    In this topic you will find a short tutorial to use the `pll_register_string`
   and `pll_e`: [https://wordpress.org/support/topic/theme-translate?replies=16](https://wordpress.org/support/topic/theme-translate?replies=16)
 *  Thread Starter [ced64k](https://wordpress.org/support/users/ced64k/)
 * (@ced64k)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/string-translation-not-working-1/#post-6902281)
 * Thanks. It seems related to my WordPress install. I setup a fresh WordPress and
   pll_e() is working fine.

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

The topic ‘String translation not working’ 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

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

 * 2 replies
 * 2 participants
 * Last reply from: [ced64k](https://wordpress.org/support/users/ced64k/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/string-translation-not-working-1/#post-6902281)
 * Status: resolved