Skip to content

Commit dd83c67

Browse files
authored
Merge pull request #919 from CSCfi/bugfix/update-share-text
Bugfix/update share text
2 parents fdf1a95 + 4512cf6 commit dd83c67

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

.github/config/.finnishwords.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ kaikkien
105105
kansio
106106
kansioille
107107
kansioina
108+
kansioita
108109
kansion
109110
kansiossa
110111
kansiot
@@ -531,6 +532,7 @@ yhdelle
531532
yhden
532533
yhteenlaskettu
533534
yhteys
535+
yhtään
534536
yksityinen
535537
yksityisen
536538
yksityiskohtia

swift_browser_ui_frontend/src/common/lang.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ let default_translations = {
7676
sharing_to_one_project: "This folder is shared to one project.",
7777
sharing_to_many_projects: "This folder is shared to multiple projects.",
7878
shared_with_read:
79-
"This folder is shared with you. You can view" +
80-
" and download files in this folder (Read access).",
79+
"This folder is shared with you. You can view files only by" +
80+
" using SD Desktop and download files in this folder (Read access)",
8181
shared_with_read_write:
8282
"This folder is shared with you. You can view, download, upload" +
8383
" and edit tags in this folder (Read and write access).",
@@ -260,10 +260,12 @@ let default_translations = {
260260
"No large (> 1GiB) downloads enabled. Click to " +
261261
"enable them for the duration of the session.",
262262
largeDownAction: "Enable",
263-
emptyContainer: "This bucket is empty.",
264-
emptyProject:
265-
"The project does not contain any buckets " +
266-
"or their use is not permitted.",
263+
emptyContainer: "This folder has no content.",
264+
emptyProject: {
265+
all: "There are no folders in this project.",
266+
sharedFrom: "You haven't shared any folders.",
267+
sharedTo: "No folders have been shared with you.",
268+
},
267269
emptyShared: "No buckets have been shared to the project.",
268270
emptyRequested:
269271
"No shared buckets have been requested for the " + "project.",
@@ -720,9 +722,12 @@ let default_translations = {
720722
"erikseen. Paina hyväksyäksesi suuret lataukset " +
721723
"nykyisen kirjautumisen ajaksi.",
722724
largeDownAction: "Hyväksy",
723-
emptyContainer: "Säiliö on tyhjä.",
724-
emptyProject:
725-
"Projektilla ei ole säiliöitä " + "tai niiden käyttöä ei ole sallittu.",
725+
emptyContainer: "Tämä kansio on tyhjä.",
726+
emptyProject: {
727+
all: "Tässä projektissa ei ole kansioita.",
728+
sharedFrom: "Et ole jakanut yhtään kansiota.",
729+
sharedTo: "Sinulle ei ole jaettu kansioita.",
730+
},
726731
emptyShared: "Projektille ei ole jaettu säiliöitä.",
727732
emptyRequested: "Projektille ei ole pyydetty jakamaan säiliöitä.",
728733
sharing: "Jako - ",

swift_browser_ui_frontend/src/components/CObjectTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
headers.filter(header => header.key !== 'tags'): headers"
88
:pagination.prop="disablePagination ? null : paginationOptions"
99
:footer-options.prop="footerOptions"
10-
:no-data-text="$t('message.emptyProject')"
10+
:no-data-text="$t('message.emptyContainer')"
1111
:sort-by="sortBy"
1212
:sort-direction="sortDirection"
1313
selection-property="name"

swift_browser_ui_frontend/src/components/ContainerTable.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
headers.filter(header => header.key !== 'tags'): headers"
77
:pagination.prop="disablePagination ? null : paginationOptions"
88
:footer-options.prop="footerOptions"
9-
:no-data-text="$t('message.emptyProject')"
9+
:no-data-text="getEmptyText()"
1010
:sort-by="sortBy"
1111
:sort-direction="sortDirection"
1212
external-data
@@ -409,6 +409,17 @@ export default {
409409
? this.paginationTextOverrides
410410
: {};
411411
},
412+
getEmptyText() {
413+
if (this.$route.name == "SharedFrom") {
414+
return this.$t("message.emptyProject.sharedFrom");
415+
}
416+
417+
if (this.$route.name == "SharedTo") {
418+
return this.$t("message.emptyProject.sharedTo");
419+
}
420+
421+
return this.$t("message.emptyProject.all");
422+
},
412423
},
413424
};
414425
</script>

0 commit comments

Comments
 (0)