From 8122f6f4e1803be84afea91af5d70cef02ae138f Mon Sep 17 00:00:00 2001 From: "makabe.t" Date: Tue, 7 May 2024 00:05:17 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20884:=20Function=E3=81=ABX-Request?= =?UTF-8?q?ed-With=E3=83=98=E3=83=83=E3=83=80=E3=82=92=E9=81=A9=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task4142: FunctionにX-Requested-Withヘッダを適用](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/4142) - Functionのユーザー一括登録の処理中でOMDS CloudのAPIを呼び出す処理があるので、X-Requested-Withヘッダを適用しました。 - 一括登録失敗時のメール文面の翻訳でエラーがない場合のメッセージが日本語のままになっていたので各言語に対応しました。 ## レビューポイント - ヘッダの適用は適切でしょうか? - 翻訳の適用方法で、言語ごとに割り当てる内容を定数としていますが、文面の置き換え方法に問題はないでしょうか? ## UIの変更 - なし ## クエリの変更 - なし ## 動作確認状況 - ローカルで確認 - 行った修正がデグレを発生させていないことを確認できるか - 具体的にどのような確認をしたか - ローカルからAPIを叩い検証証 --- .../src/functions/importUsers.ts | 10 ++ .../src/features/users/users.service.ts | 4 +- .../src/gateways/sendgrid/sendgrid.service.ts | 106 +++++++++++++----- dictation_server/src/templates/constants.ts | 18 ++- .../src/templates/template_U_122.html | 18 +-- .../src/templates/template_U_122.txt | 18 +-- .../templates/template_U_122_no_parent.html | 18 +-- .../templates/template_U_122_no_parent.txt | 18 +-- 8 files changed, 141 insertions(+), 69 deletions(-) diff --git a/dictation_function/src/functions/importUsers.ts b/dictation_function/src/functions/importUsers.ts index 38716b9..0a34802 100644 --- a/dictation_function/src/functions/importUsers.ts +++ b/dictation_function/src/functions/importUsers.ts @@ -18,6 +18,16 @@ import { sign, getJwtKey } from "../common/jwt"; import { AccessToken, SystemAccessToken } from "../common/jwt/types"; import { isImportJson, isStageJson } from "../blobstorage/types/guards"; import https from "https"; +import globalAxios from "axios"; + +// すべてのリクエストのヘッダーにX-Requested-Withを追加 +globalAxios.interceptors.request.use((config) => { + // headersがあれば追加、なければ新規作成 + config.headers = config.headers || {}; + // X-Requested-Withを追加 + config.headers["X-Requested-With"] = "XMLHttpRequest"; + return config; +}); export async function importUsersProcessing( context: InvocationContext, diff --git a/dictation_server/src/features/users/users.service.ts b/dictation_server/src/features/users/users.service.ts index 957dde1..6896e98 100644 --- a/dictation_server/src/features/users/users.service.ts +++ b/dictation_server/src/features/users/users.service.ts @@ -63,7 +63,6 @@ import { import { AccountNotFoundError } from '../../repositories/accounts/errors/types'; import { getUserNameAndMailAddress } from '../../gateways/adb2c/utils/utils'; import { AccountsRepositoryService } from '../../repositories/accounts/accounts.repository.service'; -import { Account } from '../../repositories/accounts/entity/account.entity'; import { BlobstorageService } from '../../gateways/blobstorage/blobstorage.service'; @Injectable() @@ -195,7 +194,6 @@ export class UsersService { ); //DBよりアクセス者の所属するアカウントIDを取得する let adminUser: EntityUser; - let account: Account | null; try { adminUser = await this.usersRepository.findUserByExternalId( context, @@ -210,7 +208,7 @@ export class UsersService { } const accountId = adminUser.account_id; - account = adminUser.account; + const account = adminUser.account; //authorIdが重複していないかチェックする if (authorId) { diff --git a/dictation_server/src/gateways/sendgrid/sendgrid.service.ts b/dictation_server/src/gateways/sendgrid/sendgrid.service.ts index b399326..7432e72 100644 --- a/dictation_server/src/gateways/sendgrid/sendgrid.service.ts +++ b/dictation_server/src/gateways/sendgrid/sendgrid.service.ts @@ -20,10 +20,19 @@ import { TYPIST_NAME, VERIFY_LINK, TEMPORARY_PASSWORD, - EMAIL_DUPLICATION, - AUTHOR_ID_DUPLICATION, - UNEXPECTED_ERROR, + EMAIL_DUPLICATION_EN, + AUTHOR_ID_DUPLICATION_EN, + UNEXPECTED_ERROR_EN, + EMAIL_DUPLICATION_DE, + AUTHOR_ID_DUPLICATION_DE, + UNEXPECTED_ERROR_DE, + EMAIL_DUPLICATION_FR, + AUTHOR_ID_DUPLICATION_FR, + UNEXPECTED_ERROR_FR, REQUEST_TIME, + NO_ERROR_MESSAGE_EN, + NO_ERROR_MESSAGE_DE, + NO_ERROR_MESSAGE_FR, } from '../../templates/constants'; import { URL } from 'node:url'; @@ -1387,18 +1396,37 @@ export class SendGridService { `[IN] [${context.getTrackingId()}] ${this.sendMailWithU122.name}`, ); try { - const duplicateEmailsMsg = - duplicateEmails.length === 0 - ? 'エラーはありません' - : duplicateEmails.map((x) => `L${x}`).join(', '); - const duplicateAuthorIdsMsg = - duplicateAuthorIds.length === 0 - ? 'エラーはありません' - : duplicateAuthorIds.map((x) => `L${x}`).join(', '); - const otherErrorsMsg = - otherErrors.length === 0 - ? 'エラーはありません' - : otherErrors.map((x) => `L${x}`).join(', '); + let duplicateEmailsMsgEn = NO_ERROR_MESSAGE_EN; + let duplicateAuthorIdsMsgEn = NO_ERROR_MESSAGE_EN; + let otherErrorsMsgEn = NO_ERROR_MESSAGE_EN; + let duplicateEmailsMsgDe = NO_ERROR_MESSAGE_DE; + let duplicateAuthorIdsMsgDe = NO_ERROR_MESSAGE_DE; + let otherErrorsMsgDe = NO_ERROR_MESSAGE_DE; + let duplicateEmailsMsgFr = NO_ERROR_MESSAGE_FR; + let duplicateAuthorIdsMsgFr = NO_ERROR_MESSAGE_FR; + let otherErrorsMsgFr = NO_ERROR_MESSAGE_FR; + + if (duplicateEmails.length !== 0) { + duplicateEmailsMsgEn = duplicateEmails.map((x) => `L${x}`).join(', '); + duplicateEmailsMsgDe = duplicateEmails.map((x) => `L${x}`).join(', '); + duplicateEmailsMsgFr = duplicateEmails.map((x) => `L${x}`).join(', '); + } + if (duplicateAuthorIds.length !== 0) { + duplicateAuthorIdsMsgEn = duplicateAuthorIds + .map((x) => `L${x}`) + .join(', '); + duplicateAuthorIdsMsgDe = duplicateAuthorIds + .map((x) => `L${x}`) + .join(', '); + duplicateAuthorIdsMsgFr = duplicateAuthorIds + .map((x) => `L${x}`) + .join(', '); + } + if (otherErrors.length !== 0) { + otherErrorsMsgEn = otherErrors.map((x) => `L${x}`).join(', '); + otherErrorsMsgDe = otherErrors.map((x) => `L${x}`).join(', '); + otherErrorsMsgFr = otherErrors.map((x) => `L${x}`).join(', '); + } const subject = 'User Bulk Registration Failed Notification [U-122]'; @@ -1408,27 +1436,51 @@ export class SendGridService { if (!dealerAccountName) { html = this.templateU122NoParentHtml .replaceAll(CUSTOMER_NAME, customerAccountName) - .replaceAll(EMAIL_DUPLICATION, duplicateEmailsMsg) - .replaceAll(AUTHOR_ID_DUPLICATION, duplicateAuthorIdsMsg) - .replaceAll(UNEXPECTED_ERROR, otherErrorsMsg); + .replaceAll(EMAIL_DUPLICATION_EN, duplicateEmailsMsgEn) + .replaceAll(EMAIL_DUPLICATION_DE, duplicateEmailsMsgDe) + .replaceAll(EMAIL_DUPLICATION_FR, duplicateEmailsMsgFr) + .replaceAll(AUTHOR_ID_DUPLICATION_EN, duplicateAuthorIdsMsgEn) + .replaceAll(AUTHOR_ID_DUPLICATION_DE, duplicateAuthorIdsMsgDe) + .replaceAll(AUTHOR_ID_DUPLICATION_FR, duplicateAuthorIdsMsgFr) + .replaceAll(UNEXPECTED_ERROR_EN, otherErrorsMsgEn) + .replaceAll(UNEXPECTED_ERROR_DE, otherErrorsMsgDe) + .replaceAll(UNEXPECTED_ERROR_FR, otherErrorsMsgFr); text = this.templateU122NoParentText .replaceAll(CUSTOMER_NAME, customerAccountName) - .replaceAll(EMAIL_DUPLICATION, duplicateEmailsMsg) - .replaceAll(AUTHOR_ID_DUPLICATION, duplicateAuthorIdsMsg) - .replaceAll(UNEXPECTED_ERROR, otherErrorsMsg); + .replaceAll(EMAIL_DUPLICATION_EN, duplicateEmailsMsgEn) + .replaceAll(EMAIL_DUPLICATION_DE, duplicateEmailsMsgDe) + .replaceAll(EMAIL_DUPLICATION_FR, duplicateEmailsMsgFr) + .replaceAll(AUTHOR_ID_DUPLICATION_EN, duplicateAuthorIdsMsgEn) + .replaceAll(AUTHOR_ID_DUPLICATION_DE, duplicateAuthorIdsMsgDe) + .replaceAll(AUTHOR_ID_DUPLICATION_FR, duplicateAuthorIdsMsgFr) + .replaceAll(UNEXPECTED_ERROR_EN, otherErrorsMsgEn) + .replaceAll(UNEXPECTED_ERROR_DE, otherErrorsMsgDe) + .replaceAll(UNEXPECTED_ERROR_FR, otherErrorsMsgFr); } else { html = this.templateU122Html .replaceAll(CUSTOMER_NAME, customerAccountName) .replaceAll(DEALER_NAME, dealerAccountName) - .replaceAll(EMAIL_DUPLICATION, duplicateEmailsMsg) - .replaceAll(AUTHOR_ID_DUPLICATION, duplicateAuthorIdsMsg) - .replaceAll(UNEXPECTED_ERROR, otherErrorsMsg); + .replaceAll(EMAIL_DUPLICATION_EN, duplicateEmailsMsgEn) + .replaceAll(EMAIL_DUPLICATION_DE, duplicateEmailsMsgDe) + .replaceAll(EMAIL_DUPLICATION_FR, duplicateEmailsMsgFr) + .replaceAll(AUTHOR_ID_DUPLICATION_EN, duplicateAuthorIdsMsgEn) + .replaceAll(AUTHOR_ID_DUPLICATION_DE, duplicateAuthorIdsMsgDe) + .replaceAll(AUTHOR_ID_DUPLICATION_FR, duplicateAuthorIdsMsgFr) + .replaceAll(UNEXPECTED_ERROR_EN, otherErrorsMsgEn) + .replaceAll(UNEXPECTED_ERROR_DE, otherErrorsMsgDe) + .replaceAll(UNEXPECTED_ERROR_FR, otherErrorsMsgFr); text = this.templateU122Text .replaceAll(CUSTOMER_NAME, customerAccountName) .replaceAll(DEALER_NAME, dealerAccountName) - .replaceAll(EMAIL_DUPLICATION, duplicateEmailsMsg) - .replaceAll(AUTHOR_ID_DUPLICATION, duplicateAuthorIdsMsg) - .replaceAll(UNEXPECTED_ERROR, otherErrorsMsg); + .replaceAll(EMAIL_DUPLICATION_EN, duplicateEmailsMsgEn) + .replaceAll(EMAIL_DUPLICATION_DE, duplicateEmailsMsgDe) + .replaceAll(EMAIL_DUPLICATION_FR, duplicateEmailsMsgFr) + .replaceAll(AUTHOR_ID_DUPLICATION_EN, duplicateAuthorIdsMsgEn) + .replaceAll(AUTHOR_ID_DUPLICATION_DE, duplicateAuthorIdsMsgDe) + .replaceAll(AUTHOR_ID_DUPLICATION_FR, duplicateAuthorIdsMsgFr) + .replaceAll(UNEXPECTED_ERROR_EN, otherErrorsMsgEn) + .replaceAll(UNEXPECTED_ERROR_DE, otherErrorsMsgDe) + .replaceAll(UNEXPECTED_ERROR_FR, otherErrorsMsgFr); } // メールを送信する diff --git a/dictation_server/src/templates/constants.ts b/dictation_server/src/templates/constants.ts index d6650a6..47ebb6d 100644 --- a/dictation_server/src/templates/constants.ts +++ b/dictation_server/src/templates/constants.ts @@ -12,6 +12,18 @@ export const FILE_NAME = '$FILE_NAME$'; export const TYPIST_NAME = '$TYPIST_NAME$'; export const TEMPORARY_PASSWORD = '$TEMPORARY_PASSWORD$'; export const REQUEST_TIME = '$REQUEST_TIME$'; -export const EMAIL_DUPLICATION = `$EMAIL_DUPLICATION$`; -export const AUTHOR_ID_DUPLICATION = `$AUTHOR_ID_DUPLICATION$`; -export const UNEXPECTED_ERROR = `$UNEXPECTED_ERROR$`; +// 言語ごとに変更 +export const EMAIL_DUPLICATION_EN = `$EMAIL_DUPLICATION_EN$`; +export const AUTHOR_ID_DUPLICATION_EN = `$AUTHOR_ID_DUPLICATION_EN$`; +export const UNEXPECTED_ERROR_EN = `$UNEXPECTED_ERROR_EN$`; +export const EMAIL_DUPLICATION_DE = `$EMAIL_DUPLICATION_DE$`; +export const AUTHOR_ID_DUPLICATION_DE = `$AUTHOR_ID_DUPLICATION_DE$`; +export const UNEXPECTED_ERROR_DE = `$UNEXPECTED_ERROR_DE$`; +export const EMAIL_DUPLICATION_FR = `$EMAIL_DUPLICATION_FR$`; +export const AUTHOR_ID_DUPLICATION_FR = `$AUTHOR_ID_DUPLICATION_FR$`; +export const UNEXPECTED_ERROR_FR = `$UNEXPECTED_ERROR_FR$`; + +// 言語ごとに当てはまる値 +export const NO_ERROR_MESSAGE_EN = 'No errors'; +export const NO_ERROR_MESSAGE_DE = 'Keine Fehler'; +export const NO_ERROR_MESSAGE_FR = 'Aucune erreur'; diff --git a/dictation_server/src/templates/template_U_122.html b/dictation_server/src/templates/template_U_122.html index f33c4c3..b456eb5 100644 --- a/dictation_server/src/templates/template_U_122.html +++ b/dictation_server/src/templates/template_U_122.html @@ -18,11 +18,11 @@ 1. The e-mail address in the line below has already been registered or is a duplicate of an e-mail address in another line.
- $EMAIL_DUPLICATION$ +   $EMAIL_DUPLICATION_EN$

