From: yashodha Date: Wed, 12 Apr 2017 09:15:29 +0000 (+0530) Subject: CRM-20417 - translate strings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e300cf3101ed11dd145a6671766ced6cb0e350a6;p=civicrm-core.git CRM-20417 - translate strings --- diff --git a/CRM/Admin/Form/Preferences/Address.php b/CRM/Admin/Form/Preferences/Address.php index 5994bb300e..b00f7b6739 100644 --- a/CRM/Admin/Form/Preferences/Address.php +++ b/CRM/Admin/Form/Preferences/Address.php @@ -65,7 +65,7 @@ class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences { ), 'hideCountryMailingLabels' => array( 'html_type' => 'YesNo', - 'title' => 'Hide Country in Mailing Labels when same as domain country', + 'title' => ts('Hide Country in Mailing Labels when same as domain country'), 'weight' => 4, ), ), diff --git a/CRM/Campaign/Info.php b/CRM/Campaign/Info.php index 7d0cef34da..8667ca30c3 100644 --- a/CRM/Campaign/Info.php +++ b/CRM/Campaign/Info.php @@ -48,7 +48,7 @@ class CRM_Campaign_Info extends CRM_Core_Component_Info { return array( 'name' => 'CiviCampaign', 'translatedName' => ts('CiviCampaign'), - 'title' => 'CiviCRM Campaign Engine', + 'title' => ts('CiviCRM Campaign Engine'), 'search' => 1, 'showActivitiesInCore' => 1, ); diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index aee8f8beba..1af7a78a81 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -842,31 +842,31 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution { $softCreditFields = array( 'contribution_soft_credit_name' => array( 'name' => 'contribution_soft_credit_name', - 'title' => 'Soft Credit For', + 'title' => ts('Soft Credit For'), 'where' => 'civicrm_contact_d.display_name', 'data_type' => CRM_Utils_Type::T_STRING, ), 'contribution_soft_credit_amount' => array( 'name' => 'contribution_soft_credit_amount', - 'title' => 'Soft Credit Amount', + 'title' => ts('Soft Credit Amount'), 'where' => 'civicrm_contribution_soft.amount', 'data_type' => CRM_Utils_Type::T_MONEY, ), 'contribution_soft_credit_type' => array( 'name' => 'contribution_soft_credit_type', - 'title' => 'Soft Credit Type', + 'title' => ts('Soft Credit Type'), 'where' => 'contribution_softcredit_type.label', 'data_type' => CRM_Utils_Type::T_STRING, ), 'contribution_soft_credit_contribution_id' => array( 'name' => 'contribution_soft_credit_contribution_id', - 'title' => 'Soft Credit For Contribution ID', + 'title' => ts('Soft Credit For Contribution ID'), 'where' => 'civicrm_contribution_soft.contribution_id', 'data_type' => CRM_Utils_Type::T_INT, ), 'contribution_soft_credit_contact_id' => array( 'name' => 'contribution_soft_credit_contact_id', - 'title' => 'Soft Credit For Contact ID', + 'title' => ts('Soft Credit For Contact ID'), 'where' => 'civicrm_contact_d.id', 'data_type' => CRM_Utils_Type::T_INT, ), @@ -1173,31 +1173,31 @@ LEFT JOIN civicrm_line_item i ON ( i.contribution_id = c.id AND i.entity_table $extraFields = array( 'contribution_soft_credit_name' => array( 'name' => 'contribution_soft_credit_name', - 'title' => 'Soft Credit Name', + 'title' => ts('Soft Credit Name'), 'headerPattern' => '/^soft_credit_name$/i', 'where' => 'civicrm_contact_d.display_name', ), 'contribution_soft_credit_email' => array( 'name' => 'contribution_soft_credit_email', - 'title' => 'Soft Credit Email', + 'title' => ts('Soft Credit Email'), 'headerPattern' => '/^soft_credit_email$/i', 'where' => 'soft_email.email', ), 'contribution_soft_credit_phone' => array( 'name' => 'contribution_soft_credit_phone', - 'title' => 'Soft Credit Phone', + 'title' => ts('Soft Credit Phone'), 'headerPattern' => '/^soft_credit_phone$/i', 'where' => 'soft_phone.phone', ), 'contribution_soft_credit_contact_id' => array( 'name' => 'contribution_soft_credit_contact_id', - 'title' => 'Soft Credit Contact ID', + 'title' => ts('Soft Credit Contact ID'), 'headerPattern' => '/^soft_credit_contact_id$/i', 'where' => 'civicrm_contribution_soft.contact_id', ), 'contribution_pcp_title' => array( 'name' => 'contribution_pcp_title', - 'title' => 'Personal Campaign Page Title', + 'title' => ts('Personal Campaign Page Title'), 'headerPattern' => '/^contribution_pcp_title$/i', 'where' => 'contribution_pcp.title', ), diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index 93b0d41c04..50dc253ee2 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -750,7 +750,7 @@ GROUP BY participant.event_id $eventFields = CRM_Event_DAO_Event::export(); $noteField = array( 'participant_note' => array( - 'title' => 'Participant Note', + 'title' => ts('Participant Note'), 'name' => 'participant_note', 'type' => CRM_Utils_Type::T_STRING, ), @@ -758,7 +758,7 @@ GROUP BY participant.event_id $participantStatus = array( 'participant_status' => array( - 'title' => 'Participant Status (label)', + 'title' => ts('Participant Status (label)'), 'name' => 'participant_status', 'type' => CRM_Utils_Type::T_STRING, ), @@ -766,7 +766,7 @@ GROUP BY participant.event_id $participantRole = array( 'participant_role' => array( - 'title' => 'Participant Role (label)', + 'title' => ts('Participant Role (label)'), 'name' => 'participant_role', 'type' => CRM_Utils_Type::T_STRING, ), diff --git a/CRM/Grant/BAO/Grant.php b/CRM/Grant/BAO/Grant.php index 0300ec5f64..7a669d599e 100644 --- a/CRM/Grant/BAO/Grant.php +++ b/CRM/Grant/BAO/Grant.php @@ -353,27 +353,27 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant { $grantFields = array( 'grant_status' => array( - 'title' => 'Grant Status', + 'title' => ts('Grant Status'), 'name' => 'grant_status', 'data_type' => CRM_Utils_Type::T_STRING, ), 'grant_type' => array( - 'title' => 'Grant Type', + 'title' => ts('Grant Type'), 'name' => 'grant_type', 'data_type' => CRM_Utils_Type::T_STRING, ), 'grant_money_transfer_date' => array( - 'title' => 'Grant Money Transfer Date', + 'title' => ts('Grant Money Transfer Date'), 'name' => 'grant_money_transfer_date', 'data_type' => CRM_Utils_Type::T_DATE, ), 'grant_amount_requested' => array( - 'title' => 'Grant Amount Requested', + 'title' => ts('Grant Amount Requested'), 'name' => 'grant_amount_requested', 'data_type' => CRM_Utils_Type::T_FLOAT, ), 'grant_application_received_date' => array( - 'title' => 'Grant Application Received Date', + 'title' => ts('Grant Application Received Date'), 'name' => 'grant_application_received_date', 'data_type' => CRM_Utils_Type::T_DATE, ), diff --git a/CRM/Mailing/BAO/Query.php b/CRM/Mailing/BAO/Query.php index d53554fd48..7d690ad8ab 100644 --- a/CRM/Mailing/BAO/Query.php +++ b/CRM/Mailing/BAO/Query.php @@ -42,7 +42,7 @@ class CRM_Mailing_BAO_Query { self::$_mailingFields = array(); $_mailingFields['mailing_id'] = array( 'name' => 'mailing_id', - 'title' => 'Mailing ID', + 'title' => ts('Mailing ID'), 'where' => 'civicrm_mailing.id', ); } diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index 5615e59c5c..f902b526c7 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -49,7 +49,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { return array( 'name' => 'CiviMail', 'translatedName' => ts('CiviMail'), - 'title' => 'CiviCRM Mailing Engine', + 'title' => ts('CiviCRM Mailing Engine'), 'search' => 1, 'showActivitiesInCore' => 1, ); diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 527ba64358..ad9338a4d3 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -1000,7 +1000,7 @@ INNER JOIN civicrm_membership_type type ON ( type.id = membership.membership_ty $fields = array_merge($fields, $expFieldMembership); $membershipStatus = array( 'membership_status' => array( - 'title' => 'Membership Status', + 'title' => ts('Membership Status'), 'name' => 'membership_status', 'type' => CRM_Utils_Type::T_STRING, 'where' => 'civicrm_membership_status.name', diff --git a/CRM/Member/Info.php b/CRM/Member/Info.php index 93491bac4b..4d7e6d594f 100644 --- a/CRM/Member/Info.php +++ b/CRM/Member/Info.php @@ -58,7 +58,7 @@ class CRM_Member_Info extends CRM_Core_Component_Info { return array( 'name' => 'CiviMember', 'translatedName' => ts('CiviMember'), - 'title' => 'CiviCRM Membership Engine', + 'title' => ts('CiviCRM Membership Engine'), 'search' => 1, 'showActivitiesInCore' => 1, ); diff --git a/CRM/Member/Selector/Search.php b/CRM/Member/Selector/Search.php index e6ccbe8bc0..696623f668 100644 --- a/CRM/Member/Selector/Search.php +++ b/CRM/Member/Selector/Search.php @@ -255,7 +255,7 @@ class CRM_Member_Selector_Search extends CRM_Core_Selector_Base implements CRM_C 'name' => ts('Cancel Auto-renewal'), 'url' => 'civicrm/contribute/unsubscribe', 'qs' => 'reset=1&mid=%%id%%&context=%%cxt%%' . $extraParams, - 'title' => 'Cancel Auto Renew Subscription', + 'title' => ts('Cancel Auto Renew Subscription'), ); } elseif (isset(self::$_links['all'][CRM_Core_Action::DISABLE])) { diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php index 10c502e2a6..f368882fac 100644 --- a/CRM/Pledge/BAO/Pledge.php +++ b/CRM/Pledge/BAO/Pledge.php @@ -748,22 +748,22 @@ GROUP BY currency $pledgeFields = array( 'pledge_status' => array( - 'title' => 'Pledge Status', + 'title' => ts('Pledge Status'), 'name' => 'pledge_status', 'data_type' => CRM_Utils_Type::T_STRING, ), 'pledge_frequency_unit' => array( - 'title' => 'Pledge Frequency Unit', + 'title' => ts('Pledge Frequency Unit'), 'name' => 'pledge_frequency_unit', 'data_type' => CRM_Utils_Type::T_ENUM, ), 'pledge_frequency_interval' => array( - 'title' => 'Pledge Frequency Interval', + 'title' => ts('Pledge Frequency Interval'), 'name' => 'pledge_frequency_interval', 'data_type' => CRM_Utils_Type::T_INT, ), 'pledge_contribution_page_id' => array( - 'title' => 'Pledge Contribution Page Id', + 'title' => ts('Pledge Contribution Page Id'), 'name' => 'pledge_contribution_page_id', 'data_type' => CRM_Utils_Type::T_INT, ), diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index 431b2b8fb1..1495acc117 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -554,7 +554,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { // For displaying relationship status. if (!$isStatusFilter && $relStatus) { $statistics['filters'][] = array( - 'title' => 'Relationship Status', + 'title' => ts('Relationship Status'), 'value' => $relStatus, ); } diff --git a/CRM/Report/Form/Membership/Summary.php b/CRM/Report/Form/Membership/Summary.php index 1462db2bc6..771d635abc 100644 --- a/CRM/Report/Form/Membership/Summary.php +++ b/CRM/Report/Form/Membership/Summary.php @@ -85,7 +85,7 @@ class CRM_Report_Form_Membership_Summary extends CRM_Report_Form { 'grouping' => 'member-fields', 'fields' => array( 'membership_type_id' => array( - 'title' => 'Membership Type', + 'title' => ts('Membership Type'), 'required' => TRUE, ), 'join_date' => NULL, diff --git a/CRM/Report/Info.php b/CRM/Report/Info.php index 34d5dce043..a38157d187 100644 --- a/CRM/Report/Info.php +++ b/CRM/Report/Info.php @@ -54,7 +54,7 @@ class CRM_Report_Info extends CRM_Core_Component_Info { return array( 'name' => 'CiviReport', 'translatedName' => ts('CiviReport'), - 'title' => 'CiviCRM Report Engine', + 'title' => ts('CiviCRM Report Engine'), 'search' => 0, 'showActivitiesInCore' => 1, );