Use already existing addTrailingSlash function
[civicrm-core.git] / settings / Localization.setting.php
index d0f96b099d94817c2600958ebbd27a07cd3f182c..e375d92f3a9a3f72e377a65ce3394eec0c67fdf7 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2016                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
  * $Id$
  *
  */
  */
 
 return array(
+  'customTranslateFunction' => array(
+    'add' => '4.7',
+    'help_text' => NULL,
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'group_name' => 'Localization Preferences',
+    'group' => 'localization',
+    'name' => 'customTranslateFunction',
+    'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'html_attributes' => array(
+      'size' => '30',
+      'maxlength' => '100',
+    ),
+    'default' => NULL,
+    'title' => 'Custom Translate Function',
+    'description' => '',
+  ),
   'monetaryThousandSeparator' => array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'monetaryThousandSeparator',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
@@ -63,10 +78,6 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'monetaryDecimalPoint',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
@@ -85,10 +96,6 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'moneyformat',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
@@ -104,16 +111,12 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'moneyvalueformat',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
     'default' => '%!i',
     'add' => '4.3',
-    'title' => 'Monetary Amount Display',
+    'title' => 'Monetary Value Display',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => NULL,
@@ -123,15 +126,11 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'defaultCurrency',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
-    'quick_form_type' => 'Element',
-    'html_type' => 'text',
+    'quick_form_type' => 'Select',
+    'html_type' => 'Select',
     'html_attributes' => array(
-      'size' => 2,
+      'class' => 'crm-select2',
     ),
     'default' => 'USD',
     'add' => '4.3',
@@ -140,20 +139,19 @@ return array(
     'is_contact' => 0,
     'description' => 'Default currency assigned to contributions and other monetary transactions.',
     'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
+    ),
   ),
   'defaultContactCountry' => array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'defaultContactCountry',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
-    'quick_form_type' => 'Element',
-    'html_type' => 'text',
+    'quick_form_type' => 'Select',
+    'html_type' => 'Select',
     'html_attributes' => array(
-      'size' => 4,
+      //'class' => 'crm-select2',
     ),
     'default' => '1228',
     'add' => '4.4',
@@ -162,15 +160,33 @@ return array(
     'is_contact' => 0,
     'description' => 'This value is selected by default when adding a new contact address.',
     'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
+    ),
+  ),
+  'defaultContactStateProvince' => array(
+    'add' => '4.7',
+    'help_text' => NULL,
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'group_name' => 'Localization Preferences',
+    'group' => 'localization',
+    'name' => 'defaultContactStateProvince',
+    'type' => 'Integer',
+    'quick_form_type' => 'ChainSelect',
+    'html_type' => 'ChainSelect',
+    //'pseudoconstant' => array(
+    //  'callback' => 'CRM_Core_PseudoConstant::stateProvince',
+    //),
+    //'html_attributes',
+    'default' => NULL,
+    'title' => 'Default State/Province',
+    'description' => 'This value is selected by default when adding a new contact address.',
   ),
   'countryLimit' => array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'countryLimit',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'Array',
     'quick_form_type' => 'Element',
     'html_type' => 'advmultiselect',
@@ -179,22 +195,21 @@ return array(
       'style' => 'width:150px',
       'class' => 'advmultiselect',
     ),
-    'default' => 'null',
+    'default' => array(),
     'add' => '4.3',
     'title' => 'Available Countries',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
+    ),
   ),
   'provinceLimit' => array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'provinceLimit',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'Array',
     'quick_form_type' => 'Element',
     'html_type' => 'advmultiselect',
@@ -203,22 +218,21 @@ return array(
       'style' => 'width:150px',
       'class' => 'advmultiselect',
     ),
-    'default' => 'null',
+    'default' => array(),
     'add' => '4.3',
-    'title' => 'Available States and Provinces',
+    'title' => 'Available States and Provinces (by Country)',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
+    ),
   ),
   'inheritLocale' => array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'inheritLocale',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'Boolean',
     'quick_form_type' => 'YesNo',
     'default' => '0',
@@ -233,14 +247,12 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'dateformatDatetime',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
     'default' => '%B %E%f, %Y %l:%M %P',
     'add' => '4.3',
-    'title' => 'Complete Date and Time',
+    'title' => 'Date Format: Complete Date and Time',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
@@ -250,14 +262,12 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'dateformatFull',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
     'default' => '%B %E%f, %Y',
     'add' => '4.3',
-    'title' => 'Complete Date',
+    'title' => 'Date Format: Complete Date',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
@@ -267,14 +277,12 @@ return array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'dateformatPartial',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
     'default' => '%B %Y',
     'add' => '4.3',
-    'title' => 'Month and Year',
+    'title' => 'Date Format: Month and Year',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
@@ -282,8 +290,6 @@ return array(
   ),
   'dateformatTime' => array(
     'add' => '4.7',
-    'prefetch' => 1,
-    'config_only' => 1,
     'help_text' => NULL,
     'is_domain' => 1,
     'is_contact' => 0,
@@ -303,8 +309,6 @@ return array(
   ),
   'dateformatYear' => array(
     'add' => '4.7',
-    'prefetch' => 1,
-    'config_only' => 1,
     'help_text' => NULL,
     'is_domain' => 1,
     'is_contact' => 0,
@@ -322,9 +326,27 @@ return array(
     'title' => 'Date Format: Year Only',
     'description' => '',
   ),
+  'dateformatFinancialBatch' => array(
+    'add' => '4.7',
+    'help_text' => NULL,
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'group_name' => 'Localization Preferences',
+    'group' => 'localization',
+    'name' => 'dateformatFinancialBatch',
+    'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'html_attributes' => array(
+      'size' => '12',
+      'maxlength' => '60',
+    ),
+    'default' => '%m/%d/%Y',
+    'title' => 'Date Format: Financial Batch',
+    'description' => '',
+  ),
   'dateInputFormat' => array(
     'add' => '4.7',
-    'prefetch' => 1,
     'help_text' => NULL,
     'is_domain' => 1,
     'is_contact' => 0,
@@ -343,8 +365,6 @@ return array(
   ),
   'fieldSeparator' => array(
     'add' => '4.7',
-    'prefetch' => 1,
-    'config_only' => 1,
     'help_text' => NULL,
     'is_domain' => 1,
     'is_contact' => 0,
@@ -362,15 +382,53 @@ return array(
     'title' => 'Import / Export Field Separator',
     'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
   ),
+  'fiscalYearStart' => array(
+    'add' => '4.7',
+    'help_text' => NULL,
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'group_name' => 'Localization Preferences',
+    'group' => 'localization',
+    'name' => 'fiscalYearStart',
+    'type' => 'Array',
+    'quick_form_type' => 'MonthDay',
+    'html_type' => 'MonthDay',
+    'default' => array('M' => 1, 'd' => 1),
+    'title' => 'Fiscal Year Start',
+    'description' => '',
+  ),
+  'languageLimit' => array(
+    'group_name' => 'Localization Preferences',
+    'group' => 'localization',
+    'name' => 'languageLimit',
+    'type' => 'Array',
+    'quick_form_type' => 'Select',
+    'html_type' => 'Select',
+    'html_attributes' => array(
+      'multiple' => 1,
+      'class' => 'crm-select2',
+    ),
+    'default' => NULL,
+    'add' => '4.3',
+    'title' => 'Available Languages (Multi-lingual)',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => '',
+    'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Core_I18n::languages',
+    ),
+  ),
   'lcMessages' => array(
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'lcMessages',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
+    'quick_form_type' => 'Select',
+    'html_type' => 'Select',
+    'html_attributes' => array(
+      'class' => 'crm-select2',
+    ),
     'default' => 'en_US',
     'add' => '4.3',
     'title' => 'Default Language',
@@ -378,11 +436,15 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
+    ),
+    'on_change' => array(
+      'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
+    ),
   ),
   'legacyEncoding' => array(
     'add' => '4.7',
-    'prefetch' => 1,
-    'config_only' => 1,
     'help_text' => NULL,
     'is_domain' => 1,
     'is_contact' => 0,
@@ -402,7 +464,6 @@ return array(
   ),
   'timeInputFormat' => array(
     'add' => '4.7',
-    'prefetch' => 1,
     'help_text' => NULL,
     'is_domain' => 1,
     'is_contact' => 0,
@@ -440,4 +501,26 @@ return array(
     'description' => "",
     'help_text' => NULL,
   ),
+  'contact_default_language' => array(
+    'group_name' => 'Localization Preferences',
+    'group' => 'localization',
+    'name' => 'contact_default_language',
+    'type' => 'String',
+    'quick_form_type' => 'Select',
+    'html_type' => 'Select',
+    'html_attributes' => array(
+      'class' => 'crm-select2',
+    ),
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
+    ),
+    'default' => '*default*',
+    'add' => '4.7',
+    'title' => 'Default Language for contacts',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'Default language (if any) for contact records',
+    'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
+    . 'You may or may not wish to make an assumption here about whether it matches the site language',
+  ),
 );