2. The Author ID in the line below is already registered or is a duplicate of an Author ID in another line.
- $AUTHOR_ID_DUPLICATION$ +   $AUTHOR_ID_DUPLICATION_EN$

* E-mail address and Author ID that have already been registered cannot be registered again.
@@ -35,7 +35,7 @@ 3. An unexpected error occurred during user registration on the following line. If it does not succeed after trying again, please contact your dealer.
-    $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_EN$

If you need support regarding the ODMS Cloud, please contact $DEALER_NAME$. @@ -59,12 +59,12 @@ 1. Die E-Mail-Adresse in der Zeile unten ist bereits registriert oder ist ein Duplikat einer E-Mail-Adresse in einer anderen Zeile.
- $EMAIL_DUPLICATION$ +   $EMAIL_DUPLICATION_DE$

2. Die Author-ID in der Zeile darunter ist bereits registriert oder ein Duplikat einer AuthorID in einer anderen Zeile.
- $AUTHOR_ID_DUPLICATION$ +   $AUTHOR_ID_DUPLICATION_DE$

* E-Mail-Adresse und Autoren-ID, die bereits registriert wurden, können nicht erneut registriert werden.
@@ -78,7 +78,7 @@ 3. Bei der Benutzerregistrierung ist in der folgenden Zeile ein unerwarteter Fehler aufgetreten. Sollte es auch nach einem erneuten Versuch nicht erfolgreich sein, wenden Sie sich bitte an Ihren Händler.
- $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_DE$

