Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DLCM
UI
DLCM-Portal
Commits
0a8d5ae0
Commit
0a8d5ae0
authored
Dec 15, 2021
by
Florent Poittevin
Browse files
fix: translate new notification type
parent
a3d1a1c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/app/enums/index.ts
View file @
0a8d5ae0
...
...
@@ -767,29 +767,35 @@ export namespace Enums {
export
type
TypeEnum
=
"
ACCESS_DATASET_REQUEST
"
|
"
JOIN_ORGUNIT_REQUEST
"
|
"
VALIDATE_DEPOSIT_REQUEST
"
|
"
CREATED_DEPOSIT_INFO
"
|
"
IN_ERROR_DEPOSIT_INFO
"
|
"
CREATE_ORGUNIT_REQUEST
"
|
"
IN_ERROR_SIP_INFO
"
|
"
IN_ERROR_AIP_INFO
"
|
"
VALIDATE_DEPOSIT_REQUEST
"
|
"
MY_APPROVED_DEPOSIT_INFO
"
|
"
MY_COMPLETED_DEPOSIT_INFO
"
|
"
MY_INDIRECT_COMPLETED_DEPOSIT_INFO
"
|
"
CREATED_DEPOSIT_INFO
"
|
"
IN_ERROR_DEPOSIT_INFO
"
|
"
IN_ERROR_DIP_INFO
"
|
"
IN_ERROR_DOWNLOADED_AIP_INFO
"
|
"
APPROVE_DISPOSAL_
BY_ORGUNIT_
REQUEST
"
|
"
APPROVE_DISPOSAL_REQUEST
"
;
|
"
APPROVE_DISPOSAL_REQUEST
"
|
"
APPROVE_DISPOSAL_
BY_ORGUNIT_
REQUEST
"
;
export
const
TypeEnum
=
{
ACCESS_DATASET_REQUEST
:
"
ACCESS_DATASET_REQUEST
"
as
TypeEnum
,
JOIN_ORGUNIT_REQUEST
:
"
JOIN_ORGUNIT_REQUEST
"
as
TypeEnum
,
VALIDATE_DEPOSIT_REQUEST
:
"
VALIDATE_DEPOSIT_REQUEST
"
as
TypeEnum
,
CREATED_DEPOSIT_INFO
:
"
CREATED_DEPOSIT_INFO
"
as
TypeEnum
,
IN_ERROR_DEPOSIT_INFO
:
"
IN_ERROR_DEPOSIT_INFO
"
as
TypeEnum
,
CREATE_ORGUNIT_REQUEST
:
"
CREATE_ORGUNIT_REQUEST
"
as
TypeEnum
,
IN_ERROR_SIP_INFO
:
"
IN_ERROR_SIP_INFO
"
as
TypeEnum
,
IN_ERROR_AIP_INFO
:
"
IN_ERROR_AIP_INFO
"
as
TypeEnum
,
VALIDATE_DEPOSIT_REQUEST
:
"
VALIDATE_DEPOSIT_REQUEST
"
as
TypeEnum
,
MY_APPROVED_DEPOSIT_INFO
:
"
MY_APPROVED_DEPOSIT_INFO
"
as
TypeEnum
,
MY_COMPLETED_DEPOSIT_INFO
:
"
MY_COMPLETED_DEPOSIT_INFO
"
as
TypeEnum
,
MY_INDIRECT_COMPLETED_DEPOSIT_INFO
:
"
MY_INDIRECT_COMPLETED_DEPOSIT_INFO
"
as
TypeEnum
,
CREATED_DEPOSIT_INFO
:
"
CREATED_DEPOSIT_INFO
"
as
TypeEnum
,
IN_ERROR_DEPOSIT_INFO
:
"
IN_ERROR_DEPOSIT_INFO
"
as
TypeEnum
,
IN_ERROR_DIP_INFO
:
"
IN_ERROR_DIP_INFO
"
as
TypeEnum
,
IN_ERROR_DOWNLOADED_AIP_INFO
:
"
IN_ERROR_DOWNLOADED_AIP_INFO
"
as
TypeEnum
,
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST
:
"
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST
"
as
TypeEnum
,
APPROVE_DISPOSAL_REQUEST
:
"
APPROVE_DISPOSAL_REQUEST
"
as
TypeEnum
,
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST
:
"
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST
"
as
TypeEnum
,
};
export
const
TypeEnumTranslate
:
KeyValue
[]
=
[
{
...
...
@@ -800,29 +806,41 @@ export namespace Enums {
key
:
TypeEnum
.
JOIN_ORGUNIT_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.joinOrgUnitRequest
"
),
},
{
key
:
TypeEnum
.
CREATE_ORGUNIT_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.createOrgUnitRequest
"
),
},
{
key
:
TypeEnum
.
IN_ERROR_SIP_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.inErrorSipInfo
"
),
},
{
key
:
TypeEnum
.
IN_ERROR_AIP_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.inErrorAipInfo
"
),
},
{
key
:
TypeEnum
.
VALIDATE_DEPOSIT_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.validateDepositRequest
"
),
},
{
key
:
TypeEnum
.
CREAT
ED_DEPOSIT_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
creat
edDepositInfo
"
),
key
:
TypeEnum
.
MY_APPROV
ED_DEPOSIT_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
myApprov
edDepositInfo
"
),
},
{
key
:
TypeEnum
.
IN_ERROR
_DEPOSIT_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
inError
DepositInfo
"
),
key
:
TypeEnum
.
MY_COMPLETED
_DEPOSIT_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
myCompleted
DepositInfo
"
),
},
{
key
:
TypeEnum
.
CREATE_ORGUNIT_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
createOrgUnitRequest
"
),
key
:
TypeEnum
.
MY_INDIRECT_COMPLETED_DEPOSIT_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
myIndirectCompletedDepositInfo
"
),
},
{
key
:
TypeEnum
.
IN_ERROR_
SI
P
_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
inErrorSip
Info
"
),
key
:
TypeEnum
.
CREATED_DEPO
SI
T
_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.
createdDeposit
Info
"
),
},
{
key
:
TypeEnum
.
IN_ERROR_
AIP
_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.inError
Aip
Info
"
),
key
:
TypeEnum
.
IN_ERROR_
DEPOSIT
_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.inError
Deposit
Info
"
),
},
{
key
:
TypeEnum
.
IN_ERROR_DIP_INFO
,
...
...
@@ -832,14 +850,14 @@ export namespace Enums {
key
:
TypeEnum
.
IN_ERROR_DOWNLOADED_AIP_INFO
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.inErrorDownloadedAipInfo
"
),
},
{
key
:
TypeEnum
.
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.approveDisposalByOrgunitRequest
"
),
},
{
key
:
TypeEnum
.
APPROVE_DISPOSAL_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.approveDisposalRequest
"
),
},
{
key
:
TypeEnum
.
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST
,
value
:
MARK_AS_TRANSLATABLE
(
"
notification.enum.notificationType.approveDisposalByOrgunitRequest
"
),
},
];
}
...
...
src/assets/i18n/de.json
View file @
0a8d5ae0
...
...
@@ -1629,6 +1629,9 @@
"inErrorDownloadedAipInfo"
:
"Fehler AIP-Download"
,
"inErrorSipInfo"
:
"SIP-Fehler"
,
"joinOrgUnitRequest"
:
"Antrag Beitritt zu einer Organisationseinheit"
,
"myApprovedDepositInfo"
:
"notification.enum.notificationType.myApprovedDepositInfo"
,
"myCompletedDepositInfo"
:
"notification.enum.notificationType.myCompletedDepositInfo"
,
"myIndirectCompletedDepositInfo"
:
"notification.enum.notificationType.myIndirectCompletedDepositInfo"
,
"validateDepositRequest"
:
"Antrag auf Validierung einer Datenablage"
}
},
...
...
src/assets/i18n/en.json
View file @
0a8d5ae0
...
...
@@ -1629,6 +1629,9 @@
"inErrorDownloadedAipInfo"
:
"AIP download in error"
,
"inErrorSipInfo"
:
"SIP in error"
,
"joinOrgUnitRequest"
:
"Organizational unit membership request"
,
"myApprovedDepositInfo"
:
"Deposit approved"
,
"myCompletedDepositInfo"
:
"Deposit completed"
,
"myIndirectCompletedDepositInfo"
:
"Deposit for which you are a contributor completed"
,
"validateDepositRequest"
:
"Deposit approval request"
}
},
...
...
@@ -2156,4 +2159,4 @@
"title"
:
"User guide"
,
"tooltipClose"
:
"Close user guide"
}
}
\ No newline at end of file
}
src/assets/i18n/fr.json
View file @
0a8d5ae0
...
...
@@ -1629,6 +1629,9 @@
"inErrorDownloadedAipInfo"
:
"AIP téléchargé en erreur"
,
"inErrorSipInfo"
:
"SIP en erreur"
,
"joinOrgUnitRequest"
:
"Demande pour rejoindre une unité organisationnelle"
,
"myApprovedDepositInfo"
:
"Dépôt approuvé"
,
"myCompletedDepositInfo"
:
"Dépôt complété"
,
"myIndirectCompletedDepositInfo"
:
"Dépôt dont vous être contributeur complété"
,
"validateDepositRequest"
:
"Demande de validation d'un dépôt"
}
},
...
...
@@ -2156,4 +2159,4 @@
"title"
:
"Guide d'utilisation"
,
"tooltipClose"
:
"Fermer le guide d'utilisation"
}
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment