Merge pull request #12639 from aniesshsethh/issue_314
[civicrm-core.git] / CRM / Core / DAO / Address.php
index 877496a9d59f714cb42ec5a9703e8d7211efa1bf..d435e848232a6a1a737df350334b77e7513ab39a 100644 (file)
@@ -2,11 +2,11 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  *
  * Generated from xml/schema/CRM/Core/Address.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:472057d193d1e875a14e7719a2d6a2ee)
+ * (GenCodeChecksum:a81d4789f6650c68145ab9bf1e4481a8)
  */
 
 /**
@@ -270,7 +270,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Address ID'),
-          'description' => 'Unique Address ID',
+          'description' => ts('Unique Address ID'),
           'required' => TRUE,
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
@@ -281,7 +281,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'contact_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Contact ID'),
-          'description' => 'FK to Contact ID',
+          'description' => ts('FK to Contact ID'),
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
@@ -292,7 +292,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'location_type_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Address Location Type'),
-          'description' => 'Which Location does this address belong to.',
+          'description' => ts('Which Location does this address belong to.'),
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
@@ -310,7 +310,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'is_primary',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Address Primary?'),
-          'description' => 'Is this the primary address.',
+          'description' => ts('Is this the primary address.'),
           'default' => '0',
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
@@ -324,7 +324,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'is_billing',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Billing Address'),
-          'description' => 'Is this the billing address.',
+          'description' => ts('Is this the billing address.'),
           'default' => '0',
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
@@ -338,10 +338,10 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_address',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Address'),
-          'description' => 'Concatenation of all routable street address components (prefix, street number, street name, suffix, unit
+          'description' => ts('Concatenation of all routable street address components (prefix, street number, street name, suffix, unit
       number OR P.O. Box). Apps should be able to determine physical location with this data (for mapping, mail
       delivery, etc.).
-    ',
+    '),
           'maxlength' => 96,
           'size' => CRM_Utils_Type::HUGE,
           'import' => TRUE,
@@ -361,7 +361,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_number',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Street Number'),
-          'description' => 'Numeric portion of address number on the street, e.g. For 112A Main St, the street_number = 112.',
+          'description' => ts('Numeric portion of address number on the street, e.g. For 112A Main St, the street_number = 112.'),
           'export' => TRUE,
           'where' => 'civicrm_address.street_number',
           'headerPattern' => '',
@@ -378,8 +378,8 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_number_suffix',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Number Suffix'),
-          'description' => 'Non-numeric portion of address number on the street, e.g. For 112A Main St, the street_number_suffix = A
-    ',
+          'description' => ts('Non-numeric portion of address number on the street, e.g. For 112A Main St, the street_number_suffix = A
+    '),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'export' => TRUE,
@@ -398,7 +398,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_number_predirectional',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Direction Prefix'),
-          'description' => 'Directional prefix, e.g. SE Main St, SE is the prefix.',
+          'description' => ts('Directional prefix, e.g. SE Main St, SE is the prefix.'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'table_name' => 'civicrm_address',
@@ -413,7 +413,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_name',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Name'),
-          'description' => 'Actual street name, excluding St, Dr, Rd, Ave, e.g. For 112 Main St, the street_name = Main.',
+          'description' => ts('Actual street name, excluding St, Dr, Rd, Ave, e.g. For 112 Main St, the street_name = Main.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
           'export' => TRUE,
@@ -432,7 +432,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_type',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Type'),
-          'description' => 'St, Rd, Dr, etc.',
+          'description' => ts('St, Rd, Dr, etc.'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'table_name' => 'civicrm_address',
@@ -447,7 +447,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_number_postdirectional',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Direction Suffix'),
-          'description' => 'Directional prefix, e.g. Main St S, S is the suffix.',
+          'description' => ts('Directional prefix, e.g. Main St S, S is the suffix.'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'table_name' => 'civicrm_address',
@@ -462,7 +462,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'street_unit',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Street Unit'),
-          'description' => 'Secondary unit designator, e.g. Apt 3 or Unit # 14, or Bldg 1200',
+          'description' => ts('Secondary unit designator, e.g. Apt 3 or Unit # 14, or Bldg 1200'),
           'maxlength' => 16,
           'size' => CRM_Utils_Type::TWELVE,
           'export' => TRUE,
@@ -481,7 +481,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'supplemental_address_1',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Supplemental Address 1'),
-          'description' => 'Supplemental Address Information, Line 1',
+          'description' => ts('Supplemental Address Information, Line 1'),
           'maxlength' => 96,
           'size' => CRM_Utils_Type::HUGE,
           'import' => TRUE,
@@ -501,7 +501,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'supplemental_address_2',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Supplemental Address 2'),
-          'description' => 'Supplemental Address Information, Line 2',
+          'description' => ts('Supplemental Address Information, Line 2'),
           'maxlength' => 96,
           'size' => CRM_Utils_Type::HUGE,
           'import' => TRUE,
@@ -521,7 +521,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'supplemental_address_3',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Supplemental Address 3'),
-          'description' => 'Supplemental Address Information, Line 3',
+          'description' => ts('Supplemental Address Information, Line 3'),
           'maxlength' => 96,
           'size' => CRM_Utils_Type::HUGE,
           'import' => TRUE,
@@ -541,7 +541,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'city',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('City'),
-          'description' => 'City, Town or Village Name.',
+          'description' => ts('City, Town or Village Name.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
           'import' => TRUE,
@@ -561,7 +561,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'county_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('County'),
-          'description' => 'Which County does this address belong to.',
+          'description' => ts('Which County does this address belong to.'),
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
@@ -580,11 +580,12 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'state_province_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('State/Province'),
-          'description' => 'Which State_Province does this address belong to.',
+          'description' => ts('Which State_Province does this address belong to.'),
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
           'localizable' => 0,
+          'localize_context' => 'province',
           'FKClassName' => 'CRM_Core_DAO_StateProvince',
           'html' => [
             'type' => 'ChainSelect',
@@ -599,7 +600,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'postal_code_suffix',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Postal Code Suffix'),
-          'description' => 'Store the suffix, like the +4 part in the USPS system.',
+          'description' => ts('Store the suffix, like the +4 part in the USPS system.'),
           'maxlength' => 12,
           'size' => 3,
           'import' => TRUE,
@@ -619,7 +620,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'postal_code',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Postal Code'),
-          'description' => 'Store both US (zip5) AND international postal codes. App is responsible for country/region appropriate validation.',
+          'description' => ts('Store both US (zip5) AND international postal codes. App is responsible for country/region appropriate validation.'),
           'maxlength' => 64,
           'size' => 6,
           'import' => TRUE,
@@ -639,7 +640,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'usps_adc',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('USPS Code'),
-          'description' => 'USPS Bulk mailing code.',
+          'description' => ts('USPS Bulk mailing code.'),
           'maxlength' => 32,
           'size' => CRM_Utils_Type::MEDIUM,
           'table_name' => 'civicrm_address',
@@ -651,11 +652,12 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'country_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Country'),
-          'description' => 'Which Country does this address belong to.',
+          'description' => ts('Which Country does this address belong to.'),
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
           'localizable' => 0,
+          'localize_context' => 'country',
           'FKClassName' => 'CRM_Core_DAO_Country',
           'html' => [
             'type' => 'Select',
@@ -671,7 +673,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'geo_code_1',
           'type' => CRM_Utils_Type::T_FLOAT,
           'title' => ts('Latitude'),
-          'description' => 'Latitude',
+          'description' => ts('Latitude'),
           'import' => TRUE,
           'where' => 'civicrm_address.geo_code_1',
           'headerPattern' => '/geo/i',
@@ -689,7 +691,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'geo_code_2',
           'type' => CRM_Utils_Type::T_FLOAT,
           'title' => ts('Longitude'),
-          'description' => 'Longitude',
+          'description' => ts('Longitude'),
           'import' => TRUE,
           'where' => 'civicrm_address.geo_code_2',
           'headerPattern' => '/geo/i',
@@ -707,7 +709,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'manual_geo_code',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is manually geocoded'),
-          'description' => 'Is this a manually entered geo code',
+          'description' => ts('Is this a manually entered geo code'),
           'default' => '0',
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
@@ -721,7 +723,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'timezone',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Timezone'),
-          'description' => 'Timezone expressed as a UTC offset - e.g. United States CST would be written as "UTC-6".',
+          'description' => ts('Timezone expressed as a UTC offset - e.g. United States CST would be written as "UTC-6".'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'table_name' => 'civicrm_address',
@@ -755,7 +757,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'name' => 'master_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Master Address Belongs To'),
-          'description' => 'FK to Address ID',
+          'description' => ts('FK to Address ID'),
           'import' => TRUE,
           'where' => 'civicrm_address.master_id',
           'headerPattern' => '',