i can't translate country code via admin/build/translate/search

e.g. we have

CC   Country name (+Code)
--------------------------
af - Afghanistan (+93)
al - Albania (+355)
dz - Algeria (+213)
as - American Samoa (+1)
ad - Andorra (+376)
ao - Angola (+244)
ai - Anguilla (+1)

and i want translate Country names to another language, how it can be done ?

Comments

Anonymous’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Let's fix this first in D7 and backport. A quick fix in function _cck_phone_cc_options() on line 305:

<?php
    $cc_name = t($value['country']) . ' (' . $value['code'] . ')';
?>

But according to the t() documentation it's not politically correct to call t($text) so it should probably be handled in cck_phone_countrycodes.inc:

<?php
  static $country_code = array(
    'af' => array('country' => t('Afghanistan'), 'code' => '+93'),
...
?>
ckng’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Active » Patch (to be ported)

Committed to D7 dev.

ckng’s picture

Status: Patch (to be ported) » Closed (fixed)

Committed to D6 dev.