Skip to content
Merged
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
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>files_zip</id>
<name>Zipper</name>
<summary>Zip files in your nextcloud</summary>
<description>Allow zipping files directly in your nextcloud!</description>
<summary>Zip files in your Nextcloud</summary>
<description>Allow zipping files directly in your Nextcloud!</description>
<version>1.0.0</version>
<licence>agpl</licence>
<author>Roeland Jago Douma</author>
Expand Down
6 changes: 3 additions & 3 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function prepare(INotification $notification, string $languageCode): INot
switch ($notification->getSubject()) {
case self::TYPE_SCHEDULED:
$parameters = $notification->getSubjectParameters();
$notification->setRichSubject($l->t('A zip archive {target} will be created.'), [
$notification->setRichSubject($l->t('A Zip archive {target} will be created.'), [
'target' => [
'type' => 'highlight',
'id' => $notification->getObjectId(),
Expand All @@ -74,7 +74,7 @@ public function prepare(INotification $notification, string $languageCode): INot
break;
case self::TYPE_SUCCESS:
$parameters = $notification->getSubjectParameters();
$notification->setRichSubject($l->t('Your files have been stored as a zip archive in {path}.'), [
$notification->setRichSubject($l->t('Your files have been stored as a Zip archive in {path}.'), [
'path' => [
'type' => 'file',
'id' => $parameters['fileid'],
Expand All @@ -85,7 +85,7 @@ public function prepare(INotification $notification, string $languageCode): INot
break;
case self::TYPE_FAILURE:
$parameters = $notification->getSubjectParameters();
$notification->setRichSubject($l->t('Creating the zip file {path} failed.'), [
$notification->setRichSubject($l->t('Creating the Zip file {path} failed.'), [
'path' => [
'type' => 'highlight',
'id' => $notification->getObjectId(),
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { showError, showSuccess } from '@nextcloud/dialogs'
attach(fileList) {
fileList.registerMultiSelectFileAction({
name: 'files_zip',
displayName: t('files_zip', 'Compress to zip'),
displayName: t('files_zip', 'Compress to Zip'),
iconClass: 'icon-zip',
order: 0,
action: (files) => {
Expand All @@ -19,7 +19,7 @@ import { showError, showSuccess } from '@nextcloud/dialogs'
const selectedFiles = files.map(file => file.id)
// noinspection JSVoidFunctionReturnValueUsed
window.OC.dialogs.prompt(
t('files_zip', 'Select a name for the zip archive'),
t('files_zip', 'Select a name for the Zip archive'),
n('files_zip', 'Compress {files} file', 'Compress {files} files', selectedFiles.length, { files: selectedFiles.length }),
(result, target) => {
if (!result) {
Expand Down Expand Up @@ -50,7 +50,7 @@ import { showError, showSuccess } from '@nextcloud/dialogs'
fileIds,
target,
})
showSuccess(t('files_zip', 'Creating zip archive started. We will notify you as soon as the archive is available.'))
showSuccess(t('files_zip', 'Creating Zip archive started. We will notify you as soon as the archive is available.'))
} catch (e) {
showError(t('files_zip', 'An error happened when trying to compress the file.'))
}
Expand Down