singular and plural forms of certificate issued string

pull/53/head
Zlatin Balevsky 2020-10-02 11:46:02 +01:00
parent 355f7cc9eb
commit 4b5311c117
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 8 additions and 2 deletions

View File

@ -459,10 +459,15 @@ class MainFrameController {
params['home'] = core.home
mvcGroup.createMVCGroup("certificate-warning", params)
} else {
int count = 0
view.selectedSharedFiles().each {
count++
core.eventBus.publish(new UICreateCertificateEvent(sharedFile : it))
}
JOptionPane.showMessageDialog(null, trans("CERTIFICATES_ISSUED"))
if (count > 1)
JOptionPane.showMessageDialog(null, trans("CERTIFICATES_ISSUED"))
else if (count == 1)
JOptionPane.showMessageDialog(null, trans("CERTIFICATE_ISSUED"))
}
}

View File

@ -221,7 +221,8 @@ SELECT_FILES_OR_DIRECTORIES_TO_SHARE=Select files or folders to share
# various JOption prompts
ENTER_REASON_OPTIONAL=Enter reason (optional)
CERTIFICATES_ISSUED=Certificate(s) have been issued
CERTIFICATE_ISSUED=Certificate has been issued
CERTIFICATES_ISSUED=Certificates have been issued
PLEASE_SELECT_ONE_FILE_DETAILS=Please select only one file to view it's details
PLEASE_SELECT_ONE_FILE_FOLDER=Please select only one file to open it's containing folder
COPY_PASTE_SERVER_ADDRESS=Copy/paste the address of the server here