From: Mathieu Lutfy Date: Sat, 14 Mar 2015 16:29:13 +0000 (-0400) Subject: CRM-16111: Translation string fixes (4.6 review). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d5be719dc69c065a610c4462bdc4fc325d1bf396;p=civicrm-core.git CRM-16111: Translation string fixes (4.6 review). --- diff --git a/CRM/Admin/Form/LabelFormats.php b/CRM/Admin/Form/LabelFormats.php index 44675a784b..27e82cb7ba 100644 --- a/CRM/Admin/Form/LabelFormats.php +++ b/CRM/Admin/Form/LabelFormats.php @@ -139,17 +139,17 @@ class CRM_Admin_Form_LabelFormats extends CRM_Admin_Form { 'CRM_Core_BAO_LabelFormat', $this->_id, )); - $this->addRule('NX', ts('Must be an integer'), 'integer'); - $this->addRule('NY', ts('Must be an integer'), 'integer'); - $this->addRule('tMargin', ts('Must be numeric'), 'numeric'); - $this->addRule('lMargin', ts('Must be numeric'), 'numeric'); - $this->addRule('SpaceX', ts('Must be numeric'), 'numeric'); - $this->addRule('SpaceY', ts('Must be numeric'), 'numeric'); - $this->addRule('lPadding', ts('Must be numeric'), 'numeric'); - $this->addRule('tPadding', ts('Must be numeric'), 'numeric'); - $this->addRule('width', ts('Must be numeric'), 'numeric'); - $this->addRule('height', ts('Must be numeric'), 'numeric'); - $this->addRule('weight', ts('Must be integer'), 'integer'); + $this->addRule('NX', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('NY', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('tMargin', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('lMargin', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('SpaceX', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('SpaceY', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('lPadding', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('tPadding', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('width', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('height', ts('Please enter a valid number.'), 'numeric'); + $this->addRule('weight', ts('Please enter a valid integer.'), 'integer'); } /** diff --git a/CRM/Admin/Form/Setting/Mail.php b/CRM/Admin/Form/Setting/Mail.php index be2003c4ba..93154e6569 100644 --- a/CRM/Admin/Form/Setting/Mail.php +++ b/CRM/Admin/Form/Setting/Mail.php @@ -61,10 +61,10 @@ class CRM_Admin_Form_Setting_Mail extends CRM_Admin_Form_Setting { $session->pushUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1')); $this->addFormRule(array('CRM_Admin_Form_Setting_Mail', 'formRule')); - $this->addRule('mailerBatchLimit', ts('Must be an integer'), 'integer'); - $this->addRule('mailThrottleTime', ts('Must be an integer'), 'integer'); - $this->addRule('mailerJobSize', ts('Must be an integer'), 'integer'); - $this->addRule('mailerJobsMax', ts('Must be an integer'), 'integer'); + $this->addRule('mailerBatchLimit', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('mailThrottleTime', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('mailerJobSize', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('mailerJobsMax', ts('Please enter a valid integer.'), 'integer'); parent::buildQuickForm($check); } diff --git a/CRM/Contact/Form/Merge.php b/CRM/Contact/Form/Merge.php index 60440827d0..9600fe27d3 100644 --- a/CRM/Contact/Form/Merge.php +++ b/CRM/Contact/Form/Merge.php @@ -264,7 +264,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form { } public function buildQuickForm() { - CRM_Utils_System::setTitle(ts('Merge %1s', array(1 => $this->_contactType))); + CRM_Utils_System::setTitle(ts('Merge %1 contacts', array(1 => $this->_contactType))); $buttons = array(); $buttons[] = array( diff --git a/templates/CRM/Admin/Page/APIExplorer.tpl b/templates/CRM/Admin/Page/APIExplorer.tpl index 0d4936a418..4f2b0bb261 100644 --- a/templates/CRM/Admin/Page/APIExplorer.tpl +++ b/templates/CRM/Admin/Page/APIExplorer.tpl @@ -321,7 +321,7 @@ - + diff --git a/templates/CRM/Campaign/Form/Petition/Signature.tpl b/templates/CRM/Campaign/Form/Petition/Signature.tpl index 3c8b3fa0f8..8282bedc36 100644 --- a/templates/CRM/Campaign/Form/Petition/Signature.tpl +++ b/templates/CRM/Campaign/Form/Petition/Signature.tpl @@ -41,7 +41,7 @@

{/if} {if $duplicate == "unconfirmed"} -

{ts}You have already signed this petition but you still need to verify your email address.
Please check your email inbox for the confirmation email. If you don't find it, verify if it isn't in your spam folder.{/ts} +

{ts}You have already signed this petition but you still need to verify your email address.{/ts}
{ts}Please check your email inbox for the confirmation email. If you don't find it, verify if it isn't in your spam folder.{/ts} {/if} {if $duplicate}

{ts}Thank you for your support.{/ts}

diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index 1604565a26..b57d99efde 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -56,8 +56,7 @@ {if $is_email_receipt}
{if $onBehalfEmail AND ($onBehalfEmail neq $email)} - {ts 1=$email 2=$onBehalfEmail}An email confirmation with these payment instructions has been sent to %1 and - to %2.{/ts} + {ts 1=$email 2=$onBehalfEmail}An email confirmation with these payment instructions has been sent to %1 and to %2.{/ts} {else} {ts 1=$email}An email confirmation with these payment instructions has been sent to %1.{/ts} {/if} @@ -68,8 +67,7 @@ {if $is_email_receipt}
{if $onBehalfEmail AND ($onBehalfEmail neq $email)} - {ts 1=$email 2=$onBehalfEmail}An email receipt will be sent to %1 and to %2 once the transaction is processed - successfully.{/ts} + {ts 1=$email 2=$onBehalfEmail}An email receipt will be sent to %1 and to %2 once the transaction is processed successfully.{/ts} {else} {ts 1=$email}An email receipt will be sent to %1 once the transaction is processed successfully.{/ts} {/if} diff --git a/xml/templates/message_templates/event_offline_receipt_html.tpl b/xml/templates/message_templates/event_offline_receipt_html.tpl index 357b47897a..84738868a1 100644 --- a/xml/templates/message_templates/event_offline_receipt_html.tpl +++ b/xml/templates/message_templates/event_offline_receipt_html.tpl @@ -231,7 +231,7 @@ {if $dataArray} - {ts} Amount Before Tax : {/ts} + {ts}Amount Before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney}