From 8e16bd59e022c92f8bf146b6978533e35a347a33 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Wed, 12 Dec 2018 19:26:37 +0200 Subject: [PATCH] [ACA] localisation (#877) * updates * update e2e --- e2e/suites/actions/library-actions.test.ts | 4 ++-- e2e/suites/actions/toolbar-single-selection.test.ts | 2 +- src/assets/i18n/de.json | 1 + src/assets/i18n/en.json | 12 ++++++------ src/assets/i18n/es.json | 1 + src/assets/i18n/fr.json | 1 + src/assets/i18n/it.json | 1 + src/assets/i18n/ja.json | 1 + src/assets/i18n/nb.json | 1 + src/assets/i18n/nl.json | 1 + src/assets/i18n/pt-BR.json | 1 + src/assets/i18n/ru.json | 1 + src/assets/i18n/zh-CN.json | 1 + 13 files changed, 19 insertions(+), 9 deletions(-) diff --git a/e2e/suites/actions/library-actions.test.ts b/e2e/suites/actions/library-actions.test.ts index 950acd58e..7a32a5590 100755 --- a/e2e/suites/actions/library-actions.test.ts +++ b/e2e/suites/actions/library-actions.test.ts @@ -145,7 +145,7 @@ describe('Library actions', () => { expect(await confirmDialog.isDialogOpen()).toBe(true, 'Confirm delete dialog not open'); expect(await confirmDialog.getTitle()).toContain('Leave this library?'); - expect(await confirmDialog.getText()).toContain('This will remove you as a member of this library.'); + expect(await confirmDialog.getText()).toContain('Leaving will remove your access.'); expect(await confirmDialog.isButtonEnabled('OK')).toBe(true, 'OK button is not enabled'); expect(await confirmDialog.isButtonEnabled('Cancel')).toBe(true, 'Cancel button is not enabled'); }); @@ -175,7 +175,7 @@ describe('Library actions', () => { it('Cancel join - Favorite Libraries - [C290108]', async () => { await page.goToFavoriteLibraries(); await dataTable.selectItem(siteModerated2Admin); - await toolbar.clickButton('Cancel join'); + await toolbar.clickButton('Cancel join request'); const text = await page.getSnackBarMessage(); expect(text).toEqual(`Canceled the request to join the library`); diff --git a/e2e/suites/actions/toolbar-single-selection.test.ts b/e2e/suites/actions/toolbar-single-selection.test.ts index 2d1f3cef9..607b01c92 100755 --- a/e2e/suites/actions/toolbar-single-selection.test.ts +++ b/e2e/suites/actions/toolbar-single-selection.test.ts @@ -242,7 +242,7 @@ describe('Toolbar actions - single selection : ', () => { await dataTable.selectItem(adminModerated); expect(await toolbar.isEmpty()).toBe(false, 'toolbar not displayed'); expect(await toolbar.isButtonPresent('View details')).toBe(true, `View details is not displayed for ${adminModerated}`); - expect(await toolbar.isButtonPresent('Cancel join')).toBe(true, `Cancel join is not displayed for ${adminModerated}`); + expect(await toolbar.isButtonPresent('Cancel join request')).toBe(true, `Cancel join is not displayed for ${adminModerated}`); await toolbar.openMoreMenu(); expect(await toolbar.menu.isMenuItemPresent('Delete')).toBe(true, `Delete is not displayed for ${adminModerated}`); expect(await toolbar.menu.isMenuItemPresent('Favorite')).toBe(true, `Favorite is not displayed for ${adminModerated}`); diff --git a/src/assets/i18n/de.json b/src/assets/i18n/de.json index b37d9325a..a19c0a06d 100644 --- a/src/assets/i18n/de.json +++ b/src/assets/i18n/de.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Die Beschreibung darf höchstens 512 Zeichen lang sein", "TITLE_TOO_LONG": "Der Titel darf höchstens 256 Zeichen lang sein", "ILLEGAL_CHARACTERS": "Verwenden Sie nur Zahlen und Buchstaben", + "ONLY_SPACES": "Bibliotheksname darf nicht nur aus Leerzeichen bestehen.", "LIBRARY_UPDATE_ERROR": "Beim Aktualisieren der Bibliothekseigenschaften ist ein Fehler aufgetreten" }, "SUCCESS": { diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 222f80bc9..06e5eac9d 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -201,7 +201,7 @@ "PRINT": "Print", "FULLSCREEN": "Activate full-screen mode", "JOIN": "Join", - "CANCEL_JOIN": "Cancel join", + "CANCEL_JOIN": "Cancel join request", "LEAVE": "Leave library" }, "DIALOGS": { @@ -213,7 +213,7 @@ }, "CONFIRM_LEAVE": { "TITLE": "Leave this library?", - "MESSAGE": "This will remove you as a member of this library.", + "MESSAGE": "Leaving will remove your access.", "YES_LABEL": "OK", "NO_LABEL": "Cancel" } @@ -251,7 +251,7 @@ }, "MESSAGES": { "ERRORS":{ - "CANNOT_NAVIGATE_LOCATION": "Cannot navigate location", + "CANNOT_NAVIGATE_LOCATION": "Cannot open this location", "MISSING_CONTENT": "This item no longer exists or you don't have permission to view it.", "GENERIC": "The action was unsuccessful. Try again or contact your IT Team.", "CONFLICT": "This name is already in use, try a different name.", @@ -276,7 +276,7 @@ }, "DELETE_LIBRARY_FAILED": "Cannot delete the library", "JOIN_REQUEST_FAILED": "Cannot join the library", - "JOIN_CANCEL_FAILED": "Cannot cancel the request to join the library", + "JOIN_CANCEL_FAILED": "Cannot cancel your join request", "LEAVE_LIBRARY_FAILED": "Cannot leave this library", "INVALID_SENDER_EMAIL": "Your email address must be valid before requesting to join.", "INVALID_RECEIVER_EMAIL": "Recipient(s) email address not valid, contact IT." @@ -329,7 +329,7 @@ }, "LIBRARY_DELETED": "Library deleted", "JOINED": "Library joined", - "JOIN_REQUESTED": "Join library request sent", + "JOIN_REQUESTED": "Request sent to join this library", "JOIN_CANCELED": "Canceled the request to join the library", "LEFT_LIBRARY": "You have left the library" } @@ -420,7 +420,7 @@ "FILES": "Files", "FOLDERS": "Folders", "LIBRARIES": "Libraries", - "HINT": "Query ‘term’ is too short. Must have at least 2 alphanumeric chars" + "HINT": "Search input must have at least 2 alphanumeric characters." }, "SORT": { "RELEVANCE": "Relevance", diff --git a/src/assets/i18n/es.json b/src/assets/i18n/es.json index 42c6e44c4..f88a7ad6f 100644 --- a/src/assets/i18n/es.json +++ b/src/assets/i18n/es.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Utilice como máximo 512 caracteres para la descripción", "TITLE_TOO_LONG": "Utilice como máximo 256 caracteres para el título", "ILLEGAL_CHARACTERS": "Use solo números y letras", + "ONLY_SPACES": "El nombre de biblioteca no puede tener solo espacios", "LIBRARY_UPDATE_ERROR": "Error al actualizar las propiedades de la biblioteca" }, "SUCCESS": { diff --git a/src/assets/i18n/fr.json b/src/assets/i18n/fr.json index ce73e32d2..5b3533f76 100644 --- a/src/assets/i18n/fr.json +++ b/src/assets/i18n/fr.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "La description doit contenir 512 caractères maximum", "TITLE_TOO_LONG": "Le titre doit contenir 256 caractères maximum", "ILLEGAL_CHARACTERS": "Utilisez uniquement des chiffres et des lettres", + "ONLY_SPACES": "Un nom de bibliothèque ne peut pas contenir uniquement des espaces", "LIBRARY_UPDATE_ERROR": "Une erreur est survenue pendant la mise à jour des propriétés de la bibliothèque" }, "SUCCESS": { diff --git a/src/assets/i18n/it.json b/src/assets/i18n/it.json index c4178dcc5..162d5c194 100644 --- a/src/assets/i18n/it.json +++ b/src/assets/i18n/it.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Utilizzare 512 o meno per la descrizione", "TITLE_TOO_LONG": "Utilizzare 256 caratteri o meno per il titolo", "ILLEGAL_CHARACTERS": "Utilizzare solo lettere e numeri", + "ONLY_SPACES": "Il nome della raccolta non può contenere solo spazi", "LIBRARY_UPDATE_ERROR": "Si è verificato un errore di caricamento delle proprietà della raccolta" }, "SUCCESS": { diff --git a/src/assets/i18n/ja.json b/src/assets/i18n/ja.json index 4254830bf..bfff9b4fa 100644 --- a/src/assets/i18n/ja.json +++ b/src/assets/i18n/ja.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "説明は 512 文字以内で入力してください", "TITLE_TOO_LONG": "タイトルは 256 文字以内で入力してください", "ILLEGAL_CHARACTERS": "英数字だけを使用してください", + "ONLY_SPACES": "ライブラリ名にスペースだけを含めることはできません", "LIBRARY_UPDATE_ERROR": "ライブラリのプロパティの更新中にエラーが発生しました" }, "SUCCESS": { diff --git a/src/assets/i18n/nb.json b/src/assets/i18n/nb.json index 7b1ec8084..df283f3c5 100644 --- a/src/assets/i18n/nb.json +++ b/src/assets/i18n/nb.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Bruk 512 tegn eller mindre i beskrivelsen", "TITLE_TOO_LONG": "Bruk 256 tegn eller mindre i tittelen", "ILLEGAL_CHARACTERS": "Bruk kun tall og bokstaver", + "ONLY_SPACES": "Biblioteknavn kan ikke inneholde bare mellomrom", "LIBRARY_UPDATE_ERROR": "Det oppstod en feil under oppdatering av bibliotekegenskaper" }, "SUCCESS": { diff --git a/src/assets/i18n/nl.json b/src/assets/i18n/nl.json index e00375aab..911747adb 100644 --- a/src/assets/i18n/nl.json +++ b/src/assets/i18n/nl.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Gebruik 512 tekens of minder voor de beschrijving", "TITLE_TOO_LONG": "Gebruik 256 tekens of minder voor de titel", "ILLEGAL_CHARACTERS": "Gebruik alleen cijfers en letters", + "ONLY_SPACES": "Bibliotheeknaam mag niet alleen uit spaties bestaan", "LIBRARY_UPDATE_ERROR": "Er is een fout opgetreden bij het bijwerken van de bibliotheekeigenschappen" }, "SUCCESS": { diff --git a/src/assets/i18n/pt-BR.json b/src/assets/i18n/pt-BR.json index 136037adf..e8b2cdbee 100644 --- a/src/assets/i18n/pt-BR.json +++ b/src/assets/i18n/pt-BR.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Use 512 caracteres ou menos para a descrição", "TITLE_TOO_LONG": "Use 256 caracteres ou menos para o título", "ILLEGAL_CHARACTERS": "Use somente números e letras", + "ONLY_SPACES": "O nome da biblioteca não pode conter somente espaços", "LIBRARY_UPDATE_ERROR": "Houve um erro ao atualizar as propriedades da biblioteca" }, "SUCCESS": { diff --git a/src/assets/i18n/ru.json b/src/assets/i18n/ru.json index 7bca1fa1d..b0aa652d2 100644 --- a/src/assets/i18n/ru.json +++ b/src/assets/i18n/ru.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "Описание должно содержать не более 512 символов", "TITLE_TOO_LONG": "Название должно содержать не более 256 символов", "ILLEGAL_CHARACTERS": "Используйте только буквы и цифры", + "ONLY_SPACES": "Имя библиотеки не может состоять только из пробелов", "LIBRARY_UPDATE_ERROR": "Произошла ошибка при обновлении свойств библиотеки" }, "SUCCESS": { diff --git a/src/assets/i18n/zh-CN.json b/src/assets/i18n/zh-CN.json index a09370937..77105732c 100644 --- a/src/assets/i18n/zh-CN.json +++ b/src/assets/i18n/zh-CN.json @@ -406,6 +406,7 @@ "DESCRIPTION_TOO_LONG": "对描述使用 512 个字符或更少字符", "TITLE_TOO_LONG": "对标题使用 256 个字符或更少字符", "ILLEGAL_CHARACTERS": "仅使用数字和字母", + "ONLY_SPACES": "文档库名称不能只包含空格", "LIBRARY_UPDATE_ERROR": "更新库属性时发生错误" }, "SUCCESS": {