other language

Discussion in 'ClassiCraft WordPress Theme' started by saiff, Jun 3, 2013.

Thread Status:
Not open for further replies.
  1. saiff

    saiff New Member

    Joined:
    Jun 1, 2013
    Messages:
    10
    Likes Received:
    0
    Hi
    What are the files that must be translated to change the language of the template?
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
  3. saiff

    saiff New Member

    Joined:
    Jun 1, 2013
    Messages:
    10
    Likes Received:
    0
    thanks nitesh

    What is the best way to translate the categories to have a bilingual website?

    thanks
     
  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
  5. saiff

    saiff New Member

    Joined:
    Jun 1, 2013
    Messages:
    10
    Likes Received:
    0
    thanks nitesh
    I installed the plugin (qtranslate) but do not appear languages in (Classified Categories)

    see the attachments
     

    Attached Files:

  6. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    For this go to the
    Appearance > Editor > functions.php
    and add code given below just at the bottom of the page.

    Code:
    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');
    It will work:).
     
  7. saiff

    saiff New Member

    Joined:
    Jun 1, 2013
    Messages:
    10
    Likes Received:
    0
    worked ... thanks
     
Thread Status:
Not open for further replies.

Share This Page