Title: [Plugin: qTranslate] Taxonomy Problem
Last modified: August 20, 2016

---

# [Plugin: qTranslate] Taxonomy Problem

 *  [The Coup](https://wordpress.org/support/users/the-coup/)
 * (@the-coup)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-qtranslate-taxonomy-problem/)
 * Hey,
 * I’ve problem with [qTranslate](http://wordpress.org/extend/plugins/qtranslate/)
   + [Taxonomies](http://codex.wordpress.org/Taxonomies). If anyone had same problem
   and solved, or you just know how to solve it, I hope you will help.
 * **The problem is such:**
    I’ve installed qTranslate and it works perfectly _but_
   when it comes to taxonomy it doesn’t. Problems are:
 * _No language chooser for categories.
    Always chooses the Default language when
   I open the entry.
 * I mean, qTranslate itself adds language chooser blanks (or whatever it’s called)
   when you add categories, but it didn’t for taxonomy cats.
 * And, when I go to Products, for example with Russian language chosen already,
   it opens Russian version, but when I enter Products’ post it opens with Default
   language. Thou if you change language inside the post it will change.
 * What I am supposed to do?

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

 *  Thread Starter [The Coup](https://wordpress.org/support/users/the-coup/)
 * (@the-coup)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-qtranslate-taxonomy-problem/#post-2350068)
 * Nothing yet?
 *  [redywebs](https://wordpress.org/support/users/redywebs/)
 * (@redywebs)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-qtranslate-taxonomy-problem/#post-2350112)
 * I had the same problem with a plugin that was using taxonomies.
    Try this function,
   it worked for me:
 *     ```
       function qtranslate_edit_taxonomies(){
          $args=array(
             'public' => true ,
             '_builtin' => false
          );
          $output = 'object'; // or objects
          $operator = 'and'; // 'and' or 'or'
   
          $taxonomies = get_taxonomies($args,$output,$operator);
   
          if  ($taxonomies) {
            foreach ($taxonomies  as $taxonomy ) {
                add_action( $taxonomy->name.'_add_form', 'qtrans_modifyTermFormFor');
                add_action( $taxonomy->name.'_edit_form', 'qtrans_modifyTermFormFor');
            }
          }
       }
       add_action('admin_init', 'qtranslate_edit_taxonomies');
       ```
   
 * Hope it helps
 *  [Cyrille_g](https://wordpress.org/support/users/cyrille_g/)
 * (@cyrille_g)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-qtranslate-taxonomy-problem/#post-2350117)
 * Hy,
 * I had the same issue, furthermore, I detected some issue when the taxonomy name
   had ‘ in it.
 * It is due to some bug in qtranslate (which doesn’t support taxonomy).
 * I found a workaround but it implies to go into the qtranslate code…
 * In the file : qtranslate_wphacks.php :
    inside the function : qtrans_insertTermInput2
 * look for :
 *     ```
       if(isset($q_config['term_name'][$term][$language])) {
       $html .="
       	i.value = '".addslashes(htmlspecialchars_decode($q_config['term_name'][$term][$language], ENT_QUOTES))."';
       	";
       } else {
       ```
   
 * and replace it with :
 *     ```
       if(isset($q_config['term_name'][htmlspecialchars_decode($term,ENT_QUOTES)][$language])) {
       $html .="
       	i.value = \"".addslashes(htmlspecialchars_decode($q_config['term_name'][htmlspecialchars_decode($term,ENT_QUOTES)][$language], ENT_QUOTES))."\";
       	";
       } else {
       ```
   
 * I’m not sure this is the best way to do it so feel free to answer this post.

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

The topic ‘[Plugin: qTranslate] Taxonomy Problem’ is closed to new replies.

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Cyrille_g](https://wordpress.org/support/users/cyrille_g/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-qtranslate-taxonomy-problem/#post-2350117)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
