CRM-16119: Fix Contact custom data multiple save/more buttons translation.
authorMathieu Lutfy <mathieu@bidon.ca>
Mon, 16 Mar 2015 19:19:16 +0000 (15:19 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Fri, 20 Mar 2015 19:37:47 +0000 (15:37 -0400)
CRM/Contact/Form/CustomData.php

index 2938304d95c968533c38984a81128009b4b5f5e7..135e8b6bd3afbc8fcf9fd085e89842c5a683f42f 100644 (file)
@@ -190,11 +190,11 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
         );
         if ($isMultiple) {
           $this->assign('multiRecordDisplay', $this->_multiRecordDisplay);
-          $saveButtonName = $this->_copyValueId ? 'Save a Copy': 'Save';
+          $saveButtonName = $this->_copyValueId ? ts('Save a Copy') : ts('Save');
           $this->addButtons(array(
               array(
                 'type' => 'upload',
-                'name' => ts('%1', array(1 => $saveButtonName)),
+                'name' => $saveButtonName,
                 'isDefault' => TRUE,
               ),
               array(
@@ -318,4 +318,4 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
     // reset the group contact cache for this group
     CRM_Contact_BAO_GroupContactCache::remove();
   }
-}
\ No newline at end of file
+}