taxonomy in block translated I have a custom block code this block return a specific taxonomy in drop down list like this

function manufacturer_country_options() {
  $options = db_query("SELECT name,tid FROM {taxonomy_term_data} WHERE
    vid = 35 ");
  $rows[''] = t('-- Any --');
  foreach ($options as $row) {
    $rows[$row-&gt;tid] = $row-&gt;name;
  }
  return $rows;
}


but this function does not give me the translation of vocabulary how i can fix it to return the translation
First I'm going to assume that you have enabled/installed Taxonomy translation module.

Second you need to filter taxonomy_term_data by the current language.

So your code should look like the following:

Translation mode: Translate

function manufacturer_country_options() {
  $query = db_select('taxonomy_term_data', 't')
    -&gt;fields('t', array('name', 'tid'))
    -&gt;condition('t.vid', '35');

  if(module_exists('i18n_taxonomy') &amp;&amp; i18n_select_mode('taxonomy')) {
    $table_alias = i18n_select_check_table($query, 'taxonomy_term_data', 'tid');
    $query-&gt;condition($table_alias . '.language', i18n_select_langcodes());
    $query-&gt;addTag('i18n_select');
  }

  $options = $query-&gt;execute();

  $rows[''] = t('-- Any --'); 
  foreach ($options as $row) {
    $rows[$row-&gt;tid] = $row-&gt;name;
  }
  return $rows;
}


Translation mode: Localize

function manufacturer_country_options() {
  $query = db_select('taxonomy_term_data', 't')
    -&gt;fields('t', array('name', 'tid'))
    -&gt;condition('t.vid', '35');
  $options = $query-&gt;execute();

  $rows[''] = t('-- Any --');

  foreach ($options as $row) {
    $term = taxonomy_term_load($row-&gt;tid);

    if(module_exists('i18n_taxonomy')){
      $term = i18n_taxonomy_localize_terms($term); 
    }  

    $rows[$term-&gt;tid] = $term-&gt;name;
  }
  return $rows;
}