Wenn Sie Unterstützung bezüglich ODMS Cloud benötigen, wenden Sie sich bitte an $DEALER_NAME$. @@ -101,13 +101,13 @@

1. L'adresse e-mail dans la ligne ci-dessous a déjà été enregistrée ou est un double d'une adresse e-mail dans une autre ligne.
- $EMAIL_DUPLICATION$ +   $EMAIL_DUPLICATION_FR$

2. L'Identifiant Auteur dans la ligne ci-dessous est déjà enregistré ou est un double d'un Identifiant Auteur dans une autre ligne.
- $AUTHOR_ID_DUPLICATION$ +   $AUTHOR_ID_DUPLICATION_FR$

* L'adresse e-mail et l'Identifiant Auteur déjà enregistrés ne peuvent pas être enregistrés à nouveau.
@@ -121,7 +121,7 @@ 3. Une erreur inattendue s'est produite lors de l'enregistrement de l'utilisateur sur la ligne suivante. Si cela ne fonctionne pas après une nouvelle tentative, veuillez contacter votre revendeur.
- $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_FR$

Si vous avez besoin d'assistance concernant ODMS Cloud, veuillez contacter $DEALER_NAME$. diff --git a/dictation_server/src/templates/template_U_122.txt b/dictation_server/src/templates/template_U_122.txt index 6729c16..59315df 100644 --- a/dictation_server/src/templates/template_U_122.txt +++ b/dictation_server/src/templates/template_U_122.txt @@ -5,16 +5,16 @@ Dear $CUSTOMER_NAME$, Bulk user registration using the CSV file has failed. The cause and location of the error is shown in 1, 2, and 3 below. ( L = Line ) 1. The e-mail address in the line below has already been registered or is a duplicate of an e-mail address in another line. - $EMAIL_DUPLICATION$ + $EMAIL_DUPLICATION_EN$ 2. The Author ID in the line below is already registered or is a duplicate of an Author ID in another line. - $AUTHOR_ID_DUPLICATION$ + $AUTHOR_ID_DUPLICATION_EN$ * E-mail address and Author ID that have already been registered cannot be registered again. * Rows without errors have been successfully registered. Therefore, if you use the same CSV file and register the user that has been successfully registered, a duplicate error will occur. Please create a CSV file containing only the lines where the error occurred, or manually register them one by one. 3. An unexpected error occurred during user registration on the following line. If it does not succeed after trying again, please contact your dealer. -   $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_EN$ If you need support regarding the ODMS Cloud, please contact $DEALER_NAME$. @@ -28,16 +28,16 @@ Sehr geehrte(r) $CUSTOMER_NAME$, Die Massenregistrierung von Benutzern mithilfe der CSV-Datei ist fehlgeschlagen. Die Ursache und der Ort des Fehlers werden in 1, 2 und 3 unten angezeigt. (L = Linie) 1. Die E-Mail-Adresse in der Zeile unten ist bereits registriert oder ist ein Duplikat einer E-Mail-Adresse in einer anderen Zeile. - $EMAIL_DUPLICATION$ + $EMAIL_DUPLICATION_DE$ 2. Die Author-ID in der Zeile darunter ist bereits registriert oder ein Duplikat einer AuthorID in einer anderen Zeile. - $AUTHOR_ID_DUPLICATION$ + $AUTHOR_ID_DUPLICATION_DE$ * E-Mail-Adresse und Autoren-ID, die bereits registriert wurden, können nicht erneut registriert werden. * Zeilen ohne Fehler wurden erfolgreich registriert. Wenn Sie daher dieselbe CSV-Datei verwenden und den erfolgreich registrierten Benutzer registrieren, tritt ein doppelter Fehler auf. Bitte erstellen Sie eine CSV-Datei, die nur die Zeilen enthält, in denen der Fehler aufgetreten ist, oder registrieren Sie sie einzeln manuell. 3. Bei der Benutzerregistrierung ist in der folgenden Zeile ein unerwarteter Fehler aufgetreten. Sollte es auch nach einem erneuten Versuch nicht erfolgreich sein, wenden Sie sich bitte an Ihren Händler. - $UNEXPECTED_ERROR$ + $UNEXPECTED_ERROR_DE$ Wenn Sie Unterstützung bezüglich ODMS Cloud benötigen, wenden Sie sich bitte an $DEALER_NAME$. @@ -51,16 +51,16 @@ Chère/Cher $CUSTOMER_NAME$, L'enregistrement groupé des utilisateurs à l'aide du fichier CSV a échoué. La cause et l'emplacement de l'erreur sont indiqués aux points 1, 2 et 3 ci-dessous. ( L = Ligne ) 1. L'adresse e-mail dans la ligne ci-dessous a déjà été enregistrée ou est un double d'une adresse e-mail dans une autre ligne. - $EMAIL_DUPLICATION$ + $EMAIL_DUPLICATION_FR$ 2. L'Identifiant Auteur dans la ligne ci-dessous est déjà enregistré ou est un double d'un Identifiant Auteur dans une autre ligne. - $AUTHOR_ID_DUPLICATION$ + $AUTHOR_ID_DUPLICATION_FR$ * L'adresse e-mail et l'Identifiant Auteur déjà enregistrés ne peuvent pas être enregistrés à nouveau. * Les lignes sans erreurs ont été enregistrées avec succès. Par conséquent, si vous utilisez le même fichier CSV et enregistrez l'utilisateur qui a été enregistré avec succès, une erreur en double se produira. Veuillez créer un fichier CSV contenant uniquement les lignes où l'erreur s'est produite, ou enregistrez-les manuellement une par une. 3. Une erreur inattendue s'est produite lors de l'enregistrement de l'utilisateur sur la ligne suivante. Si cela ne fonctionne pas après une nouvelle tentative, veuillez contacter votre revendeur. - $UNEXPECTED_ERROR$ + $UNEXPECTED_ERROR_FR$ Si vous avez besoin d'assistance concernant ODMS Cloud, veuillez contacter $DEALER_NAME$. diff --git a/dictation_server/src/templates/template_U_122_no_parent.html b/dictation_server/src/templates/template_U_122_no_parent.html index bd9a2af..1b3903a 100644 --- a/dictation_server/src/templates/template_U_122_no_parent.html +++ b/dictation_server/src/templates/template_U_122_no_parent.html @@ -18,11 +18,11 @@ 1. The e-mail address in the line below has already been registered or is a duplicate of an e-mail address in another line.
- $EMAIL_DUPLICATION$ +   $EMAIL_DUPLICATION_EN$

