Skip to content

Commit

Permalink
Merge pull request DSpace#3036 from DSpace/backport-2973-to-main
Browse files Browse the repository at this point in the history
[Port main] added maxlength and hint to resource policy
  • Loading branch information
tdonohue authored May 10, 2024
2 parents 688390f + 6ac9965 commit a7e4f7d
Show file tree
Hide file tree
Showing 29 changed files with 106 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ const policyActionList: DynamicFormOptionConfig<any>[] = [
export const RESOURCE_POLICY_FORM_NAME_CONFIG: DsDynamicInputModelConfig = {
id: 'name',
label: 'resource-policies.form.name.label',
maxLength: 30,
hint: 'resource-policies.form.name.hint',
metadataFields: [],
repeatable: false,
submissionId: '',
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/ar.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6550,6 +6550,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "الاسم",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "حدد نوع السياسة",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/bn.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5035,6 +5035,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "নাম",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "নীতির টাইপ নির্বাচন করুন",

Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/ca.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5459,6 +5459,9 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nom",

//"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.name.hint": "Màxim 30 caràcters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Seleccioneu el tipus de política",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/cs.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5518,6 +5518,10 @@
// TODO New key - Add a translation
"resource-policies.form.name.label": "Name",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
// TODO New key - Add a translation
"resource-policies.form.policy-type.label": "Select the policy type",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/de.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4655,6 +4655,9 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Name",

//"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.name.hint": "Maximal 30 Zeichen",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Wählen Sie den Richtlinientyp",

Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/el.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2114,6 +2114,9 @@
"resource-policies.form.eperson-group-list.table.headers.id": "ID",
"resource-policies.form.eperson-group-list.table.headers.name": "Ονομα",
"resource-policies.form.name.label": "Ονομα",
//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.policy-type.label": "Επιλέξτε τον τύπο πολιτικής",
"resource-policies.form.policy-type.required": "Πρέπει να επιλέξετε τον τύπο πολιτικής πόρων.",
"resource-policies.table.headers.action": "Δράση",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4246,6 +4246,8 @@

"resource-policies.form.name.label": "Name",

"resource-policies.form.name.hint": "Max 30 characters",

"resource-policies.form.policy-type.label": "Select the policy type",

"resource-policies.form.policy-type.required": "You must select the resource policy type.",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/es.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5788,6 +5788,9 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nombre",

//"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.name.hint": "Máximo 30 caracteres",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Seleccione el tipo de política",

Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/fi.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5739,6 +5739,9 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nimi",

//"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.name.hint": "Enintään 30 merkkiä",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Valitse käytäntötyyppi",

Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/fr.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4940,6 +4940,9 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nom",

//"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.name.hint": "30 caractères maximum",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Sélectionner le type de règle",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/gd.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5033,6 +5033,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Ainm",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Tagh an seòrsa poileasaidh",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/hi.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3854,6 +3854,10 @@

"resource-policies.form.name.label": "नाम",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

"resource-policies.form.policy-type.label": "नीति प्रकार चुनें",

"resource-policies.form.policy-type.required": "आपको संसाधन नीति प्रकार का चयन करना होगा।",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/hu.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6330,6 +6330,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Név",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Szabály típus kiválasztása",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/it.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5445,6 +5445,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nome",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Selezionare il tipo di criterio",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/ja.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5613,6 +5613,10 @@
// TODO New key - Add a translation
"resource-policies.form.name.label": "Name",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
// TODO New key - Add a translation
"resource-policies.form.policy-type.label": "Select the policy type",
Expand Down
8 changes: 8 additions & 0 deletions src/assets/i18n/kk.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5390,6 +5390,14 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Аты",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Саясат түрін таңдаңыз",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/lv.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4727,6 +4727,10 @@
// TODO New key - Add a translation
"resource-policies.form.name.label": "Name",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
// TODO New key - Add a translation
"resource-policies.form.policy-type.label": "Select the policy type",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/nl.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5032,6 +5032,10 @@
// TODO New key - Add a translation
"resource-policies.form.name.label": "Name",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
// TODO New key - Add a translation
"resource-policies.form.policy-type.label": "Select the policy type",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/pl.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,9 @@
"resource-policies.form.date.start.label": "Data rozpoczęcia",
"resource-policies.form.description.label": "Opis",
"resource-policies.form.name.label": "Nazwa",
//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.policy-type.label": "Wybierz typ polityki",
"resource-policies.form.policy-type.required": "Musisz wybrać typ polityki zasobu.",
"resource-policies.table.headers.action": "Akcja",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/pt-BR.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5793,6 +5793,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nome",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Selecione o tipo política",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/pt-PT.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5740,6 +5740,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Nome",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Selecione o tipo de política",

Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/sr-cyr.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,9 @@
"resource-policies.form.date.start.label": "Датум почетка",
"resource-policies.form.description.label": "Опис",
"resource-policies.form.name.label": "Име",
//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.policy-type.label": "Изаберите тип полисе",
"resource-policies.form.policy-type.required": "Морате да изаберете тип полисе ресурса.",
"resource-policies.table.headers.action": "Поступак",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/sr-lat.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,9 @@
"resource-policies.form.date.start.label": "Datum početka",
"resource-policies.form.description.label": "Opis",
"resource-policies.form.name.label": "Ime",
//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.policy-type.label": "Izaberite tip polise",
"resource-policies.form.policy-type.required": "Morate da izaberete tip polise resursa.",
"resource-policies.table.headers.action": "Postupak",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/sv.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5160,6 +5160,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Namn",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Välj typ av policy",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/sw.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5613,6 +5613,10 @@
// TODO New key - Add a translation
"resource-policies.form.name.label": "Name",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
// TODO New key - Add a translation
"resource-policies.form.policy-type.label": "Select the policy type",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/tr.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4369,6 +4369,10 @@
// "resource-policies.form.name.label": "Name",
"resource-policies.form.name.label": "Ad",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",
"resource-policies.form.policy-type.label": "Politika türünü seçin",

Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/uk.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4569,6 +4569,10 @@

"resource-policies.form.name.label": "Назва",

//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",

// "resource-policies.form.policy-type.label": "Select the policy type",

"resource-policies.form.policy-type.label": "Виберіть тип політики",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/vi.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,9 @@
"resource-policies.form.eperson-group-list.table.headers.id": "ID",
"resource-policies.form.eperson-group-list.table.headers.name": "Tên",
"resource-policies.form.name.label": "Tên",
//"resource-policies.form.name.hint": "Max 30 characters",
// TODO New key - Add a translation
"resource-policies.form.name.hint": "Max 30 characters",
"resource-policies.form.policy-type.label": "Lựa chọn kiểu chính sách",
"resource-policies.form.policy-type.required": "Bạn cần lựa chọn kiểu chính sách tài nguyên.",
"resource-policies.table.headers.action": "Quyền",
Expand Down

0 comments on commit a7e4f7d

Please sign in to comment.