From 8a0af2c5e400f8d69fa999a6a9c2c839a6d16aae Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Mon, 16 Apr 2018 13:05:09 +0100 Subject: [PATCH] [ADF-2724] fix comments internationalization (#3195) --- lib/core/comments/comments.component.html | 4 ++-- lib/core/comments/comments.component.spec.ts | 2 +- lib/core/i18n/de.json | 19 ++++++++++++++++++- lib/core/i18n/en.json | 17 +++++++++++++++++ lib/core/i18n/es.json | 19 ++++++++++++++++++- lib/core/i18n/fr.json | 19 ++++++++++++++++++- lib/core/i18n/it.json | 19 ++++++++++++++++++- lib/core/i18n/ja.json | 19 ++++++++++++++++++- lib/core/i18n/nb.json | 19 ++++++++++++++++++- lib/core/i18n/nl.json | 19 ++++++++++++++++++- lib/core/i18n/pt-BR.json | 19 ++++++++++++++++++- lib/core/i18n/ru.json | 19 ++++++++++++++++++- lib/core/i18n/zh-CN.json | 19 ++++++++++++++++++- lib/process-services/i18n/de.json | 19 +------------------ lib/process-services/i18n/en.json | 17 ----------------- lib/process-services/i18n/es.json | 19 +------------------ lib/process-services/i18n/fr.json | 19 +------------------ lib/process-services/i18n/it.json | 19 +------------------ lib/process-services/i18n/ja.json | 19 +------------------ lib/process-services/i18n/nb.json | 19 +------------------ lib/process-services/i18n/nl.json | 19 +------------------ lib/process-services/i18n/pt-BR.json | 19 +------------------ lib/process-services/i18n/ru.json | 19 +------------------ lib/process-services/i18n/zh-CN.json | 19 +------------------ 24 files changed, 210 insertions(+), 210 deletions(-) diff --git a/lib/core/comments/comments.component.html b/lib/core/comments/comments.component.html index 2abedb6905..70fc4f4863 100644 --- a/lib/core/comments/comments.component.html +++ b/lib/core/comments/comments.component.html @@ -1,10 +1,10 @@
- {{'ADF_TASK_LIST.DETAILS.COMMENTS.HEADER' | translate: { count: comments?.length} }} + {{'COMMENTS.HEADER' | translate: { count: comments?.length} }}
- +
diff --git a/lib/core/comments/comments.component.spec.ts b/lib/core/comments/comments.component.spec.ts index 99c56c8cd5..908110e966 100644 --- a/lib/core/comments/comments.component.spec.ts +++ b/lib/core/comments/comments.component.spec.ts @@ -136,7 +136,7 @@ describe('CommentsComponent', () => { fixture.whenStable().then(() => { fixture.detectChanges(); let element = fixture.nativeElement.querySelector('#comment-header'); - expect(element.innerText).toBe('ADF_TASK_LIST.DETAILS.COMMENTS.HEADER'); + expect(element.innerText).toBe('COMMENTS.HEADER'); }); })); diff --git a/lib/core/i18n/de.json b/lib/core/i18n/de.json index 9026de39f4..41628b1d71 100644 --- a/lib/core/i18n/de.json +++ b/lib/core/i18n/de.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Keine Kommentare vorhanden", + "ADD": "Kommentar hinzufügen", + "HEADER": "Kommentare ({{ count }})", + "CREATED_BY_HEADER": "Erstellt von", + "MESSAGE_HEADER": "Fehlermeldung", + "DIALOG": { + "TITLE": "Neuer Kommentar", + "LABELS": { + "MESSAGE": "Fehlermeldung" + }, + "BUTTON": { + "ADD": "Kommentar hinzufügen", + "CANCEL": "Abbrechen" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "Passwort ist falsch" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/en.json b/lib/core/i18n/en.json index 9d90cda59d..9271d64cad 100644 --- a/lib/core/i18n/en.json +++ b/lib/core/i18n/en.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "No comments", + "ADD": "Add a comment", + "HEADER": "Comments ({{ count }})", + "CREATED_BY_HEADER": "Created by", + "MESSAGE_HEADER": "Message", + "DIALOG": { + "TITLE": "New comment", + "LABELS": { + "MESSAGE": "Message" + }, + "BUTTON": { + "ADD": "Add Comment", + "CANCEL": "Cancel" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { diff --git a/lib/core/i18n/es.json b/lib/core/i18n/es.json index 74a3baa93d..b566e39246 100644 --- a/lib/core/i18n/es.json +++ b/lib/core/i18n/es.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "No hay comentarios", + "ADD": "Añadir comentario", + "HEADER": "Comentarios ({{ count }})", + "CREATED_BY_HEADER": "Creado por", + "MESSAGE_HEADER": "Mensaje", + "DIALOG": { + "TITLE": "Nuevo comentario", + "LABELS": { + "MESSAGE": "Mensaje" + }, + "BUTTON": { + "ADD": "Añadir comentario", + "CANCEL": "Cancelar" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "La contraseña es incorrecta" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/fr.json b/lib/core/i18n/fr.json index 7fefca0a9f..e34118ecf3 100644 --- a/lib/core/i18n/fr.json +++ b/lib/core/i18n/fr.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Pas de commentaire", + "ADD": "Ajouter un commentaire", + "HEADER": "Commentaires ({{ count }})", + "CREATED_BY_HEADER": "Créé par", + "MESSAGE_HEADER": "Message", + "DIALOG": { + "TITLE": "Nouveau commentaire", + "LABELS": { + "MESSAGE": "Message" + }, + "BUTTON": { + "ADD": "Ajouter un commentaire", + "CANCEL": "Annuler" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "Mot de passe erroné" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/it.json b/lib/core/i18n/it.json index 431d437bbe..472c5c721d 100644 --- a/lib/core/i18n/it.json +++ b/lib/core/i18n/it.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Nessun commento", + "ADD": "Aggiungi commento", + "HEADER": "Commenti ({{ count }})", + "CREATED_BY_HEADER": "Creato da", + "MESSAGE_HEADER": "Messaggio", + "DIALOG": { + "TITLE": "Nuovo commento", + "LABELS": { + "MESSAGE": "Messaggio" + }, + "BUTTON": { + "ADD": "Aggiungi commento", + "CANCEL": "Annulla" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "Password errata" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/ja.json b/lib/core/i18n/ja.json index 9b0ea5868a..d63a6d2d4d 100644 --- a/lib/core/i18n/ja.json +++ b/lib/core/i18n/ja.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "コメントなし", + "ADD": "コメントの追加", + "HEADER": "コメント ({{ count }} 件)", + "CREATED_BY_HEADER": "作成者", + "MESSAGE_HEADER": "メッセージ", + "DIALOG": { + "TITLE": "新しいコメント", + "LABELS": { + "MESSAGE": "メッセージ" + }, + "BUTTON": { + "ADD": "コメントの追加", + "CANCEL": "キャンセル" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "パスワードが間違っています" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/nb.json b/lib/core/i18n/nb.json index bf57b3041a..48253d5acd 100644 --- a/lib/core/i18n/nb.json +++ b/lib/core/i18n/nb.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Ingen kommentarer", + "ADD": "Legg til kommentar", + "HEADER": "Kommentarer ({{ count }})", + "CREATED_BY_HEADER": "Opprettet av", + "MESSAGE_HEADER": "Melding", + "DIALOG": { + "TITLE": "Nytt kommentar", + "LABELS": { + "MESSAGE": "Melding" + }, + "BUTTON": { + "ADD": "Legg til kommentar", + "CANCEL": "Avbryt" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "Passordet er feil" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/nl.json b/lib/core/i18n/nl.json index 93a97f979a..d02edd90e7 100644 --- a/lib/core/i18n/nl.json +++ b/lib/core/i18n/nl.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Geen opmerkingen", + "ADD": "Opmerking toevoegen", + "HEADER": "Opmerkingen ({{ count }})", + "CREATED_BY_HEADER": "Gemaakt door", + "MESSAGE_HEADER": "Bericht", + "DIALOG": { + "TITLE": "Nieuwe opmerking", + "LABELS": { + "MESSAGE": "Bericht" + }, + "BUTTON": { + "ADD": "Opmerking toevoegen", + "CANCEL": "Annuleren" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "Wachtwoord is verkeerd" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/pt-BR.json b/lib/core/i18n/pt-BR.json index 60f6834bc9..64cec17e8d 100644 --- a/lib/core/i18n/pt-BR.json +++ b/lib/core/i18n/pt-BR.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Sem comentários", + "ADD": "Adicionar comentário", + "HEADER": "({{ count }}) comentários", + "CREATED_BY_HEADER": "Criado por", + "MESSAGE_HEADER": "Mensagem", + "DIALOG": { + "TITLE": "Novo comentário", + "LABELS": { + "MESSAGE": "Mensagem" + }, + "BUTTON": { + "ADD": "Adicionar comentário", + "CANCEL": "Cancelar" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "A senha está errada" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/ru.json b/lib/core/i18n/ru.json index 37ad071cc4..08eef1f525 100644 --- a/lib/core/i18n/ru.json +++ b/lib/core/i18n/ru.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "Нет комментариев", + "ADD": "Добавить комментарий", + "HEADER": "Комментарии ({{ count }})", + "CREATED_BY_HEADER": "Создано пользователем", + "MESSAGE_HEADER": "Сообщение", + "DIALOG": { + "TITLE": "Новый комментарий", + "LABELS": { + "MESSAGE": "Сообщение" + }, + "BUTTON": { + "ADD": "Добавить комментарий", + "CANCEL": "Отмена" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "Неверный пароль" } } -} \ No newline at end of file +} diff --git a/lib/core/i18n/zh-CN.json b/lib/core/i18n/zh-CN.json index 63c0e73629..7861dc0146 100644 --- a/lib/core/i18n/zh-CN.json +++ b/lib/core/i18n/zh-CN.json @@ -149,6 +149,23 @@ } } }, + "COMMENTS": { + "NONE": "无注释", + "ADD": "添加注释", + "HEADER": "评论 ({{ count }})", + "CREATED_BY_HEADER": "创建者", + "MESSAGE_HEADER": "消息", + "DIALOG": { + "TITLE": "新增评论", + "LABELS": { + "MESSAGE": "消息" + }, + "BUTTON": { + "ADD": "添加注释", + "CANCEL": "取消" + } + } + }, "LOGIN": { "LOGO": "Alfresco", "LABEL": { @@ -246,4 +263,4 @@ "ERROR": "密码错误" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/de.json b/lib/process-services/i18n/de.json index 5da71ebf44..fa46c6decc 100644 --- a/lib/process-services/i18n/de.json +++ b/lib/process-services/i18n/de.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Niemand beteiligt" }, - "COMMENTS": { - "NONE": "Keine Kommentare vorhanden", - "ADD": "Kommentar hinzufügen", - "HEADER": "Kommentare ({{ count }})", - "CREATED_BY_HEADER": "Erstellt von", - "MESSAGE_HEADER": "Fehlermeldung", - "DIALOG": { - "TITLE": "Neuer Kommentar", - "LABELS": { - "MESSAGE": "Fehlermeldung" - }, - "BUTTON": { - "ADD": "Kommentar hinzufügen", - "CANCEL": "Abbrechen" - } - } - }, "CHECKLIST": { "NONE": "Keine Prüfliste" }, @@ -317,4 +300,4 @@ "ERROR": "Bei der Verbindung zu Process Services ist ein Fehler aufgetreten" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/en.json b/lib/process-services/i18n/en.json index 93b6c3e442..d3d7dd5591 100644 --- a/lib/process-services/i18n/en.json +++ b/lib/process-services/i18n/en.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Nobody involved" }, - "COMMENTS": { - "NONE": "No comments", - "ADD": "Add a comment", - "HEADER": "Comments ({{ count }})", - "CREATED_BY_HEADER": "Created by", - "MESSAGE_HEADER": "Message", - "DIALOG": { - "TITLE": "New comment", - "LABELS": { - "MESSAGE": "Message" - }, - "BUTTON": { - "ADD": "Add Comment", - "CANCEL": "Cancel" - } - } - }, "CHECKLIST": { "NONE": "No checklist" }, diff --git a/lib/process-services/i18n/es.json b/lib/process-services/i18n/es.json index de6d318fa8..9ea7e105a8 100644 --- a/lib/process-services/i18n/es.json +++ b/lib/process-services/i18n/es.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Ningún participante" }, - "COMMENTS": { - "NONE": "No hay comentarios", - "ADD": "Añadir comentario", - "HEADER": "Comentarios ({{ count }})", - "CREATED_BY_HEADER": "Creado por", - "MESSAGE_HEADER": "Mensaje", - "DIALOG": { - "TITLE": "Nuevo comentario", - "LABELS": { - "MESSAGE": "Mensaje" - }, - "BUTTON": { - "ADD": "Añadir comentario", - "CANCEL": "Cancelar" - } - } - }, "CHECKLIST": { "NONE": "No hay lista de comprobación" }, @@ -317,4 +300,4 @@ "ERROR": "Hay un problema con la conexión a Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/fr.json b/lib/process-services/i18n/fr.json index 0c54f31f02..8f994ea31a 100644 --- a/lib/process-services/i18n/fr.json +++ b/lib/process-services/i18n/fr.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Aucune personne impliquée" }, - "COMMENTS": { - "NONE": "Pas de commentaire", - "ADD": "Ajouter un commentaire", - "HEADER": "Commentaires ({{ count }})", - "CREATED_BY_HEADER": "Créé par", - "MESSAGE_HEADER": "Message", - "DIALOG": { - "TITLE": "Nouveau commentaire", - "LABELS": { - "MESSAGE": "Message" - }, - "BUTTON": { - "ADD": "Ajouter un commentaire", - "CANCEL": "Annuler" - } - } - }, "CHECKLIST": { "NONE": "Aucune liste de contrôle" }, @@ -317,4 +300,4 @@ "ERROR": "Nous rencontrons un problème de connexion à Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/it.json b/lib/process-services/i18n/it.json index 5feed86701..49d0f0dfed 100644 --- a/lib/process-services/i18n/it.json +++ b/lib/process-services/i18n/it.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Nessuno coinvolto" }, - "COMMENTS": { - "NONE": "Nessun commento", - "ADD": "Aggiungi commento", - "HEADER": "Commenti ({{ count }})", - "CREATED_BY_HEADER": "Creato da", - "MESSAGE_HEADER": "Messaggio", - "DIALOG": { - "TITLE": "Nuovo commento", - "LABELS": { - "MESSAGE": "Messaggio" - }, - "BUTTON": { - "ADD": "Aggiungi commento", - "CANCEL": "Annulla" - } - } - }, "CHECKLIST": { "NONE": "Nessun elenco di controllo" }, @@ -317,4 +300,4 @@ "ERROR": "Si è verificato un problema di connessione a Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/ja.json b/lib/process-services/i18n/ja.json index bdac772174..555008b54a 100644 --- a/lib/process-services/i18n/ja.json +++ b/lib/process-services/i18n/ja.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "関わっているメンバーなし" }, - "COMMENTS": { - "NONE": "コメントなし", - "ADD": "コメントの追加", - "HEADER": "コメント ({{ count }} 件)", - "CREATED_BY_HEADER": "作成者", - "MESSAGE_HEADER": "メッセージ", - "DIALOG": { - "TITLE": "新しいコメント", - "LABELS": { - "MESSAGE": "メッセージ" - }, - "BUTTON": { - "ADD": "コメントの追加", - "CANCEL": "キャンセル" - } - } - }, "CHECKLIST": { "NONE": "チェックリストなし" }, @@ -317,4 +300,4 @@ "ERROR": "Process Services への接続中に問題が発生しました" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/nb.json b/lib/process-services/i18n/nb.json index 61090df286..7e3ede7a75 100644 --- a/lib/process-services/i18n/nb.json +++ b/lib/process-services/i18n/nb.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Ingen involvert" }, - "COMMENTS": { - "NONE": "Ingen kommentarer", - "ADD": "Legg til kommentar", - "HEADER": "Kommentarer ({{ count }})", - "CREATED_BY_HEADER": "Opprettet av", - "MESSAGE_HEADER": "Melding", - "DIALOG": { - "TITLE": "Nytt kommentar", - "LABELS": { - "MESSAGE": "Melding" - }, - "BUTTON": { - "ADD": "Legg til kommentar", - "CANCEL": "Avbryt" - } - } - }, "CHECKLIST": { "NONE": "Ingen sjekkliste" }, @@ -317,4 +300,4 @@ "ERROR": "Kan ikke koble til Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/nl.json b/lib/process-services/i18n/nl.json index 7e9b4783da..1a2f59f043 100644 --- a/lib/process-services/i18n/nl.json +++ b/lib/process-services/i18n/nl.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Niemand betrokken" }, - "COMMENTS": { - "NONE": "Geen opmerkingen", - "ADD": "Opmerking toevoegen", - "HEADER": "Opmerkingen ({{ count }})", - "CREATED_BY_HEADER": "Gemaakt door", - "MESSAGE_HEADER": "Bericht", - "DIALOG": { - "TITLE": "Nieuwe opmerking", - "LABELS": { - "MESSAGE": "Bericht" - }, - "BUTTON": { - "ADD": "Opmerking toevoegen", - "CANCEL": "Annuleren" - } - } - }, "CHECKLIST": { "NONE": "Geen controlelijst" }, @@ -317,4 +300,4 @@ "ERROR": "Er is een probleem opgetreden bij het verbinden met Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/pt-BR.json b/lib/process-services/i18n/pt-BR.json index 1a1f1df24b..a89dd17aa0 100644 --- a/lib/process-services/i18n/pt-BR.json +++ b/lib/process-services/i18n/pt-BR.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Ninguém envolvido" }, - "COMMENTS": { - "NONE": "Sem comentários", - "ADD": "Adicionar comentário", - "HEADER": "({{ count }}) comentários", - "CREATED_BY_HEADER": "Criado por", - "MESSAGE_HEADER": "Mensagem", - "DIALOG": { - "TITLE": "Novo comentário", - "LABELS": { - "MESSAGE": "Mensagem" - }, - "BUTTON": { - "ADD": "Adicionar comentário", - "CANCEL": "Cancelar" - } - } - }, "CHECKLIST": { "NONE": "Nenhuma lista de verificação" }, @@ -317,4 +300,4 @@ "ERROR": "Houve um problema ao conectar com o Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/ru.json b/lib/process-services/i18n/ru.json index b76801a2a5..553b968f32 100644 --- a/lib/process-services/i18n/ru.json +++ b/lib/process-services/i18n/ru.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "Нет участников" }, - "COMMENTS": { - "NONE": "Нет комментариев", - "ADD": "Добавить комментарий", - "HEADER": "Комментарии ({{ count }})", - "CREATED_BY_HEADER": "Создано пользователем", - "MESSAGE_HEADER": "Сообщение", - "DIALOG": { - "TITLE": "Новый комментарий", - "LABELS": { - "MESSAGE": "Сообщение" - }, - "BUTTON": { - "ADD": "Добавить комментарий", - "CANCEL": "Отмена" - } - } - }, "CHECKLIST": { "NONE": "Нет контрольных списков" }, @@ -317,4 +300,4 @@ "ERROR": "Возникла проблема при подключении к Process Services" } } -} \ No newline at end of file +} diff --git a/lib/process-services/i18n/zh-CN.json b/lib/process-services/i18n/zh-CN.json index eae2c1d1bb..8a88167851 100644 --- a/lib/process-services/i18n/zh-CN.json +++ b/lib/process-services/i18n/zh-CN.json @@ -87,23 +87,6 @@ "PEOPLE": { "NONE": "未包含任何人" }, - "COMMENTS": { - "NONE": "无注释", - "ADD": "添加注释", - "HEADER": "评论 ({{ count }})", - "CREATED_BY_HEADER": "创建者", - "MESSAGE_HEADER": "消息", - "DIALOG": { - "TITLE": "新增评论", - "LABELS": { - "MESSAGE": "消息" - }, - "BUTTON": { - "ADD": "添加注释", - "CANCEL": "取消" - } - } - }, "CHECKLIST": { "NONE": "没有检查表" }, @@ -317,4 +300,4 @@ "ERROR": "连接到 Process Services 时出现问题" } } -} \ No newline at end of file +}