2. The Author ID in the line below is already registered or is a duplicate of an Author ID in another line.
- $AUTHOR_ID_DUPLICATION$ +   $AUTHOR_ID_DUPLICATION_EN$

* E-mail address and Author ID that have already been registered cannot be registered again.
@@ -35,7 +35,7 @@ 3. An unexpected error occurred during user registration on the following line. If it does not succeed after trying again, please contact your dealer.
-    $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_EN$

If you received this e-mail in error, please delete this e-mail from your system.
@@ -56,12 +56,12 @@ 1. Die E-Mail-Adresse in der Zeile unten ist bereits registriert oder ist ein Duplikat einer E-Mail-Adresse in einer anderen Zeile.
- $EMAIL_DUPLICATION$ +   $EMAIL_DUPLICATION_DE$

2. Die Author-ID in der Zeile darunter ist bereits registriert oder ein Duplikat einer AuthorID in einer anderen Zeile.
- $AUTHOR_ID_DUPLICATION$ +   $AUTHOR_ID_DUPLICATION_DE$

* E-Mail-Adresse und Autoren-ID, die bereits registriert wurden, können nicht erneut registriert werden.
@@ -75,7 +75,7 @@ 3. Bei der Benutzerregistrierung ist in der folgenden Zeile ein unerwarteter Fehler aufgetreten. Sollte es auch nach einem erneuten Versuch nicht erfolgreich sein, wenden Sie sich bitte an Ihren Händler.
- $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_DE$

