Skip to content

Commit

Permalink
fix(translations): add missing job types (#493)
Browse files Browse the repository at this point in the history
* fix(translations): add missing job types

* fix(translations): improve word spacing
  • Loading branch information
ismay authored Apr 19, 2023
1 parent ce72e92 commit 77d416a
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 10 deletions.
94 changes: 86 additions & 8 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: 2023-02-20T11:19:50.904Z\n"
"PO-Revision-Date: 2023-02-20T11:19:50.904Z\n"
"POT-Creation-Date: 2023-04-19T09:56:40.816Z\n"
"PO-Revision-Date: 2023-04-19T09:56:40.816Z\n"

msgid "Not authorized"
msgstr "Not authorized"
Expand Down Expand Up @@ -273,9 +273,21 @@ msgstr "Scheduled"
msgid "Stopped"
msgstr "Stopped"

msgid "Account expiry alert"
msgstr "Account expiry alert"

msgid "Exchange aggregate data"
msgstr "Exchange aggregate data"

msgid "Analytics table"
msgstr "Analytics table"

msgid "Analytics table update"
msgstr "Analytics table update"

msgid "Complete data set registration import"
msgstr "Complete data set registration import"

msgid "Continuous analytics table"
msgstr "Continuous analytics table"

Expand All @@ -294,21 +306,66 @@ msgstr "Data statistics"
msgid "Data synchronization"
msgstr "Data synchronization"

msgid "Data value import"
msgstr "Data value import"

msgid "Data value import internal"
msgstr "Data value import internal"

msgid "Disable inactive users"
msgstr "Disable inactive users"

msgid "Enrollment import"
msgstr "Enrollment import"

msgid "Event import"
msgstr "Event import"

msgid "Event programs data sync"
msgstr "Event programs data sync"

msgid "File resource clean up"
msgstr "File resource clean up"

msgid "GEOJSON import"
msgstr "GEOJSON import"

msgid "GML import"
msgstr "GML import"

msgid "Image processing"
msgstr "Image processing"

msgid "Leader election"
msgstr "Leader election"

msgid "Leader renewal"
msgstr "Leader renewal"

msgid "Lock exception cleanup"
msgstr "Lock exception cleanup"

msgid "Materialized sql view update"
msgstr "Materialized sql view update"

msgid "Metadata import"
msgstr "Metadata import"

msgid "Metadata synchronization"
msgstr "Metadata synchronization"

msgid "Mock"
msgstr "Mock"

msgid "Monitoring"
msgstr "Monitoring"

msgid "Predictor"
msgstr "Predictor"

msgid "Program data sync"
msgstr "Program data sync"

msgid "Program notifications"
msgstr "Program notifications"

Expand All @@ -318,24 +375,45 @@ msgstr "Push analysis"
msgid "Remove expired reserved values"
msgstr "Remove expired reserved values"

msgid "Remove used or expired reserved values"
msgstr "Remove used or expired reserved values"

msgid "Resource table"
msgstr "Resource table"

msgid "Send scheduled message"
msgstr "Send scheduled message"

msgid "SMS send"
msgstr "SMS send"

msgid "System version update check"
msgstr "System version update check"

msgid "TEI import"
msgstr "TEI import"

msgid "Test"
msgstr "Test"

msgid "Tracker import job"
msgstr "Tracker import job"

msgid "Tracker import notification job"
msgstr "Tracker import notification job"

msgid "Tracker import rule engine job"
msgstr "Tracker import rule engine job"

msgid "Tracker programs data sync"
msgstr "Tracker programs data sync"

msgid "Tracker search optimization"
msgstr "Tracker search optimization"

msgid "Validation results notification"
msgstr "Validation results notification"

msgid "Disable inactive users"
msgstr "Disable inactive users"

msgid "Exchange aggregate data"
msgstr "Exchange aggregate data"

msgid "A CRON expression is required"
msgstr "A CRON expression is required"

Expand Down
34 changes: 32 additions & 2 deletions src/services/server-translations/jobTypesMap.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,57 @@
import i18n from '@dhis2/d2-i18n'

const jobTypesMap = {
ACCOUNT_EXPIRY_ALERT: i18n.t('Account expiry alert'),
AGGREGATE_DATA_EXCHANGE: i18n.t('Exchange aggregate data'),
ANALYTICS_TABLE: i18n.t('Analytics table'),
ANALYTICSTABLE_UPDATE: i18n.t('Analytics table update'),
COMPLETE_DATA_SET_REGISTRATION_IMPORT: i18n.t(
'Complete data set registration import'
),
CONTINUOUS_ANALYTICS_TABLE: i18n.t('Continuous analytics table'),
CREDENTIALS_EXPIRY_ALERT: i18n.t('Credentials expiry alert'),
DATA_INTEGRITY: i18n.t('Data integrity'),
DATA_SET_NOTIFICATION: i18n.t('Dataset notification'),
DATA_STATISTICS: i18n.t('Data statistics'),
DATA_SYNC: i18n.t('Data synchronization'),
DATAVALUE_IMPORT: i18n.t('Data value import'),
DATAVALUE_IMPORT_INTERNAL: i18n.t('Data value import internal'),
DISABLE_INACTIVE_USERS: i18n.t('Disable inactive users'),
ENROLLMENT_IMPORT: i18n.t('Enrollment import'),
EVENT_IMPORT: i18n.t('Event import'),
EVENT_PROGRAMS_DATA_SYNC: i18n.t('Event programs data sync'),
FILE_RESOURCE_CLEANUP: i18n.t('File resource clean up'),
GEOJSON_IMPORT: i18n.t('GEOJSON import'),
GML_IMPORT: i18n.t('GML import'),
IMAGE_PROCESSING: i18n.t('Image processing'),
LEADER_ELECTION: i18n.t('Leader election'),
LEADER_RENEWAL: i18n.t('Leader renewal'),
LOCK_EXCEPTION_CLEANUP: i18n.t('Lock exception cleanup'),
MATERIALIZED_SQL_VIEW_UPDATE: i18n.t('Materialized sql view update'),
METADATA_IMPORT: i18n.t('Metadata import'),
META_DATA_SYNC: i18n.t('Metadata synchronization'),
MOCK: i18n.t('Mock'),
MONITORING: i18n.t('Monitoring'),
PREDICTOR: i18n.t('Predictor'),
PROGRAM_DATA_SYNC: i18n.t('Program data sync'),
PROGRAM_NOTIFICATIONS: i18n.t('Program notifications'),
PUSH_ANALYSIS: i18n.t('Push analysis'),
REMOVE_EXPIRED_RESERVED_VALUES: i18n.t('Remove expired reserved values'),
REMOVE_USED_OR_EXPIRED_RESERVED_VALUES: i18n.t(
'Remove used or expired reserved values'
),
RESOURCE_TABLE: i18n.t('Resource table'),
SEND_SCHEDULED_MESSAGE: i18n.t('Send scheduled message'),
SMS_SEND: i18n.t('SMS send'),
SYSTEM_VERSION_UPDATE_CHECK: i18n.t('System version update check'),
TEI_IMPORT: i18n.t('TEI import'),
TEST: i18n.t('Test'),
TRACKER_IMPORT_JOB: i18n.t('Tracker import job'),
TRACKER_IMPORT_NOTIFICATION_JOB: i18n.t('Tracker import notification job'),
TRACKER_IMPORT_RULE_ENGINE_JOB: i18n.t('Tracker import rule engine job'),
TRACKER_PROGRAMS_DATA_SYNC: i18n.t('Tracker programs data sync'),
TRACKER_SEARCH_OPTIMIZATION: i18n.t('Tracker search optimization'),
VALIDATION_RESULTS_NOTIFICATION: i18n.t('Validation results notification'),
DISABLE_INACTIVE_USERS: i18n.t('Disable inactive users'),
AGGREGATE_DATA_EXCHANGE: i18n.t('Exchange aggregate data'),
}

export default jobTypesMap

1 comment on commit 77d416a

@dhis2-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.