Update state/county placeholder
authorColeman Watts <coleman@civicrm.org>
Fri, 22 Aug 2014 12:01:24 +0000 (13:01 +0100)
committerColeman Watts <coleman@civicrm.org>
Fri, 22 Aug 2014 12:01:24 +0000 (13:01 +0100)
CRM/Core/BAO/UFGroup.php
CRM/Core/Page/AJAX/Location.php
templates/CRM/common/stateCountry.tpl

index c213ac914c1477f418d01e338f96b8583e8f0cec..478501d45242a61871a81626f371f97d63a248c6 100644 (file)
@@ -1854,8 +1854,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
     elseif (substr($fieldName, 0, 6) === 'county') {
       if ($addressOptions['county']) {
         $form->add('select', $name, $title,
-          array(
-            '' => ts('(choose state first)')), $required
+          array('' => ts('Choose state first')), $required
         );
       }
     }
index d9e7023a97c56406f4154ca99300ccfa1579536d..1527af263aa509c0d4f5969bf17cba06f1008f82 100644 (file)
@@ -233,7 +233,7 @@ class CRM_Core_Page_AJAX_Location {
     $elements = array();
     if (!isset($_GET['_value']) || CRM_Utils_System::isNull($_GET['_value'])) {
       $elements = array(
-        array('name' => ts('(choose state first)'), 'value' => '')
+        array('name' => ts('Choose state first'), 'value' => '')
       );
     }
     else {
index b16e8a47c0b46b6e6d309edfd88ebf63f2dab2a4..f03b6c717bf19b3e44d2cc46995fefc3f60d94c2 100644 (file)
         $('select[name="{$stateCountryMap.state_province}"], select#{$stateCountryMap.state_province}', $form).data('chainSelect', {ldelim}
           callback: CRM.url('civicrm/ajax/jqCounty'),
           target: initField('select[name="{$stateCountryMap.county}"], #{$stateCountryMap.county}'),
-          placeholder: "{ts escape='js'}(choose state first){/ts}"
+          placeholder: "{ts escape='js'}Choose state first{/ts}"
         {rdelim}).on('change',  chainSelect);
       {/if}
       {if $stateCountryMap.country && $stateCountryMap.state_province}
         initField('select[name="{$stateCountryMap.country}"], select#{$stateCountryMap.country}').data('chainSelect', {ldelim}
           callback: CRM.url('civicrm/ajax/jqState'),
           target: initField('select[name="{$stateCountryMap.state_province}"], #{$stateCountryMap.state_province}'),
-          placeholder: "{ts escape='js'}(choose country first){/ts}"
+          placeholder: "{ts escape='js'}Choose country first{/ts}"
         {rdelim}).on('change', chainSelect).change();
       {/if}
     {/foreach}