$this->add('select', "member_option[$rowNumber]", '', $options);
}
if ($this->_batchInfo['type_id'] == $batchTypes['Pledge Payment']) {
- $options = ['' => '-select-'];
+ $options = ['' => ts('-select-')];
$optionTypes = [
'1' => ts('Adjust Pledge Payment Schedule?'),
'2' => ts('Adjust Total Pledge Amount?'),
$openCaseID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Open Case');
unset($aTypes[$openCaseID]);
asort($aTypes);
- $this->_fields['followup_activity_type_id']['attributes'] = ['' => '- select activity type -'] + $aTypes;
+ $this->_fields['followup_activity_type_id']['attributes'] = ['' => ts('- select activity type -')] + $aTypes;
}
parent::buildQuickForm();
if (!$inlineEditMode) {
//External Identifier Element
- $form->addField('external_identifier', ['label' => 'External ID']);
+ $form->addField('external_identifier', ['label' => ts('External ID')]);
$form->addRule('external_identifier',
ts('External ID already exists in Database.'),
//build the params for chart.
$chartData['by_month']['values'][$monthName] = $val;
}
- $chartData['by_month']['legend'] = 'By Month' . ' - ' . $selectedYear;
+ $chartData['by_month']['legend'] = ts('By Month - %1', [1 => $selectedYear]);
// handle onclick event.
$chartData['by_month']['on_click_fun_name'] = 'byMonthOnClick';
$hasContributions = FALSE;
if (is_array($chartInfoYearly)) {
$hasContributions = TRUE;
- $chartData['by_year']['legend'] = 'By Year';
+ $chartData['by_year']['legend'] = ts('By Year');
$chartData['by_year']['values'] = $chartInfoYearly['By Year'];
// handle onclick event.
public static function mapProvider() {
static $map = NULL;
if (!$map) {
- $map = ['' => '- select -'] + CRM_Utils_System::getPluginList('templates/CRM/Contact/Form/Task/Map', ".tpl");
+ $map = ['' => ts('- select -')] + CRM_Utils_System::getPluginList('templates/CRM/Contact/Form/Task/Map', ".tpl");
}
return $map;
}
public static function geoProvider() {
static $geo = NULL;
if (!$geo) {
- $geo = ['' => '- select -'] + CRM_Utils_System::getPluginList('CRM/Utils/Geocode');
+ $geo = ['' => ts('- select -')] + CRM_Utils_System::getPluginList('CRM/Utils/Geocode');
}
return $geo;
}
public static function addressProvider() {
static $addr = NULL;
if (!$addr) {
- $addr = array_merge(['' => '- select -'], CRM_Utils_System::getPluginList('CRM/Utils/Address', '.php', ['BatchUpdate']));
+ $addr = array_merge(['' => ts('- select -')], CRM_Utils_System::getPluginList('CRM/Utils/Address', '.php', ['BatchUpdate']));
}
return $addr;
}
"Boolean"
);
- $isTest = $value ? 'a Test' : 'not a Test';
+ $isTest = $value ? ts('a Test') : ts('not a Test');
$query->_qill[$grouping][] = ts("Participant is %1", [1 => $isTest]);
$query->_tables['civicrm_participant'] = $query->_whereTables['civicrm_participant'] = 1;
}
'dao' => 'CRM_Case_DAO_Case',
'order_bys' => [
'case_type_title' => [
- 'title' => 'Case Type',
+ 'title' => ts('Case Type'),
'name' => 'title',
],
],
<tr class="crm-scheduleReminder-form-block-when">
<td class="right">{$form.start_action_offset.label}</td>
- <td colspan="3">{$form.absolute_date.html} <strong id='OR'>OR</strong><br /></td>
+ <td colspan="3">{$form.absolute_date.html} <strong id='OR'>{ts}OR{/ts}</strong><br /></td>
</tr>
<tr id="relativeDate" class="crm-scheduleReminder-form-block-description">
{ts}Value{/ts}
{/if}
</th>
- {if $gName eq "payment_instrument"}<th>Account</th>{/if}
+ {if $gName eq "payment_instrument"}<th>{ts}Account{/ts}</th>{/if}
{if !empty($showCounted)}<th>{ts}Counted?{/ts}</th>{/if}
{if !empty($showVisibility)}<th>{ts}Visibility{/ts}</th>{/if}
<th id="nosort">{ts}Description{/ts}</th>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
<div>
- Show / Hide columns:
+ {ts}Show / Hide columns:{/ts}
<input type='checkbox' id='steet-address' class='toggle-vis' data-column-main="7" data-column-dupe="8" >
<label for="steet-address">{ts}Street Address{/ts} </label>
<input type='checkbox' id='post-code' class='toggle-vis' data-column-main="9" data-column-dupe="10" >