// Fix incorrect translation strings in tpl

This commit is contained in:
tDidierjean
2011-11-23 21:33:13 +00:00
parent cb1d4ba6b8
commit 91f238a2cd
10 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -382,7 +382,7 @@
<div class="clear">&nbsp;</div>
{else}
{l s="Administrator permissions can't be modified."}
{l s='Administrator permissions can\'t be modified.'}
{/if}
</div>
@@ -41,11 +41,11 @@
<label for="beginDate">{l s='Begin to:'}</label>
<div class="margin-form">
<input class="datepicker" id="beginDate_{$type}" type="text" name="beginDate" value="{$begin_date}" />
<span class="input-error">{l s="The date has not the right format"}</span>
<span class="input-error">{l s='The date has not the right format'}</span>
</div>
<label for="endDate">{l s='End to:'}</label>
<div class="margin-form">
<input class="datepicker" id="endDate_{$type}" type="text" name="endDate" value="{$end_date}" />
<span class="input-error">{l s="The date has not the right format"}</span>
<span class="input-error">{l s='The date has not the right format'}</span>
</div>
@@ -26,8 +26,9 @@
<script>
function confirmProductAttached(productList)
{
var confirm_text = {l s='This attachment is used by the following products:'}
if (confirm('{$confirm}'))
return confirm('{l s="This attachment is used by the following products:"}' + {$product_list[$id]});
return confirm(confirm_text + {$product_list[$id]});
return false;
}
</script>
+6 -6
View File
@@ -72,13 +72,13 @@
{
$(elt).addClass('unselect_all').removeClass('select_all');
$('ul#sortable_module_'+$(elt).attr('id')).find('input[type="checkbox"]').removeAttr('checked');
$(elt).html('{l s="Select all"}');
$(elt).html('{l s='Select all'}');
}
else
{
$(elt).addClass('select_all').removeClass('unselect_all');
$('ul#sortable_module_'+$(elt).attr('id')).find('input[type="checkbox"]').attr('checked', 'checked');
$(elt).html('{l s="Unselect all"}');
$(elt).html('{l s='Unselect all'}');
}
}
@@ -258,12 +258,12 @@
<tfoot>
<tr>
<td style="text-align:center">
<button style="width:100%;margin-top:5px" id="authorize_list" onclick="toogleCheck(this);return false;" class="button">{l s="Select all"}</button>
<button style="width:100%;margin-top:5px;margin-bottom:5px" onclick="authorizeChecked();return false;" class="button">{l s="<< Unauthorize"}</button>
<button style="width:100%;margin-top:5px" id="authorize_list" onclick="toogleCheck(this);return false;" class="button">{l s='Select all'}</button>
<button style="width:100%;margin-top:5px;margin-bottom:5px" onclick="authorizeChecked();return false;" class="button">{l s='<< Unauthorize'}</button>
</td>
<td style="text-align:center">
<button style="width:100%;margin-top:5px"id="unauthorize_list" onclick="toogleCheck(this);return false;" class="button">{l s="Select all"}</button>
<button style="width:100%;margin-top:5px;margin-bottom:5px" onclick="unauthorizeChecked();return false;" class="button">{l s="<< Authorize"}</button>
<button style="width:100%;margin-top:5px"id="unauthorize_list" onclick="toogleCheck(this);return false;" class="button">{l s='Select all'}</button>
<button style="width:100%;margin-top:5px;margin-bottom:5px" onclick="unauthorizeChecked();return false;" class="button">{l s='<< Authorize'}</button>
</td>
</tr>
</tfoot>
+1 -1
View File
@@ -60,7 +60,7 @@
$('#preview_import').submit(function() {
if ($('#truncate').get(0).checked)
{
if (confirm('{l s="Are you sure you want to delete"}' + ' ' + $('#entity > option:selected').text().toLowerCase() + '{l s="?"}'))
if (confirm('{l s='Are you sure you want to delete'}' + ' ' + $('#entity > option:selected').text().toLowerCase() + '{l s='?'}'))
{
this.submit();
}
@@ -123,7 +123,7 @@
data.ajax = 1;
data.controller = "AdminProducts";
data.action = "productQuantity";
showAjaxMsg('{l s="Saving data..."}');
showAjaxMsg('{l s='Saving data...'}');
$.ajax({
type: "POST",
url: "ajax-tab.php",
@@ -134,14 +134,14 @@
{
if (msg.error)
{
showAjaxError('{l s="Error durring saving data"}');
showAjaxError('{l s='Error durring saving data'}');
return;
}
showAjaxSuccess('{l s="Data saved"}');
showAjaxSuccess('{l s='Data saved'}');
},
error: function(msg)
{
showAjaxError('{l s="Error durring saving data"}');
showAjaxError('{l s='Error durring saving data'}');
}
});
};
@@ -150,7 +150,7 @@
'<td class="center"><input type="text" name="input_discount_rate_'+product_infos.id+'" value="0" size="5" />%</td>'+
'<td class="center"><input type="text" name="input_tax_rate_'+product_infos.id+'" value="0" size="5" />%</td>'+
'<td class="center"><a href="#" class="removeProductFromSupplyOrderLink" id="deletelink|'+product_infos.id+'">'+
'<img src="../img/admin/delete.gif" alt="{l s="Remove this product from the order"}" title="{l s="Remove this product from the order"}" />'+
'<img src="../img/admin/delete.gif" alt="{l s='Remove this product from the order'}" title="{l s='Remove this product from the order'}" />'+
'</a></td></tr>'
);