Define gettext translation for world_region
[civicrm-core.git] / CRM / Core / DAO / Country.php
index 5823935f092fc4e10379665c191116591803dd84..5f31cab89bded11c529ecd1550786fea8104b999 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Country.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e01f7b6fdc1c22bcf6fbc125ea2d894a)
+ * (GenCodeChecksum:467cb92fabf3d936d330591eec94504d)
  */
 
 /**
@@ -127,7 +127,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Country ID'),
-          'description' => 'Country Id',
+          'description' => ts('Country Id'),
           'required' => TRUE,
           'table_name' => 'civicrm_country',
           'entity' => 'Country',
@@ -138,7 +138,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'name',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Country'),
-          'description' => 'Country Name',
+          'description' => ts('Country Name'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
           'import' => TRUE,
@@ -155,7 +155,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'iso_code',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Country ISO Code'),
-          'description' => 'ISO Code',
+          'description' => ts('ISO Code'),
           'maxlength' => 2,
           'size' => CRM_Utils_Type::TWO,
           'table_name' => 'civicrm_country',
@@ -167,7 +167,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'country_code',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Country Phone Prefix'),
-          'description' => 'National prefix to be used when dialing TO this country.',
+          'description' => ts('National prefix to be used when dialing TO this country.'),
           'maxlength' => 4,
           'size' => CRM_Utils_Type::FOUR,
           'table_name' => 'civicrm_country',
@@ -179,7 +179,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'address_format_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Address Format'),
-          'description' => 'Foreign key to civicrm_address_format.id.',
+          'description' => ts('Foreign key to civicrm_address_format.id.'),
           'table_name' => 'civicrm_country',
           'entity' => 'Country',
           'bao' => 'CRM_Core_BAO_Country',
@@ -190,7 +190,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'idd_prefix',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Outgoing Phone Prefix'),
-          'description' => 'International direct dialing prefix from within the country TO another country',
+          'description' => ts('International direct dialing prefix from within the country TO another country'),
           'maxlength' => 4,
           'size' => CRM_Utils_Type::FOUR,
           'table_name' => 'civicrm_country',
@@ -202,7 +202,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'ndd_prefix',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Area Code'),
-          'description' => 'Access prefix to call within a country to a different area',
+          'description' => ts('Access prefix to call within a country to a different area'),
           'maxlength' => 4,
           'size' => CRM_Utils_Type::FOUR,
           'table_name' => 'civicrm_country',
@@ -214,19 +214,26 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'name' => 'region_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Region'),
-          'description' => 'Foreign key to civicrm_worldregion.id.',
+          'description' => ts('Foreign key to civicrm_worldregion.id.'),
           'required' => TRUE,
           'table_name' => 'civicrm_country',
           'entity' => 'Country',
           'bao' => 'CRM_Core_BAO_Country',
           'localizable' => 0,
+          'localize_context' => 'country',
           'FKClassName' => 'CRM_Core_DAO_Worldregion',
+          'pseudoconstant' => [
+            'table' => 'civicrm_worldregion',
+            'keyColumn' => 'id',
+            'labelColumn' => 'name',
+          ]
         ],
         'is_province_abbreviated' => [
           'name' => 'is_province_abbreviated',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Abbreviate Province?'),
-          'description' => 'Should state/province be displayed as abbreviation for contacts from this country?',
+          'description' => ts('Should state/province be displayed as abbreviation for contacts from this country?'),
+          'default' => '0',
           'table_name' => 'civicrm_country',
           'entity' => 'Country',
           'bao' => 'CRM_Core_BAO_Country',