Skip to content

Commit

Permalink
Merge branch 'master' into feat/tracked-entity-input
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored Dec 11, 2023
2 parents 9170e41 + 34e7b3d commit 1014fd5
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 6 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [100.11.4](https://github.com/dhis2/line-listing-app/compare/v100.11.3...v100.11.4) (2023-12-10)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([b356aa5](https://github.com/dhis2/line-listing-app/commit/b356aa51952428b721c32f000ced94e58c5b2970))

## [100.11.3](https://github.com/dhis2/line-listing-app/compare/v100.11.2...v100.11.3) (2023-12-08)


### Bug Fixes

* add custom errors for analytics requests ([#445](https://github.com/dhis2/line-listing-app/issues/445)) ([cecd9a5](https://github.com/dhis2/line-listing-app/commit/cecd9a5864ce70909d3f9e6e60ba92d91cb3b44d))

## [100.11.2](https://github.com/dhis2/line-listing-app/compare/v100.11.1...v100.11.2) (2023-12-07)


Expand Down
14 changes: 11 additions & 3 deletions i18n/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-09-05T07:20:57.111Z\n"
"POT-Creation-Date: 2023-11-29T10:50:15.561Z\n"
"PO-Revision-Date: 2022-08-23 11:50+0000\n"
"Last-Translator: Jiří Podhorecký, 2023\n"
"Language-Team: Czech (https://app.transifex.com/hisp-uio/teams/100509/cs/)\n"
Expand Down Expand Up @@ -394,7 +394,15 @@ msgstr "Vaše nejsledovanější seznamy řádků"
msgid "Not available offline"
msgstr "Není k dispozici offline"

msgid ""
"This line list may show data that was not available when the interpretation "
"was written."
msgstr ""

msgid "Sort by {{column}}"
msgstr "Řadit podle {{column}}"

msgid "No event"
msgstr ""

msgid "Rows per page"
Expand Down Expand Up @@ -641,11 +649,11 @@ msgstr ""
"K datům v této vizualizaci nemáte přístup. Kontaktujte správce systému."

msgid "You don’t have access to one or more of the chosen organisation units."
msgstr ""
msgstr "Nemáte přístup k jedné nebo více vybraným organizačním jednotkám."

msgid ""
"You don’t have access to event analytics. Contact a system administrator."
msgstr ""
msgstr "Nemáte přístup k analýze událostí. Kontaktujte správce systému."

msgid "Something went wrong"
msgstr "Něco se pokazilo"
Expand Down
19 changes: 19 additions & 0 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,25 @@ msgstr "Something went wrong"
msgid "Registration date"
msgstr "Registration date"

msgid ""
"There's a problem with the generated analytics. Contact a system "
"administrator."
msgstr ""
"There's a problem with the generated analytics. Contact a system "
"administrator."

msgid "There's a syntax problem with the analytics request."
msgstr "There's a syntax problem with the analytics request."

msgid "Organisation unit"
msgstr "Organisation unit"

msgid "Event status"
msgstr "Event status"

msgid "Program status"
msgstr "Program status"

msgid "Last updated on"
msgstr "Last updated on"

Expand Down
10 changes: 9 additions & 1 deletion i18n/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-09-05T07:20:57.111Z\n"
"POT-Creation-Date: 2023-11-29T10:50:15.561Z\n"
"PO-Revision-Date: 2022-08-23 11:50+0000\n"
"Last-Translator: easylin <[email protected]>, 2023\n"
"Language-Team: Chinese (https://app.transifex.com/hisp-uio/teams/100509/zh/)\n"
Expand Down Expand Up @@ -372,9 +372,17 @@ msgstr "您浏览次数最多的行列表"
msgid "Not available offline"
msgstr "离线不可用"

msgid ""
"This line list may show data that was not available when the interpretation "
"was written."
msgstr "该行列表可能会显示编写解释时不可用的数据。"

msgid "Sort by {{column}}"
msgstr "按{{列}}排序"

msgid "No event"
msgstr "无事件"

msgid "Rows per page"
msgstr "行每页"

Expand Down
10 changes: 9 additions & 1 deletion i18n/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-09-05T07:20:57.111Z\n"
"POT-Creation-Date: 2023-11-29T10:50:15.561Z\n"
"PO-Revision-Date: 2022-08-23 11:50+0000\n"
"Last-Translator: easylin <[email protected]>, 2023\n"
"Language-Team: Chinese (China) (https://app.transifex.com/hisp-uio/teams/100509/zh_CN/)\n"
Expand Down Expand Up @@ -370,9 +370,17 @@ msgstr "您查看次数最多的线路列表"
msgid "Not available offline"
msgstr "离线时不可用"

msgid ""
"This line list may show data that was not available when the interpretation "
"was written."
msgstr "该行列表可能会显示编写解释时不可用的数据。"

msgid "Sort by {{column}}"
msgstr "排序方式{{column}}"

msgid "No event"
msgstr "无事件"

msgid "Rows per page"
msgstr "行每页"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "line-listing-app",
"version": "100.11.2",
"version": "100.11.4",
"description": "DHIS2 Line Listing",
"license": "BSD-3-Clause",
"private": true,
Expand Down
8 changes: 8 additions & 0 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { acSetVisualization } from '../actions/visualization.js'
import { parseCondition, OPERATOR_IN } from '../modules/conditions.js'
import { EVENT_TYPE } from '../modules/dataStatistics.js'
import {
analyticsGenerationError,
analyticsRequestError,
dataAccessError,
emptyResponseError,
eventAccessError,
Expand Down Expand Up @@ -245,6 +247,12 @@ const App = () => {
case 'E7217':
output = eventAccessError()
break
case 'E7144':
output = analyticsGenerationError()
break
case 'E7145':
output = analyticsRequestError()
break
default:
output = genericServerError()
}
Expand Down
16 changes: 16 additions & 0 deletions src/modules/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ export const eventAccessError = () =>
)
)

export const analyticsGenerationError = () =>
visualizationError(
GenericError,
i18n.t('Something went wrong'),
i18n.t(
"There's a problem with the generated analytics. Contact a system administrator."
)
)

export const analyticsRequestError = () =>
visualizationError(
GenericError,
i18n.t('Something went wrong'),
i18n.t("There's a syntax problem with the analytics request.")
)

export const getAlertTypeByStatusCode = (statusCode) =>
String(statusCode).match(/50\d/) ? 'error' : 'warning'

Expand Down

0 comments on commit 1014fd5

Please sign in to comment.