Skip to content

Internationalize Select All / Unselect All button in upload_commons.html #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ action.send.name=Send
action.browse.name=Browse
file.uploadedFile=File(s) sent
action.delete.name=Delete
action.selectAll.name=Select all
action.unselectAll.name=Unselect all

message.unknownError=An unknown error has occured.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ action.send.name=Transmettre
action.browse.name=S\u00e9lectionner
file.uploadedFile=Fichier(s) envoy\u00E9(s)
action.delete.name=Supprimer
action.selectAll.name=Tout s\u00e9lectionner
action.unselectAll.name=Tout d\u0039s\u00e9lectionner

message.unknownError=Une erreur inconnue est survenue.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h3>#i18n{asynchronousupload.file.uploadedFile}</h3>
<div class="checkbox">
<input type="checkbox" class="sr-only" id="selectAll${fieldName}" aria-hidden="true">
<label id="btn-select-all${fieldName}" class="btn btn-primary button is-primary is-small" for="selectAll${fieldName}">
<i class="fa fa-check fa-fw mr-2" aria-hidden="true"></i> Tout s&eacute;lectionner
<i class="fa fa-check fa-fw mr-2" aria-hidden="true"></i> #i18n{asynchronousupload.action.selectAll.name}
</label>
<button id="rmAll${fieldName}" class="btn btn-danger btn-rm-all button is-danger is-small" name="${submitBtnName}" value="${handler.uploadDeletePrefix}${fieldName}" type="submit" <#if noJs>nojs</#if> >
<i class="fa fa-trash fa-fw mr-2" aria-hidden="true"></i> #i18n{asynchronousupload.action.delete.name}
Expand All @@ -99,12 +99,12 @@ <h3>#i18n{asynchronousupload.file.uploadedFile}</h3>
if( !hasChecked ){
$('#_file_deletion_${fieldName} input[type="checkbox"]').prop('checked','checked');
$('#rmAll${fieldName}').prop('disabled','');
$('#btn-select-all${fieldName}').html('<i class="fa fa-times fa-fw mr-2" aria-hidden="true"></i> Tout d&eacute;s&eacute;lectionner');
$('#btn-select-all${fieldName}').html('<i class="fa fa-times fa-fw mr-2" aria-hidden="true"></i> #i18n{asynchronousupload.action.unselectAll.name}');
hasChecked=true;
} else {
$('#_file_deletion_${fieldName} input[type="checkbox"]').prop('checked','');
$('#rmAll${fieldName}').prop('disabled','disabled');
$('#btn-select-all${fieldName}').html('<i class="fa fa-check fa-fw mr-2" aria-hidden="true"></i> Tout s&eacute;lectionner');
$('#btn-select-all${fieldName}').html('<i class="fa fa-check fa-fw mr-2" aria-hidden="true"></i> #i18n{asynchronousupload.action.selectAll.name}');
hasChecked=false;
}
$( '#_file_deletion_${fieldName} input[type="checkbox"]' ).change( function(){
Expand Down