From b955728e4185f8af51f809e9414720d5a259dbf1 Mon Sep 17 00:00:00 2001 From: Sami Viitanen Date: Wed, 21 Aug 2024 09:06:51 +0300 Subject: [PATCH] Add localizations --- timApp/i18n/messages.fi.xlf | 40 +++++++++++++++++ timApp/i18n/messages.sv.xlf | 44 ++++++++++++++++++- .../tim/folder/directory-list.component.ts | 20 +++------ 3 files changed, 87 insertions(+), 17 deletions(-) diff --git a/timApp/i18n/messages.fi.xlf b/timApp/i18n/messages.fi.xlf index d18b294339..6c5d4d74f7 100644 --- a/timApp/i18n/messages.fi.xlf +++ b/timApp/i18n/messages.fi.xlf @@ -9048,6 +9048,46 @@ 307 + + Item is visible publicly (ie. to everyone), including anonymous users. + Kohde näkyy julkisesti kaikille (myös anonyymeille käyttäjille). + + static/scripts/tim/folder/directory-list.component.ts + 23,21 + + + + Item is visible to logged-in users. + Kohde näkyy sisäänkirjautuneille käyttäjille. + + static/scripts/tim/folder/directory-list.component.ts + 24,21 + + + + Item is visible to groups belonging to a Haka organization. + Kohde näkyy Haka-organisaatioon kuuluville ryhmille. + + static/scripts/tim/folder/directory-list.component.ts + 25,21 + + + + Item is visible only to specific users, check the Manage-page for details. + Kohde näkyy vain valituille käyttäjille, katso lisätiedot Hallitse-sivulta. + + static/scripts/tim/folder/directory-list.component.ts + 26,21 + + + + Item is visible only to its owners. + Kohde näkyy vain omistajilleen. + + static/scripts/tim/folder/directory-list.component.ts + 27 + + \ No newline at end of file diff --git a/timApp/i18n/messages.sv.xlf b/timApp/i18n/messages.sv.xlf index 8844eb2e97..6575799d31 100644 --- a/timApp/i18n/messages.sv.xlf +++ b/timApp/i18n/messages.sv.xlf @@ -8911,8 +8911,8 @@ - Error: - Error: + Error: + Error: static/scripts/tim/ui/error-description.component.ts 20 @@ -8950,6 +8950,46 @@ 307 + + Item is visible publicly (ie. to everyone), including anonymous users. + Objektet är synligt offentligt (dvs. för alla), inklusive anonyma användare. + + static/scripts/tim/folder/directory-list.component.ts + 23,21 + + + + Item is visible to logged-in users. + Objektet är synligt för inloggade användare. + + static/scripts/tim/folder/directory-list.component.ts + 24,21 + + + + Item is visible to groups belonging to a Haka organization. + Objektet är synligt för grupper som tillhör en Haka-organisation. + + static/scripts/tim/folder/directory-list.component.ts + 25,21 + + + + Item is visible only to specific users, check the Manage-page for details. + Objektet är endast synligt för vissa användare, se sidan Hantera för mer information. + + static/scripts/tim/folder/directory-list.component.ts + 26,21 + + + + Item is visible only to its owners. + Objektet är endast synligt för dess ägare. + + static/scripts/tim/folder/directory-list.component.ts + 27 + + \ No newline at end of file diff --git a/timApp/static/scripts/tim/folder/directory-list.component.ts b/timApp/static/scripts/tim/folder/directory-list.component.ts index a4c991c37b..742671a869 100644 --- a/timApp/static/scripts/tim/folder/directory-list.component.ts +++ b/timApp/static/scripts/tim/folder/directory-list.component.ts @@ -20,21 +20,11 @@ enum AccessLevelBadge { const AccessLevelBadgeInfo: Record = { [AccessLevelBadge.NO_BADGE]: "", - [AccessLevelBadge.PUBLIC]: - "Item is visible publicly (ie. to everyone), including anonymous users.", - [AccessLevelBadge.LOGGED_IN]: "Item is visible to logged-in users.", - [AccessLevelBadge.ORGANIZATION]: - "Item is visible to groups belonging to a Haka organization.", - [AccessLevelBadge.LIMITED]: - "Item is visible only to specific users, check the Manage-page for details.", - [AccessLevelBadge.PRIVATE]: "Item is visible only to its owners.", - - // TODO: Turn on localize when working - // [AccessLevelBadge.PUBLIC]: $localize`"Item is visible publicly (ie. to everyone), including anonymous users.`, - // [AccessLevelBadge.LOGGED_IN]: $localize`"Item is visible to logged-in users.`, - // [AccessLevelBadge.ORGANIZATION]: $localize`"Item is visible to groups belonging to a Haka organization.`, - // [AccessLevelBadge.LIMITED]: $localize`"Item is visible only to specific users, check the Manage-page for details.`, - // [AccessLevelBadge.PRIVATE]: $localize`"Item is visible only to its owners.`, + [AccessLevelBadge.PUBLIC]: $localize`Item is visible publicly (ie. to everyone), including anonymous users.`, + [AccessLevelBadge.LOGGED_IN]: $localize`Item is visible to logged-in users.`, + [AccessLevelBadge.ORGANIZATION]: $localize`Item is visible to groups belonging to a Haka organization.`, + [AccessLevelBadge.LIMITED]: $localize`Item is visible only to specific users, check the Manage-page for details.`, + [AccessLevelBadge.PRIVATE]: $localize`Item is visible only to its owners.`, }; @Component({