Skip to content

Commit

Permalink
Merge pull request #2132 from KomodoPlatform/fix_ts
Browse files Browse the repository at this point in the history
Confirm modal translations
  • Loading branch information
smk762 authored Dec 4, 2022
2 parents 530b4cf + 4cbf9ff commit 5511d63
Show file tree
Hide file tree
Showing 9 changed files with 659 additions and 790 deletions.
3 changes: 0 additions & 3 deletions atomic_defi_design/Dex/Components/DexCheckBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ CheckBox
{
id: _content
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: labelWidth
height: _label.height
spacing: 0

Expand All @@ -63,8 +62,6 @@ CheckBox
text: control.text
font: control.font
color: control.textColor
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
verticalAlignment: Text.AlignVCenter
leftPadding: control.indicator.width + control.spacing
wrapMode: Label.Wrap
Expand Down
14 changes: 4 additions & 10 deletions atomic_defi_design/Dex/Constants/General.qml
Original file line number Diff line number Diff line change
Expand Up @@ -374,16 +374,10 @@ QtObject {
}

function getFeesDetailText(feetype, amount, ticker) {
return qsTr("%1 %2 %3 (%4)"
).arg(
feetype
).arg(
formatDouble(amount, 8, false)
).arg(
ticker
).arg(
General.getFiatText(amount, ticker, false)
)
if ([feetype, amount, ticker].includes(undefined)) return ""
let fiat_text = General.getFiatText(amount, ticker, false)
amount = formatDouble(amount, 8, false).toString()
return feetype + " " + amount + " " + ticker + " (" + fiat_text + ")"
}

function getSimpleFromPlaceholder(selectedTicker, selectedOrder, sell_ticker_balance) {
Expand Down
16 changes: 7 additions & 9 deletions atomic_defi_design/Dex/Exchange/Trade/ConfirmTradeModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ MultipageModal
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter

// Large margin Warning
// Large margin warning
FloatingBackground
{
Layout.alignment: Qt.AlignCenter
width: 425
height: 30
width: childrenRect.width
height: childrenRect.height
color: Style.colorRed2
visible: Math.abs(parseFloat(API.app.trading_pg.cex_price_diff)) >= 50

Expand All @@ -95,14 +95,12 @@ MultipageModal
textColor: Style.colorWhite0
visible: Math.abs(parseFloat(API.app.trading_pg.cex_price_diff)) >= 50
spacing: 2
boxWidth: 20
boxHeight: 20
labelWidth: 400
boxWidth: 16
boxHeight: 16
label.wrapMode: Label.NoWrap
text: qsTr("Trade price is more than 50% different to CEX! Confirm?")
font: DexTypo.caption
}

Item { width: 3 }
}
}

Expand Down Expand Up @@ -200,7 +198,7 @@ MultipageModal

Repeater
{
model: root.fees.hasOwnProperty('base_transaction_fees_ticker') ? root.fees.total_fees : []
model: root.fees.hasOwnProperty('base_transaction_fees_ticker') && !API.app.trading_pg.preimage_rpc_busy ? root.fees.total_fees : []
delegate: DefaultText
{
text: General.getFeesDetailText(
Expand Down
230 changes: 105 additions & 125 deletions atomic_defi_design/assets/languages/atomic_defi_de.ts

Large diffs are not rendered by default.

226 changes: 103 additions & 123 deletions atomic_defi_design/assets/languages/atomic_defi_en.ts

Large diffs are not rendered by default.

238 changes: 109 additions & 129 deletions atomic_defi_design/assets/languages/atomic_defi_es.ts

Large diffs are not rendered by default.

248 changes: 114 additions & 134 deletions atomic_defi_design/assets/languages/atomic_defi_fr.ts

Large diffs are not rendered by default.

236 changes: 108 additions & 128 deletions atomic_defi_design/assets/languages/atomic_defi_ru.ts

Large diffs are not rendered by default.

238 changes: 109 additions & 129 deletions atomic_defi_design/assets/languages/atomic_defi_tr.ts

Large diffs are not rendered by default.

0 comments on commit 5511d63

Please sign in to comment.