Skip to content

Commit

Permalink
Merge pull request #16227 from demeritcowboy/more-t
Browse files Browse the repository at this point in the history
dev/core#495 Make admin settings field labels translatable
  • Loading branch information
mattwire authored Jan 8, 2020
2 parents df3f5b7 + 4638f0f commit e8b892b
Showing 1 changed file with 29 additions and 50 deletions.
79 changes: 29 additions & 50 deletions settings/Localization.setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
'maxlength' => '100',
],
'default' => NULL,
'title' => 'Custom Translate Function',
'description' => '',
'title' => ts('Custom Translate Function'),
],
'monetaryThousandSeparator' => [
'group_name' => 'Localization Preferences',
Expand All @@ -52,10 +51,9 @@
],
'default' => ',',
'add' => '4.3',
'title' => 'Thousands Separator',
'title' => ts('Thousands Separator'),
'is_domain' => 1,
'is_contact' => 0,
'description' => NULL,
'help_text' => NULL,
],
'monetaryDecimalPoint' => [
Expand All @@ -70,10 +68,9 @@
],
'default' => '.',
'add' => '4.3',
'title' => 'Decimal Delimiter',
'title' => ts('Decimal Delimiter'),
'is_domain' => 1,
'is_contact' => 0,
'description' => NULL,
'help_text' => NULL,
],
'moneyformat' => [
Expand All @@ -85,10 +82,9 @@
'html_type' => 'text',
'default' => '%c %a',
'add' => '4.3',
'title' => 'Monetary Amount Display',
'title' => ts('Monetary Amount Display'),
'is_domain' => 1,
'is_contact' => 0,
'description' => NULL,
'help_text' => NULL,
],
'moneyvalueformat' => [
Expand All @@ -100,10 +96,9 @@
'html_type' => 'text',
'default' => '%!i',
'add' => '4.3',
'title' => 'Monetary Value Display',
'title' => ts('Monetary Value Display'),
'is_domain' => 1,
'is_contact' => 0,
'description' => NULL,
'help_text' => NULL,
],
'defaultCurrency' => [
Expand All @@ -118,10 +113,10 @@
],
'default' => 'USD',
'add' => '4.3',
'title' => 'Default Currency',
'title' => ts('Default Currency'),
'is_domain' => 1,
'is_contact' => 0,
'description' => 'Default currency assigned to contributions and other monetary transactions.',
'description' => ts('Default currency assigned to contributions and other monetary transactions.'),
'help_text' => NULL,
'pseudoconstant' => [
'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
Expand All @@ -141,11 +136,11 @@
//'class' => 'crm-select2',
],
'add' => '4.4',
'title' => 'Default Country',
'title' => ts('Default Country'),
'is_domain' => 1,
'is_contact' => 0,
'is_required' => FALSE,
'description' => 'This value is selected by default when adding a new contact address.',
'description' => ts('This value is selected by default when adding a new contact address.'),
'help_text' => NULL,
'pseudoconstant' => [
'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
Expand All @@ -167,8 +162,8 @@
//),
//'html_attributes',
'default' => NULL,
'title' => 'Default State/Province',
'description' => 'This value is selected by default when adding a new contact address.',
'title' => ts('Default State/Province'),
'description' => ts('This value is selected by default when adding a new contact address.'),
],
'countryLimit' => [
'group_name' => 'Localization Preferences',
Expand All @@ -184,10 +179,9 @@
],
'default' => [],
'add' => '4.3',
'title' => 'Available Countries',
'title' => ts('Available Countries'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
'pseudoconstant' => [
'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
Expand All @@ -207,10 +201,9 @@
],
'default' => [],
'add' => '4.3',
'title' => 'Available States and Provinces (by Country)',
'title' => ts('Available States and Provinces (by Country)'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
'pseudoconstant' => [
'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
Expand All @@ -224,10 +217,9 @@
'quick_form_type' => 'YesNo',
'default' => '0',
'add' => '4.3',
'title' => 'Inherit CMS Language',
'title' => ts('Inherit CMS Language'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
],
'dateformatDatetime' => [
Expand All @@ -239,10 +231,9 @@
'html_type' => 'text',
'default' => '%B %E%f, %Y %l:%M %P',
'add' => '4.3',
'title' => 'Date Format: Complete Date and Time',
'title' => ts('Date Format: Complete Date and Time'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
],
'dateformatFull' => [
Expand All @@ -254,10 +245,9 @@
'html_type' => 'text',
'default' => '%B %E%f, %Y',
'add' => '4.3',
'title' => 'Date Format: Complete Date',
'title' => ts('Date Format: Complete Date'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
],
'dateformatPartial' => [
Expand All @@ -269,10 +259,9 @@
'html_type' => 'text',
'default' => '%B %Y',
'add' => '4.3',
'title' => 'Date Format: Month and Year',
'title' => ts('Date Format: Month and Year'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
],
'dateformatTime' => [
Expand All @@ -291,8 +280,7 @@
'maxlength' => '60',
],
'default' => '%l:%M %P',
'title' => 'Date Format: Time Only',
'description' => '',
'title' => ts('Date Format: Time Only'),
],
'dateformatYear' => [
'add' => '4.7',
Expand All @@ -310,8 +298,7 @@
'maxlength' => '60',
],
'default' => '%Y',
'title' => 'Date Format: Year Only',
'description' => '',
'title' => ts('Date Format: Year Only'),
],
'dateformatFinancialBatch' => [
'add' => '4.7',
Expand All @@ -329,8 +316,7 @@
'maxlength' => '60',
],
'default' => '%m/%d/%Y',
'title' => 'Date Format: Financial Batch',
'description' => '',
'title' => ts('Date Format: Financial Batch'),
],
'dateformatshortdate' => [
'add' => '4.7',
Expand All @@ -348,8 +334,7 @@
'maxlength' => '60',
],
'default' => '%m/%d/%Y',
'title' => 'Date Format: Short date Month Day Year',
'description' => '',
'title' => ts('Date Format: Short date Month Day Year'),
],
'dateInputFormat' => [
'add' => '4.7',
Expand All @@ -366,8 +351,7 @@
'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
],
'default' => 'mm/dd/yy',
'title' => 'Date Input Format',
'description' => '',
'title' => ts('Date Input Format'),
],
'fieldSeparator' => [
'add' => '4.7',
Expand All @@ -385,8 +369,8 @@
'maxlength' => '8',
],
'default' => ',',
'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: \',\' \';\' \':\' \'|\' ).',
'title' => ts('Import / Export Field Separator'),
'description' => ts('Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).'),
],
'fiscalYearStart' => [
'add' => '4.7',
Expand All @@ -400,8 +384,7 @@
'quick_form_type' => 'MonthDay',
'html_type' => 'MonthDay',
'default' => ['M' => 1, 'd' => 1],
'title' => 'Fiscal Year Start',
'description' => '',
'title' => ts('Fiscal Year Start'),
],
'languageLimit' => [
'group_name' => 'Localization Preferences',
Expand All @@ -416,10 +399,9 @@
],
'default' => NULL,
'add' => '4.3',
'title' => 'Available Languages (Multi-lingual)',
'title' => ts('Available Languages (Multi-lingual)'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
'pseudoconstant' => [
'callback' => 'CRM_Core_I18n::languages',
Expand All @@ -438,10 +420,9 @@
],
'default' => NULL,
'add' => '5.9',
'title' => 'Available Languages',
'title' => ts('Available Languages'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => ts('User Interface languages available to users'),
'pseudoconstant' => [
'callback' => 'CRM_Core_I18n::languages',
Expand All @@ -462,7 +443,6 @@
'title' => ts('Default Language'),
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => NULL,
'pseudoconstant' => [
'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
Expand All @@ -488,7 +468,7 @@
],
'default' => 'Windows-1252',
'title' => ts('Legacy Encoding'),
'description' => 'If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of Windows-1252 will work for Excel-created .CSV files on many computers.',
'description' => ts('If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of Windows-1252 will work for Excel-created .CSV files on many computers.'),
],
'timeInputFormat' => [
'add' => '4.7',
Expand All @@ -506,7 +486,6 @@
],
'default' => '1',
'title' => ts('Time Input Format'),
'description' => '',
'on_change' => [
'CRM_Core_BAO_PreferencesDate::onChangeSetting',
],
Expand Down Expand Up @@ -543,7 +522,7 @@
],
'default' => '*default*',
'add' => '4.7',
'title' => 'Default Language for contacts',
'title' => ts('Default Language for contacts'),
'is_domain' => 1,
'is_contact' => 0,
'description' => ts('Default language (if any) for contact records'),
Expand Down

0 comments on commit e8b892b

Please sign in to comment.