Skip to content

Commit

Permalink
chore: improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Nov 27, 2024
1 parent d88b9c2 commit ddb3f0e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 30 deletions.
21 changes: 6 additions & 15 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-11-07T11:57:59.094Z\n"
"PO-Revision-Date: 2024-11-07T11:57:59.094Z\n"
"POT-Creation-Date: 2024-11-26T11:09:35.292Z\n"
"PO-Revision-Date: 2024-11-26T11:09:35.292Z\n"

msgid "Choose one or more dates..."
msgstr "Choose one or more dates..."
Expand Down Expand Up @@ -1424,8 +1424,8 @@ msgstr "{{trackedEntityTypeName}} profile"
msgid "tracked entity instance"
msgstr "tracked entity instance"

msgid "Link to an existing {{linkableStageLabel}}"
msgstr "Link to an existing {{linkableStageLabel}}"
msgid "Choose a {{linkableStageLabel}} event"
msgstr "Choose a {{linkableStageLabel}} event"

msgid "Choose a {{linkableStageLabel}}"
msgstr "Choose a {{linkableStageLabel}}"
Expand All @@ -1445,8 +1445,8 @@ msgstr "Ambiguous relationships, contact system administrator"
msgid "Enter details now"
msgstr "Enter details now"

msgid "Link to an existing"
msgstr "Link to an existing"
msgid "Link to an existing event"
msgstr "Link to an existing event"

msgid "Scheduled date"
msgstr "Scheduled date"
Expand Down Expand Up @@ -1681,15 +1681,6 @@ msgstr "Follow up"
msgid "Choose a program stage to filter by {{label}}"
msgstr "Choose a program stage to filter by {{label}}"

msgid "Active enrollments"
msgstr "Active enrollments"

msgid "Completed enrollments"
msgstr "Completed enrollments"

msgid "Cancelled enrollments"
msgstr "Cancelled enrollments"

msgid ""
"Some enrollments were completed successfully, but there was an error while "
"completing the rest. Please see the details below."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const EnrollmentWithFirstStageDataEntry = (props: Props) => {
ref={relatedStageRef}
programId={passOnProps.programId}
programStageId={firstStageMetaData.stage?.id}
currentStageLabel={firstStageMetaData.stage?.name}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const ValidatedPlain = ({
enrollmentId={enrollmentId}
programId={programId}
programStageId={stage?.id}
currentStageLabel={stage.name}
enableLinkExistingEvent
/>
<FinishButtons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type Props = {
linkableStageLabel: string,
relatedStagesDataValues: RelatedStageDataValueStates,
setRelatedStagesDataValues: (() => Object) => void,
currentStageLabel: string,
saveAttempted: boolean,
errorMessages: ErrorMessagesForRelatedStages,
...CssClasses
Expand All @@ -60,7 +59,6 @@ export const EnterDataInOrgUnitPlain = ({
setRelatedStagesDataValues,
saveAttempted,
errorMessages,
currentStageLabel,
classes,
}: Props) => {
const onSelectOrgUnit = (e: { id: string, displayName: string, path: string }) => {
Expand Down Expand Up @@ -98,11 +96,10 @@ export const EnterDataInOrgUnitPlain = ({
<IconInfo16 />
{i18n.t(
relatedStagesDataValues?.orgUnit?.name
? 'Enter {{linkableStageLabel}} details for {{orgUnitLabel}} in the next step after completing this {{currentStageLabel}}.'
: 'Select organisation unit and enter {{linkableStageLabel}} details in the next step after completing this {{currentStageLabel}}.',
? 'Enter {{linkableStageLabel}} details for {{orgUnitLabel}} in the next step'
: 'Select organisation unit and enter {{linkableStageLabel}} details in the next step',
{
linkableStageLabel,
currentStageLabel,
orgUnitLabel: relatedStagesDataValues?.orgUnit?.name,
},
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const LinkToExistingPlain = ({
return (
<div className={classes.searchRow}>
<p className={classes.label}>
{i18n.t('Link to an existing {{linkableStageLabel}}', {
{i18n.t('Choose a {{linkableStageLabel}} event', {
linkableStageLabel,
})}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const RelatedStagesActionsPlain = ({
relatedStagesDataValues,
setRelatedStagesDataValues,
constraint,
currentStageLabel,
errorMessages,
saveAttempted,
enableLinkExistingEvent,
Expand Down Expand Up @@ -170,7 +169,6 @@ export const RelatedStagesActionsPlain = ({
linkableStageLabel={programStage.stageForm.name}
relatedStagesDataValues={relatedStagesDataValues}
setRelatedStagesDataValues={setRelatedStagesDataValues}
currentStageLabel={currentStageLabel}
saveAttempted={saveAttempted}
errorMessages={errorMessages}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export type Props = {|
constraint: ?Constraint,
addErrorMessage: (ErrorMessagesForRelatedStages) => void,
setRelatedStagesDataValues: (() => Object) => void,
currentStageLabel: string,
enableLinkExistingEvent?: boolean,
...CssClasses
|}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const WidgetRelatedStagesPlain = ({
programId,
enrollmentId,
programStageId,
currentStageLabel,
...passOnProps
}: Props, ref) => {
const { currentRelatedStagesStatus, selectedRelationshipType, constraint } = useRelatedStages({
Expand Down Expand Up @@ -108,7 +107,6 @@ const WidgetRelatedStagesPlain = ({
saveAttempted={saveAttempted}
errorMessages={errorMessages}
constraint={constraint}
currentStageLabel={currentStageLabel}
{...passOnProps}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export type Props = {|
programId: string,
enrollmentId?: string,
programStageId: string,
currentStageLabel: string,
enableLinkExistingEvent?: boolean,
|}
export type RelatedStageDataValueStates = {|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export const actions = Object.freeze({
export const mainOptionTranslatedTexts = {
[actions.SCHEDULE_IN_ORG]: i18n.t('Schedule'),
[actions.ENTER_DATA]: i18n.t('Enter details now'),
[actions.LINK_EXISTING_RESPONSE]: i18n.t('Link to an existing'),
[actions.LINK_EXISTING_RESPONSE]: i18n.t('Link to an existing event'),
};

0 comments on commit ddb3f0e

Please sign in to comment.