Skip to content

Commit

Permalink
Update translation
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorisFokkinga committed Nov 13, 2023
1 parent 6abe37b commit bbc28f2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
16 changes: 8 additions & 8 deletions client/src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ const en = {
addMembersPlaceholder: "Search and select to add members"
},
collaboration: {
memberHeader: "{{nbrMember}} members - {{nbrGroups}} groups",
memberHeader: "{{nbrMember}} members {{nbrGroups}} groups",
memberInformation: "If you have any questions about this collaboration, please contact one of the admins:",
noAdminsHeader: "No admins (yet)",
adminsHeader: "Organised by <a style=\"display:inline;\" href=\"mailto:{{bcc}}{{mails}}\"><strong>{{name}}</strong></a>",
Expand Down Expand Up @@ -2399,7 +2399,7 @@ const en = {
column: "Units",
label: "Units (e.g. department or project)",
add: "+ Add unit",
confirmation: "Are you sure you want to remove this unit?",
confirmation: "Are you sure you want to remove unit {{name}}?",
used: "It is being used by:",
collaboration_requests: "Collaboration requests",
invitations: "Organisation invitations",
Expand All @@ -2409,13 +2409,13 @@ const en = {
unitsPlaceHolder: "Select an unit",
collaborationRequest: "Organisational units (optional)",
filter: "All units",
invitationLabel: "CO's to be managed",
invitationTooltip: "Select organisation unit's to limit the responsibilities of the organisation manager",
all: "All CO's",
specify: "Specify CO's",
invitationLabel: "COs of which units to be managed",
invitationTooltip: "Select the organisation units to scope the responsibilities of the organisation manager",
all: "All units",
specify: "Specify units",
back: "Back to all admins",
editRole: "Edit org manager details",
duplicated: "There is already an unit with {{name}} for this organisation"
editRole: "Edit organisation manager details",
duplicated: "There is already an unit named {{name}} for this organisation"
}
};

Expand Down
20 changes: 10 additions & 10 deletions client/src/locale/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ const nl = {
addMembersPlaceholder: "Zoek en selecteer om leden toe te voegen"
},
collaboration: {
memberHeader: "{{nbrMember}} leden - {{nbrGroups}} groepen",
memberHeader: "{{nbrMember}} leden {{nbrGroups}} groepen",
memberInformation: "Neem bij vragen over deze samenwerking contact op met een van de beheerders:",
noAdminsHeader: "(Nog) geen beheerders",
adminsHeader: "Georganiseerd door <a style=\"display:inline;\" href=\"mailto:{{bcc}}{{mails}}\"><strong>{{name}}</strong></a>",
Expand Down Expand Up @@ -2398,24 +2398,24 @@ const nl = {
},
units: {
column: "Units",
label: "Units (e.g. afdeling of project)",
add: "+ Voeg een unit toe",
label: "Units (bijv. afdeling of project)",
add: "+ Voeg unit toe",
confirmation: "Weet je zeker dat je unit {{name}} wilt verwijderen?",
used: "Het wordt gebruikt door:",
collaboration_requests: "Samenwerkingsverzoeken",
invitations: "Organisatie-uitnodigingen",
collaborations: "Samenwerkingen",
organisation_memberships: "Lidmaatschappen",
collaboration: "Relevante units (e.g. afdeling of project)",
collaboration: "Relevante units (bijv. afdeling of project)",
unitsPlaceHolder: "Selecteer een unit",
collaborationRequest: "Organisatie units (optioneel)",
collaborationRequest: "Organisatieunits (optioneel)",
filter: "Alle units",
invitationLabel: "Toegang tot de samenwerkingen",
invitationTooltip: "Selecteer organisatie unit's om de verantwoordelijkheid van de organisatie manager te limiteren",
all: "Alle samenwerkingen",
specify: "Kies samenwerkingen",
invitationLabel: "Managet samenwerkingen van de units",
invitationTooltip: "Selecteer de organisatieunits waarvoor de organisatiemanager verantwoordelijk is",
all: "Alle units",
specify: "Kies units",
back: "Terug naar alle admins",
editRole: "Wijzig org manager details",
editRole: "Wijzig details organisatiemanager",
duplicated: "Er is al een unit met de naam {{name}} voor deze organisatie"
}
};
Expand Down
38 changes: 19 additions & 19 deletions client/src/pages/CollaborationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,25 @@ class CollaborationForm extends React.Component {
tooltip={I18n.t("collaboration.discloseEmailInformationTooltip")}
onChange={() => this.setState({disclose_email_information: !disclose_email_information})}/>}

<SelectField value={organisation}
options={organisations}
name={I18n.t("collaboration.organisation_name")}
placeholder={I18n.t("collaboration.organisationPlaceholder")}
toolTip={I18n.t("collaboration.organisationTooltip")}
onChange={selectedOption => this.setState({organisation: selectedOption},
() => {
this.validateCollaborationName({target: {value: this.state.name}});
this.validateCollaborationShortName({target: {value: this.state.short_name}});
this.updateBreadCrumb(selectedOption,
this.state.collaboration,
false,
false);
this.updateTags(selectedOption.value);
this.updateUnits(selectedOption, {units: []});
})}
searchable={false}
disabled={organisations.length === 1}
/>
{!isEmpty(allUnits) &&
<CollaborationUnits selectedUnits={units}
allUnits={allUnits}
Expand All @@ -653,25 +672,6 @@ class CollaborationForm extends React.Component {
placeholder={I18n.t("collaboration.tagsPlaceholder")}
toolTip={I18n.t("collaboration.tagsTooltip")}
onChange={this.tagsSelectedChanged}/>}
<SelectField value={organisation}
options={organisations}
name={I18n.t("collaboration.organisation_name")}
placeholder={I18n.t("collaboration.organisationPlaceholder")}
toolTip={I18n.t("collaboration.organisationTooltip")}
onChange={selectedOption => this.setState({organisation: selectedOption},
() => {
this.validateCollaborationName({target: {value: this.state.name}});
this.validateCollaborationShortName({target: {value: this.state.short_name}});
this.updateBreadCrumb(selectedOption,
this.state.collaboration,
false,
false);
this.updateTags(selectedOption.value);
this.updateUnits(selectedOption, {units: []});
})}
searchable={false}
disabled={organisations.length === 1}
/>
{(!initial && isEmpty(organisation)) && <ErrorIndicator msg={I18n.t("collaboration.required", {
attribute: I18n.t("collaboration.organisation_name").toLowerCase()
})}/>}
Expand Down

0 comments on commit bbc28f2

Please sign in to comment.