Skip to content

Commit

Permalink
fix: update options to indicate which are XML [DHIS2-12655]
Browse files Browse the repository at this point in the history
  • Loading branch information
benguaraldi committed Feb 12, 2024
1 parent d1ae89e commit b4b818f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 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-02-10T01:26:37.190Z\n"
"PO-Revision-Date: 2024-02-10T01:26:37.191Z\n"
"POT-Creation-Date: 2024-02-12T17:08:02.188Z\n"
"PO-Revision-Date: 2024-02-12T17:08:02.189Z\n"

msgid "Something went wrong when loading the current user!"
msgstr "Something went wrong when loading the current user!"
Expand Down Expand Up @@ -214,11 +214,11 @@ msgstr "JSON"
msgid "CSV"
msgstr "CSV"

msgid "DXF2"
msgstr "DXF2"
msgid "DXF2 (XML)"
msgstr "DXF2 (XML)"

msgid "ADX"
msgstr "ADX"
msgid "ADX (XML)"
msgstr "ADX (XML)"

msgid "PDF"
msgstr "PDF"
Expand Down
6 changes: 3 additions & 3 deletions src/components/Inputs/Format.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RadioGroupField } from '../index.js'
const formatOptions = [
{ value: 'json', label: i18n.t('JSON') },
{ value: 'csv', label: i18n.t('CSV') },
{ value: 'xml', label: i18n.t('DXF2') },
{ value: 'xml', label: i18n.t('DXF2 (XML)') },
]

const formatNoCsvOptions = formatOptions.filter((f) => f.value != 'csv')
Expand All @@ -18,11 +18,11 @@ const formatNoXmlNoCsvOptions = formatOptions.filter(

const formatAdxOptions = [
...formatOptions,
{ value: 'adx', label: i18n.t('ADX') },
{ value: 'adx', label: i18n.t('ADX (XML)') },
]
const formatAdxXMLOptions = [
...formatOptions,
{ value: 'adx+xml', label: i18n.t('ADX') },
{ value: 'adx+xml', label: i18n.t('ADX (XML)') },
]
const formatAdxPdfOptions = [
...formatAdxOptions,
Expand Down

0 comments on commit b4b818f

Please sign in to comment.