You are here

function countries_i18n_i18n_object_info in Countries 8

Same name and namespace in other branches
  1. 7.2 modules/countries_i18n/countries_i18n.module \countries_i18n_i18n_object_info()

Implements hook_i18n_object_info().

File

modules/countries_i18n/countries_i18n.module, line 41
Provides translation for countries module.

Code

function countries_i18n_i18n_object_info() {
  $info['country'] = array(
    'title' => t('Country'),
    'entity' => 'country',
    'key' => 'iso2',
    'placeholders' => array(
      '%country' => 'iso2',
    ),
    'edit path' => 'admin/config/regional/countries/%country',
    'translate tab' => 'admin/config/regional/countries/%country/translate',
    'list callback' => 'countries_get_countries',
    // Metadata for string translation.
    'string translation' => array(
      'textgroup' => 'countries',
      'type' => 'country',
      'properties' => array(
        'name' => t('Name'),
        'official_name' => t('Official name'),
      ),
    ),
  );
  return $info;
}