Title: quelicm's Replies | WordPress.org

---

# quelicm

  [  ](https://wordpress.org/support/users/quelicm/)

 *   [Profile](https://wordpress.org/support/users/quelicm/)
 *   [Topics Started](https://wordpress.org/support/users/quelicm/topics/)
 *   [Replies Created](https://wordpress.org/support/users/quelicm/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/quelicm/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/quelicm/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/quelicm/engagements/)
 *   [Favorites](https://wordpress.org/support/users/quelicm/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Taxonomy template broken after update to 1.8](https://wordpress.org/support/topic/taxonomy-template-broken-after-update-to-18/)
 *  Thread Starter [quelicm](https://wordpress.org/support/users/quelicm/)
 * (@quelicm)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/taxonomy-template-broken-after-update-to-18/#post-7204431)
 * Hi Chouby, forgive the delay
 * Polylang version: 1.8.4
    WP version: 4.4.2
 * Settings:
    URL modifications – The language is set by the directory name in custom
   permalinks – Hide URL language information for the default language (check) –
   Remove /language/ in pretty permalinks
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] How the translated strings are stored in the database?](https://wordpress.org/support/topic/how-the-translated-strings-are-stored-in-the-database/)
 *  Thread Starter [quelicm](https://wordpress.org/support/users/quelicm/)
 * (@quelicm)
 * [12 years ago](https://wordpress.org/support/topic/how-the-translated-strings-are-stored-in-the-database/#post-4903993)
 * That quickly!
 * Thank you chouby, the solution works properly.
 *     ```
       function pll__get_translate($string,$language){
             global $polylang;
           $language = $polylang->model->get_language($language); // import_from_db expects a language object
   
           $mo = new PLL_MO();
           $mo->import_from_db($language); // import all translations in $language
   
           // then you can translated any registered string with:
           $translated_string = $mo->translate($string);
   
           return $translated_string;
         }
   
         echo pll__get_translate('name','es'); //Nombre
         echo pll__get_translate('name','en'); //Name
   
       Thanks!!
       ```
   

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