Wenn Sie diese E-Mail irrtümlich erhalten haben, löschen Sie diese E-Mail bitte aus Ihrem System.
@@ -95,13 +95,13 @@

1. L'adresse e-mail dans la ligne ci-dessous a déjà été enregistrée ou est un double d'une adresse e-mail dans une autre ligne.
- $EMAIL_DUPLICATION$ +   $EMAIL_DUPLICATION_FR$

2. L'Identifiant Auteur dans la ligne ci-dessous est déjà enregistré ou est un double d'un Identifiant Auteur dans une autre ligne.
- $AUTHOR_ID_DUPLICATION$ +   $AUTHOR_ID_DUPLICATION_FR$

* L'adresse e-mail et l'Identifiant Auteur déjà enregistrés ne peuvent pas être enregistrés à nouveau.
@@ -115,7 +115,7 @@ 3. Une erreur inattendue s'est produite lors de l'enregistrement de l'utilisateur sur la ligne suivante. Si cela ne fonctionne pas après une nouvelle tentative, veuillez contacter votre revendeur.
- $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_FR$

Si vous avez reçu cet e-mail par erreur, veuillez supprimer cet e-mail de votre système.
diff --git a/dictation_server/src/templates/template_U_122_no_parent.txt b/dictation_server/src/templates/template_U_122_no_parent.txt index f91ba7f..f9b3461 100644 --- a/dictation_server/src/templates/template_U_122_no_parent.txt +++ b/dictation_server/src/templates/template_U_122_no_parent.txt @@ -5,16 +5,16 @@ Dear $CUSTOMER_NAME$, Bulk user registration using the CSV file has failed. The cause and location of the error is shown in 1, 2, and 3 below. ( L = Line ) 1. The e-mail address in the line below has already been registered or is a duplicate of an e-mail address in another line. - $EMAIL_DUPLICATION$ + $EMAIL_DUPLICATION_EN$ 2. The Author ID in the line below is already registered or is a duplicate of an Author ID in another line. - $AUTHOR_ID_DUPLICATION$ + $AUTHOR_ID_DUPLICATION_EN$ * E-mail address and Author ID that have already been registered cannot be registered again. * Rows without errors have been successfully registered. Therefore, if you use the same CSV file and register the user that has been successfully registered, a duplicate error will occur. Please create a CSV file containing only the lines where the error occurred, or manually register them one by one. 3. An unexpected error occurred during user registration on the following line. If it does not succeed after trying again, please contact your dealer. -   $UNEXPECTED_ERROR$ +   $UNEXPECTED_ERROR_EN$ If you received this e-mail in error, please delete this e-mail from your system. This is an automatically generated e-mail and this mailbox is not monitored. Please do not reply. @@ -26,16 +26,16 @@ Sehr geehrte(r) $CUSTOMER_NAME$, Die Massenregistrierung von Benutzern mithilfe der CSV-Datei ist fehlgeschlagen. Die Ursache und der Ort des Fehlers werden in 1, 2 und 3 unten angezeigt. (L = Linie) 1. Die E-Mail-Adresse in der Zeile unten ist bereits registriert oder ist ein Duplikat einer E-Mail-Adresse in einer anderen Zeile. - $EMAIL_DUPLICATION$ + $EMAIL_DUPLICATION_DE$ 2. Die Author-ID in der Zeile darunter ist bereits registriert oder ein Duplikat einer AuthorID in einer anderen Zeile. - $AUTHOR_ID_DUPLICATION$ + $AUTHOR_ID_DUPLICATION_DE$ * E-Mail-Adresse und Autoren-ID, die bereits registriert wurden, können nicht erneut registriert werden. * Zeilen ohne Fehler wurden erfolgreich registriert. Wenn Sie daher dieselbe CSV-Datei verwenden und den erfolgreich registrierten Benutzer registrieren, tritt ein doppelter Fehler auf. Bitte erstellen Sie eine CSV-Datei, die nur die Zeilen enthält, in denen der Fehler aufgetreten ist, oder registrieren Sie sie einzeln manuell. 3. Bei der Benutzerregistrierung ist in der folgenden Zeile ein unerwarteter Fehler aufgetreten. Sollte es auch nach einem erneuten Versuch nicht erfolgreich sein, wenden Sie sich bitte an Ihren Händler. - $UNEXPECTED_ERROR$ + $UNEXPECTED_ERROR_DE$ Wenn Sie diese E-Mail irrtümlich erhalten haben, löschen Sie diese E-Mail bitte aus Ihrem System. Dies ist eine automatisch generierte E-Mail und diese Mailbox wird nicht überwacht. Bitte antworten Sie nicht. @@ -47,16 +47,16 @@ Chère/Cher $CUSTOMER_NAME$, L'enregistrement groupé des utilisateurs à l'aide du fichier CSV a échoué. La cause et l'emplacement de l'erreur sont indiqués aux points 1, 2 et 3 ci-dessous. ( L = Ligne ) 1. L'adresse e-mail dans la ligne ci-dessous a déjà été enregistrée ou est un double d'une adresse e-mail dans une autre ligne. - $EMAIL_DUPLICATION$ + $EMAIL_DUPLICATION_FR$ 2. L'Identifiant Auteur dans la ligne ci-dessous est déjà enregistré ou est un double d'un Identifiant Auteur dans une autre ligne. - $AUTHOR_ID_DUPLICATION$ + $AUTHOR_ID_DUPLICATION_FR$ * L'adresse e-mail et l'Identifiant Auteur déjà enregistrés ne peuvent pas être enregistrés à nouveau. * Les lignes sans erreurs ont été enregistrées avec succès. Par conséquent, si vous utilisez le même fichier CSV et enregistrez l'utilisateur qui a été enregistré avec succès, une erreur en double se produira. Veuillez créer un fichier CSV contenant uniquement les lignes où l'erreur s'est produite, ou enregistrez-les manuellement une par une. 3. Une erreur inattendue s'est produite lors de l'enregistrement de l'utilisateur sur la ligne suivante. Si cela ne fonctionne pas après une nouvelle tentative, veuillez contacter votre revendeur. - $UNEXPECTED_ERROR$ + $UNEXPECTED_ERROR_FR$ Si vous avez reçu cet e-mail par erreur, veuillez supprimer cet e-mail de votre système. Il s'agit d'un e-mail généré automatiquement et cette boîte aux lettres n'est pas surveillée. Merci de ne pas répondre. \ No newline at end of file