Hi,

Should this module do the localization throught the t() function or should the calling module do that.
I am using cck_country and in both modules country names are not presented through the t() function. Am I missing something?

Comments

Scyther’s picture

I can not see any solution how to add t() to the country names in the cvs file. So if anyone has any idea that might work please submit it here.

alan d.’s picture

Priority: Major » Normal

One thing that I have considered for the countries module (D7) is to run these through t() like this:

t('!country:' . $item['iso2'], array('!country:' . $item['iso2'] => $item['safe_value']))

This would be done in the getter functions for countries_api. The main reason why I haven't done this yet, is that I waiting to see how i18n issues get resolved in D7, and I would also like to benchmark the performance issues related to this. This pattern works nicely in other modules.