Skip to content

Commit

Permalink
Tidy up title attributes
Browse files Browse the repository at this point in the history
Wrap text in {ts} as appropriate (for translation)
Remove poorly worded or superflous title attributes
  • Loading branch information
braders committed Nov 7, 2021
1 parent 118661d commit 4bb0b61
Show file tree
Hide file tree
Showing 18 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion templates/CRM/Activity/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<thead class="sticky">
<tr>
{if !$single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Activity/Selector/Activity.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h3 class="crm-table-title">{ts}Activities{/ts}</h3>
{/if}
{if $rows}
<form title="activity_pager" action="{crmURL}" method="post">
<form action="{crmURL}" method="post">
{include file="CRM/common/pager.tpl" location="top"}

{strip}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Campaign/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<thead class="sticky">
<tr>
{if !$single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
<th scope="col"></th>
{foreach from=$columnHeaders item=header}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Case/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<tr class="columnheader">

{if ! $single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}

<th></th>
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contact/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<table summary="{ts}Search results listings.{/ts}" class="selector row-highlight">
<thead class="sticky">
<tr>
<th scope="col" title="Select All Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{if $context eq 'smog'}
<th scope="col">
{ts}Status{/ts}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contact/Page/Inline/Basic.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span class="crm-contact-contact_id">{$contactId}</span>
{if !empty($userRecordUrl)}
<span class="crm-contact-user_record_id">
&nbsp;/&nbsp;<a title="View user record" class="user-record-link"
&nbsp;/&nbsp;<a title="{ts}View user record{/ts}" class="user-record-link"
href="{$userRecordUrl}">{$userRecordId}</a>
</span>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contribute/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<thead class="sticky">
<tr>
{if !$single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
{if !$single}
<th scope="col"></th>
Expand Down
8 changes: 4 additions & 4 deletions templates/CRM/Contribute/Page/DashBoard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@
<tr class="columnheader-dark">
<th scope="col">{ts}Period{/ts}</th>
<th scope="col">{ts}Total Amount{/ts}</th>
<th scope="col" title="Contribution Count"><strong>#</strong></th><th></th></tr>
<th scope="col" title="{ts}Contribution Count{/ts}"><strong>#</strong></th><th></th></tr>
<tr>
<td><strong>{ts}Current Month-To-Date{/ts}</strong></td>
<td class="label">{if NOT $monthToDate.Valid.amount}{ts}(n/a){/ts}{else}{$monthToDate.Valid.amount}{/if}</td>
<td class="label">{$monthToDate.Valid.count}</td>
<td><a href="{$monthToDate.Valid.url}">{ts}view details{/ts}...</a></td>
<td><a href="{$monthToDate.Valid.url}">{ts}View details{/ts}...</a></td>
</tr>
<tr>
<td><strong>{ts}Current Fiscal Year-To-Date{/ts}</strong></td>
<td class="label">{if NOT $yearToDate.Valid.amount}{ts}(n/a){/ts}{else}{$yearToDate.Valid.amount}{/if}</td>
<td class="label">{$yearToDate.Valid.count}</td>
<td><a href="{$yearToDate.Valid.url}">{ts}view details{/ts}...</a></td>
<td><a href="{$yearToDate.Valid.url}">{ts}View details{/ts}...</a></td>
</tr>
<tr>
<td><strong>{ts}Cumulative{/ts}</strong><br />{ts}(since inception){/ts}</td>
<td class="label">{if NOT $startToDate.Valid.amount}{ts}(n/a){/ts}{else}{$startToDate.Valid.amount}{/if}</td>
<td class="label">{$startToDate.Valid.count}</td>
<td><a href="{$startToDate.Valid.url}">{ts}view details{/ts}...</a></td>
<td><a href="{$startToDate.Valid.url}">{ts}View details{/ts}...</a></td>
</tr>
</table>
{elseif $buildChart}
Expand Down
8 changes: 4 additions & 4 deletions templates/CRM/Custom/Form/Field.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
</td>
</tr>
<tr class="crm-custom-field-form-block-default_value" id="hideDefault" {if $action eq 2 && ($form.data_type.value.0.0 < 4 && $form.data_type.value.1.0 NEQ 'Text')}class="hiddenElement"{/if}>
<td title="hideDefaultValTxt" class="label">{$form.default_value.label}</td>
<td title="hideDefaultValDef" class="html-adjust">{$form.default_value.html}</td>
<td class="label">{$form.default_value.label}</td>
<td class="html-adjust">{$form.default_value.html}</td>
</tr>
<tr class="crm-custom-field-form-block-description" id="hideDesc" {if $action neq 4 && $action eq 2 && ($form.data_type.value.0.0 < 4 && $form.data_type.value.1.0 NEQ 'Text')}class="hiddenElement"{/if}>
<td title="hideDescTxt" class="label">&nbsp;</td>
<td title="hideDescDef" class="html-adjust"><span class="description">{ts}If you want to provide a default value for this field, enter it here. For date fields, format is YYYY-MM-DD.{/ts}</span></td>
<td class="label">&nbsp;</td>
<td class="html-adjust"><span class="description">{ts}If you want to provide a default value for this field, enter it here. For date fields, format is YYYY-MM-DD.{/ts}</span></td>
</tr>
<tr class="crm-custom-field-form-block-help_pre">
<td class="label">{$form.help_pre.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_field' field='help_pre' id=$id}{/if}</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Event/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<thead class="sticky">
<tr>
{if ! $single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
Expand Down
6 changes: 3 additions & 3 deletions templates/CRM/Event/Page/ManageEvent.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,22 @@
<ul class="panel" id="panel_participants_{$row.id}">
{if $findParticipants.statusCounted}
<li>
<a title="Counted" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search'
<a class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search'
q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted}
</a>
</li>
{/if}
{if $findParticipants.statusNotCounted}
<li>
<a title="Not Counted" class="action-item crm-hover-button"
<a class="action-item crm-hover-button"
href="{crmURL p='civicrm/event/search'
q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted}
</a>
</li>
{/if}
{if $row.participant_listing_id}
<li>
<a title="Public Participant Listing" class="action-item crm-hover-button"
<a class="action-item crm-hover-button"
href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`"
fe='true'}">{ts}Public Participant Listing{/ts}
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Grant/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<thead class="sticky">
<tr>
{if ! $single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Mailing/Form/Count.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</tbody>
</table>
</div>
<a href="#" id="button"title="Contacts selected in the Find Contacts page"> {ts}View Selected Contacts{/ts}</a>
<a href="#" id="button" title="{ts}Contacts selected in the Find Contacts page{/ts}"> {ts}View Selected Contacts{/ts}</a>
</div>
{literal}
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Mailing/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<thead class="sticky">
<tr>
{if $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Member/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<table class="selector row-highlight">
<thead class="sticky">
{if ! $single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
<th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
Expand Down
Loading

0 comments on commit 4bb0b61

Please sign in to comment.