From 9c36d637e11213b165d0367f203e08caf1e2374b Mon Sep 17 00:00:00 2001 From: henrikmv Date: Fri, 1 Mar 2024 09:09:42 +0100 Subject: [PATCH 01/13] fix: changed on all strings with translator --- i18n/en.pot | 60 +++++++++---------- .../DataEntry/DataEntry.component.js | 2 +- .../note.validatorContainersGetter.js | 2 +- .../components/Notes/Notes.component.js | 6 +- .../NotesSection/NotesSection.component.js | 2 +- .../CommentSection/CommentSection.js | 2 +- .../WidgetEnrollmentComment.component.js | 6 +- .../DataEntry/DataEntry.component.js | 3 +- .../note.validatorContainersGetter.js | 2 +- .../WidgetEventComment.component.js | 6 +- .../note.validatorContainersGetter.js | 2 +- .../ViewEventDataEntry.component.js | 2 +- .../WidgetEventSchedule.component.js | 4 +- 13 files changed, 50 insertions(+), 49 deletions(-) diff --git a/i18n/en.pot b/i18n/en.pot index baf8c8abc3..3b5e03143a 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -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-02-09T11:22:44.980Z\n" -"PO-Revision-Date: 2024-02-09T11:22:44.980Z\n" +"POT-Creation-Date: 2024-03-01T08:09:44.801Z\n" +"PO-Revision-Date: 2024-03-01T08:09:44.801Z\n" msgid "Choose one or more dates..." msgstr "Choose one or more dates..." @@ -194,8 +194,8 @@ msgstr "Basic info" msgid "Status" msgstr "Status" -msgid "Comments" -msgstr "Comments" +msgid "Notes" +msgstr "Notes" msgid "Relationships" msgstr "Relationships" @@ -229,8 +229,8 @@ msgstr "Active" msgid "Completed" msgstr "Completed" -msgid "Please add or cancel comment before saving the event" -msgstr "Please add or cancel comment before saving the event" +msgid "Please add or cancel note before saving the event" +msgstr "Please add or cancel note before saving the event" msgid "Save and add another" msgstr "Save and add another" @@ -596,14 +596,14 @@ msgstr "Offline" msgid "Syncing" msgstr "Syncing" -msgid "Add comment" -msgstr "Add comment" +msgid "Add note" +msgstr "Add note" -msgid "You don't have access to write comments" -msgstr "You don't have access to write comments" +msgid "You don't have access to write notes" +msgstr "You don't have access to write notes" -msgid "Write comment" -msgstr "Write comment" +msgid "Write note" +msgstr "Write note" msgid "was blanked out and hidden by your last action" msgstr "was blanked out and hidden by your last action" @@ -1118,8 +1118,8 @@ msgstr "" "You must provide a reason to check for enrollments in this protected " "program. All activity will be logged." -msgid "Save comment" -msgstr "Save comment" +msgid "Save note" +msgstr "Save note" msgid "Enrollment actions" msgstr "Enrollment actions" @@ -1218,14 +1218,14 @@ msgstr "Add coordinates" msgid "Add area" msgstr "Add area" -msgid "Comments about this enrollment" -msgstr "Comments about this enrollment" +msgid "Notes about this enrollment" +msgstr "Notes about this enrollment" -msgid "Write a comment about this enrollment" -msgstr "Write a comment about this enrollment" +msgid "Write a note about this enrollment" +msgstr "Write a note about this enrollment" -msgid "This enrollment doesn't have any comments" -msgstr "This enrollment doesn't have any comments" +msgid "This enrollment doesn't have any notes" +msgstr "This enrollment doesn't have any notes" msgid "organisation unit could not be retrieved. Please try again later." msgstr "organisation unit could not be retrieved. Please try again later." @@ -1242,14 +1242,14 @@ msgstr "Error" msgid "Warning" msgstr "Warning" -msgid "Comments about this event" -msgstr "Comments about this event" +msgid "Notes about this event" +msgstr "Notes about this event" -msgid "Write a comment about this event" -msgstr "Write a comment about this event" +msgid "Write a note about this event" +msgstr "Write a note about this event" -msgid "This event doesn't have any comments" -msgstr "This event doesn't have any comments" +msgid "This event doesn't have any notes" +msgstr "This event doesn't have any notes" msgid "stage not found in rules execution" msgstr "stage not found in rules execution" @@ -1296,11 +1296,11 @@ msgstr "Schedule info" msgid "Schedule date / Due date" msgstr "Schedule date / Due date" -msgid "Event comments" -msgstr "Event comments" +msgid "Event notes" +msgstr "Event notes" -msgid "Write a comment about this scheduled event" -msgstr "Write a comment about this scheduled event" +msgid "Write a note about this scheduled event" +msgstr "Write a note about this scheduled event" msgid "" "Change information about this {{trackedEntityName}} here. To change " diff --git a/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/DataEntry.component.js b/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/DataEntry.component.js index d70da2b4ae..4262238ff5 100644 --- a/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/DataEntry.component.js +++ b/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/DataEntry.component.js @@ -465,7 +465,7 @@ const dataEntrySectionDefinitions = { }, [dataEntrySectionNames.COMMENTS]: { placement: placements.BOTTOM, - name: i18n.t('Comments'), + name: i18n.t('Notes'), }, [dataEntrySectionNames.RELATIONSHIPS]: { placement: placements.BOTTOM, diff --git a/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/fieldValidators/note.validatorContainersGetter.js b/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/fieldValidators/note.validatorContainersGetter.js index ff5a13c5c7..41277297e3 100644 --- a/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/fieldValidators/note.validatorContainersGetter.js +++ b/src/core_modules/capture-core/components/DataEntries/SingleEventRegistrationEntry/DataEntryWrapper/DataEntry/fieldValidators/note.validatorContainersGetter.js @@ -7,7 +7,7 @@ export const getNoteValidatorContainers = () => { const validatorContainers = [ { validator: validateNote, - message: i18n.t('Please add or cancel comment before saving the event'), + message: i18n.t('Please add or cancel note before saving the event'), }, ]; return validatorContainers; diff --git a/src/core_modules/capture-core/components/Notes/Notes.component.js b/src/core_modules/capture-core/components/Notes/Notes.component.js index 1a7626bfd7..bba9546503 100644 --- a/src/core_modules/capture-core/components/Notes/Notes.component.js +++ b/src/core_modules/capture-core/components/Notes/Notes.component.js @@ -160,7 +160,7 @@ class NotesPlain extends React.Component { primary small > - {i18n.t('Add comment')} + {i18n.t('Add note')} diff --git a/src/core_modules/capture-core/components/Pages/ViewEvent/RightColumn/NotesSection/NotesSection.component.js b/src/core_modules/capture-core/components/Pages/ViewEvent/RightColumn/NotesSection/NotesSection.component.js index 11487a33d2..d0124c562b 100644 --- a/src/core_modules/capture-core/components/Pages/ViewEvent/RightColumn/NotesSection/NotesSection.component.js +++ b/src/core_modules/capture-core/components/Pages/ViewEvent/RightColumn/NotesSection/NotesSection.component.js @@ -28,7 +28,7 @@ const loadingIndicatorStyle = { width: 36, }; -const headerText = i18n.t('Comments'); +const headerText = i18n.t('Notes'); const getStyles = (theme: Theme) => ({ badge: { diff --git a/src/core_modules/capture-core/components/WidgetComment/CommentSection/CommentSection.js b/src/core_modules/capture-core/components/WidgetComment/CommentSection/CommentSection.js index 1e7a26525d..95d61300c9 100644 --- a/src/core_modules/capture-core/components/WidgetComment/CommentSection/CommentSection.js +++ b/src/core_modules/capture-core/components/WidgetComment/CommentSection/CommentSection.js @@ -145,7 +145,7 @@ const CommentSectionPlain = ({ onClick={onAddComment} primary > - {i18n.t('Save comment')} + {i18n.t('Save note')}