How to translate country names I need to translate the names of countries in drupal. I am using countries_get_list, looping through the array and saving it in another array but wrapping the country names in t(). I'm not so so sure but it seems this isn't working.
I was doing something like

$new_array = array();
foreach(countries_get_list() as $key =&gt; name) {
    $new_array[$key] = t($name);
}
return $new_array;
You should never use t() to translate variables, unless the text that the variable holds has been passed through t() elsewhere:

https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/t/73#sec_translating_vars

In this case country_get_list() calls _country_get_predefined_list(), and inside this function country names are passed through t():

https://api.drupal.org/api/drupal/includes%21iso.inc/function/_country_get_predefined_list/7

So, if you have country strings translated in your database (as Molot says) translation should work.