Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(translations): add missing job types #493

Merged
merged 2 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-18T15:34:57.333Z\n"
"PO-Revision-Date: 2023-04-18T15:34:57.333Z\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 "Analyticstable update"
msgstr "Analyticstable 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 "Datavalue import"
msgstr "Datavalue import"

msgid "Datavalue import internal"
msgstr "Datavalue 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('Analyticstable update'),
ismay marked this conversation as resolved.
Show resolved Hide resolved
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('Datavalue import'),
ismay marked this conversation as resolved.
Show resolved Hide resolved
DATAVALUE_IMPORT_INTERNAL: i18n.t('Datavalue import internal'),
ismay marked this conversation as resolved.
Show resolved Hide resolved
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