diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-05-17 13:54:58 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-05-23 07:19:06 +0200 |
commit | 42001984f345bdfcebc229ef06c9f9158df9a862 (patch) | |
tree | 30bd281350546dc54f35505369b7de4023e3f6d6 /apps/files/src | |
parent | eacdc4571d4813f851d68bb4832e36ed79c8103f (diff) | |
download | nextcloud-server-42001984f345bdfcebc229ef06c9f9158df9a862.tar.gz nextcloud-server-42001984f345bdfcebc229ef06c9f9158df9a862.zip |
fix(files): Use translation function directly instead of calling the instance method
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/views/FilesList.vue | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index a9a3a1c0312..8bbe6cef1bf 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -232,7 +232,7 @@ export default defineComponent({ }, pageHeading(): string { - return this.currentView?.name ?? this.t('files', 'Files') + return this.currentView?.name ?? t('files', 'Files') }, /** @@ -375,13 +375,13 @@ export default defineComponent({ }, shareButtonLabel() { if (!this.shareAttributes) { - return this.t('files', 'Share') + return t('files', 'Share') } if (this.shareButtonType === Type.SHARE_TYPE_LINK) { - return this.t('files', 'Shared by link') + return t('files', 'Shared by link') } - return this.t('files', 'Shared') + return t('files', 'Shared') }, shareButtonType(): Type | null { if (!this.shareAttributes) { @@ -398,8 +398,8 @@ export default defineComponent({ gridViewButtonLabel() { return this.userConfig.grid_view - ? this.t('files', 'Switch to list view') - : this.t('files', 'Switch to grid view') + ? t('files', 'Switch to list view') + : t('files', 'Switch to grid view') }, /** @@ -413,9 +413,9 @@ export default defineComponent({ }, cantUploadLabel() { if (this.isQuotaExceeded) { - return this.t('files', 'Your have used your space quota and cannot upload files anymore') + return t('files', 'Your have used your space quota and cannot upload files anymore') } - return this.t('files', 'You don’t have permission to upload or create files here') + return t('files', 'You don’t have permission to upload or create files here') }, /** @@ -568,13 +568,13 @@ export default defineComponent({ // Check known status codes if (status === 507) { - showError(this.t('files', 'Not enough free space')) + showError(t('files', 'Not enough free space')) return } else if (status === 404 || status === 409) { - showError(this.t('files', 'Target folder does not exist any more')) + showError(t('files', 'Target folder does not exist any more')) return } else if (status === 403) { - showError(this.t('files', 'Operation is blocked by access control')) + showError(t('files', 'Operation is blocked by access control')) return } @@ -596,11 +596,11 @@ export default defineComponent({ // Finally, check the status code if we have one if (status !== 0) { - showError(this.t('files', 'Error during upload, status code {status}', { status })) + showError(t('files', 'Error during upload, status code {status}', { status })) return } - showError(this.t('files', 'Unknown error during upload')) + showError(t('files', 'Unknown error during upload')) }, /** |