}
if (! empty($_record->{$_address . 'countryname'})) {
- $country = Zend_Locale::getTranslation($_record->{$_address . 'countryname'}, 'Country', $_record->{$_address . 'countryname'});
- if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__
- . ($_address == 'adr_one_' ? ' Company address' : ' Private address') . ' country ' . $country);
- $nominatim->setCountry($country);
+ try {
+ $country = Zend_Locale::getTranslation($_record->{$_address . 'countryname'}, 'Country', $_record->{$_address . 'countryname'});
+ if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__
+ . ($_address == 'adr_one_' ? ' Company address' : ' Private address') . ' country ' . $country);
+ $nominatim->setCountry($country);
+ } catch (Zend_Locale_Exception $zle) {
+ Tinebase_Exception::log($zle, true);
+ }
}
try {