Skip to content

Commit

Permalink
Translate description in DAO files
Browse files Browse the repository at this point in the history
This relates to the attempt here civicrm#12971
to use description directly in the Entity Forms & questions as to whether it is translated.

Currently they are not but there seems like no downside in translating them
  • Loading branch information
eileenmcnaughton committed Oct 24, 2018
1 parent a65a969 commit 215b423
Show file tree
Hide file tree
Showing 153 changed files with 1,531 additions and 1,531 deletions.
22 changes: 11 additions & 11 deletions CRM/ACL/DAO/ACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function &fields() {
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL ID'),
'description' => 'Unique table ID',
'description' => ts('Unique table ID'),
'required' => TRUE,
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
Expand All @@ -151,7 +151,7 @@ public static function &fields() {
'name' => 'name',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('ACL Name'),
'description' => 'ACL Name.',
'description' => ts('ACL Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'table_name' => 'civicrm_acl',
Expand All @@ -166,7 +166,7 @@ public static function &fields() {
'name' => 'deny',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Deny ACL?'),
'description' => 'Is this ACL entry Allow (0) or Deny (1) ?',
'description' => ts('Is this ACL entry Allow (0) or Deny (1) ?'),
'required' => TRUE,
'default' => '0',
'table_name' => 'civicrm_acl',
Expand All @@ -181,7 +181,7 @@ public static function &fields() {
'name' => 'entity_table',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('ACL Entity'),
'description' => 'Table of the object possessing this ACL entry (Contact, Group, or ACL Group)',
'description' => ts('Table of the object possessing this ACL entry (Contact, Group, or ACL Group)'),
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
Expand All @@ -194,7 +194,7 @@ public static function &fields() {
'name' => 'entity_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity ID'),
'description' => 'ID of the object possessing this ACL',
'description' => ts('ID of the object possessing this ACL'),
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
Expand All @@ -204,7 +204,7 @@ public static function &fields() {
'name' => 'operation',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('ACL Operation'),
'description' => 'What operation does this ACL entry control?',
'description' => ts('What operation does this ACL entry control?'),
'required' => TRUE,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
Expand All @@ -223,7 +223,7 @@ public static function &fields() {
'name' => 'object_table',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('ACL Object'),
'description' => 'The table of the object controlled by this ACL entry',
'description' => ts('The table of the object controlled by this ACL entry'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'table_name' => 'civicrm_acl',
Expand All @@ -235,7 +235,7 @@ public static function &fields() {
'name' => 'object_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL Object ID'),
'description' => 'The ID of the object controlled by this ACL entry',
'description' => ts('The ID of the object controlled by this ACL entry'),
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
Expand All @@ -245,7 +245,7 @@ public static function &fields() {
'name' => 'acl_table',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('ACL Table'),
'description' => 'If this is a grant/revoke entry, what table are we granting?',
'description' => ts('If this is a grant/revoke entry, what table are we granting?'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'table_name' => 'civicrm_acl',
Expand All @@ -257,7 +257,7 @@ public static function &fields() {
'name' => 'acl_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL Group ID'),
'description' => 'ID of the ACL or ACL group being granted/revoked',
'description' => ts('ID of the ACL or ACL group being granted/revoked'),
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
Expand All @@ -267,7 +267,7 @@ public static function &fields() {
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('ACL Is Active?'),
'description' => 'Is this property active?',
'description' => ts('Is this property active?'),
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
Expand Down
8 changes: 4 additions & 4 deletions CRM/ACL/DAO/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function &fields() {
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Cache ID'),
'description' => 'Unique table ID',
'description' => ts('Unique table ID'),
'required' => TRUE,
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
Expand All @@ -103,7 +103,7 @@ public static function &fields() {
'name' => 'contact_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Cache Contact'),
'description' => 'Foreign Key to Contact',
'description' => ts('Foreign Key to Contact'),
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
'bao' => 'CRM_ACL_BAO_Cache',
Expand All @@ -114,7 +114,7 @@ public static function &fields() {
'name' => 'acl_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Cache ACL'),
'description' => 'Foreign Key to ACL',
'description' => ts('Foreign Key to ACL'),
'required' => TRUE,
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
Expand All @@ -126,7 +126,7 @@ public static function &fields() {
'name' => 'modified_date',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Cache Modified Date'),
'description' => 'When was this cache entry last modified',
'description' => ts('When was this cache entry last modified'),
'required' => FALSE,
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
Expand Down
10 changes: 5 additions & 5 deletions CRM/ACL/DAO/EntityRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function &fields() {
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity Role'),
'description' => 'Unique table ID',
'description' => ts('Unique table ID'),
'required' => TRUE,
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
Expand All @@ -109,7 +109,7 @@ public static function &fields() {
'name' => 'acl_role_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL Role ID'),
'description' => 'Foreign Key to ACL Role (which is an option value pair and hence an implicit FK)',
'description' => ts('Foreign Key to ACL Role (which is an option value pair and hence an implicit FK)'),
'required' => TRUE,
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
Expand All @@ -120,7 +120,7 @@ public static function &fields() {
'name' => 'entity_table',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Entity Table'),
'description' => 'Table of the object joined to the ACL Role (Contact or Group)',
'description' => ts('Table of the object joined to the ACL Role (Contact or Group)'),
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
Expand All @@ -133,7 +133,7 @@ public static function &fields() {
'name' => 'entity_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL Entity ID'),
'description' => 'ID of the group/contact object being joined',
'description' => ts('ID of the group/contact object being joined'),
'required' => TRUE,
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
Expand All @@ -144,7 +144,7 @@ public static function &fields() {
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('ACL Entity Role is Active'),
'description' => 'Is this property active?',
'description' => ts('Is this property active?'),
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
'bao' => 'CRM_ACL_BAO_EntityRole',
Expand Down
44 changes: 22 additions & 22 deletions CRM/Activity/DAO/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public static function &fields() {
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Activity ID'),
'description' => 'Unique Other Activity ID',
'description' => ts('Unique Other Activity ID'),
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_activity.id',
Expand All @@ -262,7 +262,7 @@ public static function &fields() {
'name' => 'source_record_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Source Record'),
'description' => 'Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.',
'description' => ts('Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.'),
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
Expand All @@ -272,7 +272,7 @@ public static function &fields() {
'name' => 'activity_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Activity Type ID'),
'description' => 'FK to civicrm_option_value.id, that has to be valid, registered activity type.',
'description' => ts('FK to civicrm_option_value.id, that has to be valid, registered activity type.'),
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_activity.activity_type_id',
Expand All @@ -296,7 +296,7 @@ public static function &fields() {
'name' => 'subject',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Subject'),
'description' => 'The subject/purpose/short description of the activity.',
'description' => ts('The subject/purpose/short description of the activity.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
Expand All @@ -316,7 +316,7 @@ public static function &fields() {
'name' => 'activity_date_time',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Activity Date'),
'description' => 'Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.',
'description' => ts('Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.'),
'import' => TRUE,
'where' => 'civicrm_activity.activity_date_time',
'headerPattern' => '/(activity.)?date(.time$)?/i',
Expand All @@ -335,7 +335,7 @@ public static function &fields() {
'name' => 'duration',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Duration'),
'description' => 'Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.',
'description' => ts('Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.'),
'import' => TRUE,
'where' => 'civicrm_activity.duration',
'headerPattern' => '/(activity.)?duration(s)?$/i',
Expand All @@ -353,7 +353,7 @@ public static function &fields() {
'name' => 'location',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Location'),
'description' => 'Location of the activity (optional, open text).',
'description' => ts('Location of the activity (optional, open text).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
Expand All @@ -373,7 +373,7 @@ public static function &fields() {
'name' => 'phone_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone (called) ID'),
'description' => 'Phone ID of the number called (optional - used if an existing phone number is selected).',
'description' => ts('Phone ID of the number called (optional - used if an existing phone number is selected).'),
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
Expand All @@ -387,7 +387,7 @@ public static function &fields() {
'name' => 'phone_number',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Phone (called) Number'),
'description' => 'Phone number in case the number does not exist in the civicrm_phone table.',
'description' => ts('Phone number in case the number does not exist in the civicrm_phone table.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'table_name' => 'civicrm_activity',
Expand All @@ -402,7 +402,7 @@ public static function &fields() {
'name' => 'details',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Details'),
'description' => 'Details about the activity (agenda, notes, etc).',
'description' => ts('Details about the activity (agenda, notes, etc).'),
'import' => TRUE,
'where' => 'civicrm_activity.details',
'headerPattern' => '/(activity.)?detail(s)?$/i',
Expand All @@ -420,7 +420,7 @@ public static function &fields() {
'name' => 'status_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Activity Status'),
'description' => 'ID of the status this activity is currently in. Foreign key to civicrm_option_value.',
'description' => ts('ID of the status this activity is currently in. Foreign key to civicrm_option_value.'),
'import' => TRUE,
'where' => 'civicrm_activity.status_id',
'headerPattern' => '/(activity.)?status(.label$)?/i',
Expand All @@ -442,7 +442,7 @@ public static function &fields() {
'name' => 'priority_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Priority'),
'description' => 'ID of the priority given to this activity. Foreign key to civicrm_option_value.',
'description' => ts('ID of the priority given to this activity. Foreign key to civicrm_option_value.'),
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
Expand All @@ -459,7 +459,7 @@ public static function &fields() {
'name' => 'parent_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Parent Activity Id'),
'description' => 'Parent meeting ID (if this is a follow-up item). This is not currently implemented',
'description' => ts('Parent meeting ID (if this is a follow-up item). This is not currently implemented'),
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
Expand Down Expand Up @@ -488,7 +488,7 @@ public static function &fields() {
'name' => 'medium_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Activity Medium'),
'description' => 'Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.',
'description' => ts('Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.'),
'default' => 'NULL',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
Expand Down Expand Up @@ -516,7 +516,7 @@ public static function &fields() {
'name' => 'relationship_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Relationship Id'),
'description' => 'FK to Relationship ID',
'description' => ts('FK to Relationship ID'),
'default' => 'NULL',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
Expand Down Expand Up @@ -546,7 +546,7 @@ public static function &fields() {
'name' => 'original_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Original Activity ID '),
'description' => 'Activity ID of the first activity record in versioning chain.',
'description' => ts('Activity ID of the first activity record in versioning chain.'),
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
Expand All @@ -557,7 +557,7 @@ public static function &fields() {
'name' => 'result',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Result'),
'description' => 'Currently being used to store result id for survey activity, FK to option value.',
'description' => ts('Currently being used to store result id for survey activity, FK to option value.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'table_name' => 'civicrm_activity',
Expand Down Expand Up @@ -590,7 +590,7 @@ public static function &fields() {
'name' => 'campaign_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Campaign'),
'description' => 'The campaign for which this activity has been triggered.',
'description' => ts('The campaign for which this activity has been triggered.'),
'import' => TRUE,
'where' => 'civicrm_activity.campaign_id',
'headerPattern' => '',
Expand All @@ -614,7 +614,7 @@ public static function &fields() {
'name' => 'engagement_level',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Engagement Index'),
'description' => 'Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.',
'description' => ts('Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.'),
'import' => TRUE,
'where' => 'civicrm_activity.engagement_level',
'headerPattern' => '',
Expand Down Expand Up @@ -648,7 +648,7 @@ public static function &fields() {
'name' => 'is_star',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Starred'),
'description' => 'Activity marked as favorite.',
'description' => ts('Activity marked as favorite.'),
'import' => TRUE,
'where' => 'civicrm_activity.is_star',
'headerPattern' => '/(activity.)?(star|favorite)/i',
Expand All @@ -664,7 +664,7 @@ public static function &fields() {
'name' => 'created_date',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Created Date'),
'description' => 'When was the activity was created.',
'description' => ts('When was the activity was created.'),
'required' => FALSE,
'export' => TRUE,
'where' => 'civicrm_activity.created_date',
Expand All @@ -680,7 +680,7 @@ public static function &fields() {
'name' => 'modified_date',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Modified Date'),
'description' => 'When was the activity (or closely related entity) was created or modified or deleted.',
'description' => ts('When was the activity (or closely related entity) was created or modified or deleted.'),
'required' => FALSE,
'export' => TRUE,
'where' => 'civicrm_activity.modified_date',
Expand Down
Loading

0 comments on commit 215b423

Please sign in to comment.