Make untranslatable values, untranslatable #217

Manually merged
jarolrod merged 1 commit from untranslatable-values into main 2023-01-17 09:13:02 +00:00 AGit
jarolrod commented 2023-01-16 06:32:57 +00:00 (Migrated from github.com)

This picks up and replaces https://github.com/bitcoin-core/gui-qml/pull/140

Rebases and removes one more occurrence of a value qsTr() on an untranslatable value.

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

This picks up and replaces https://github.com/bitcoin-core/gui-qml/pull/140 Rebases and removes one more occurrence of a value qsTr() on an untranslatable value. [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/217) [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/217) [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/217) [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/217)
hebasto (Migrated from github.com) reviewed 2023-01-16 15:28:19 +00:00
hebasto (Migrated from github.com) left a comment

Concept ACK.

Concept ACK.
hebasto (Migrated from github.com) commented 2023-01-16 15:28:01 +00:00

Not sure about this.

Not sure about this.
johnny9 (Migrated from github.com) reviewed 2023-01-16 23:45:52 +00:00
johnny9 (Migrated from github.com) commented 2023-01-16 23:45:52 +00:00

Yeah this should still be translated. The translator should be parameterized in this case to convert the GB but not the number.

Yeah this should still be translated. The translator should be parameterized in this case to convert the GB but not the number.
jarolrod (Migrated from github.com) reviewed 2023-01-17 00:43:51 +00:00
jarolrod (Migrated from github.com) commented 2023-01-17 00:43:51 +00:00

ok reverted this line, Still not sure how this will actually end up. The component that ends up being the real number input for our options can either split up the value and the units or paramterize the value. We will see what plays best into the validation that we need to do on the input value.

ok reverted this line, Still not sure how this will actually end up. The component that ends up being the real number input for our options can either split up the value and the units or paramterize the value. We will see what plays best into the validation that we need to do on the input value.
jarolrod commented 2023-01-17 00:44:36 +00:00 (Migrated from github.com)

updated from 35fe19d to d528468

Changes: Leave the prune target text as a qsTr()

updated from 35fe19d to d528468 Changes: Leave the prune target text as a qsTr()
johnny9 (Migrated from github.com) reviewed 2023-01-17 00:49:54 +00:00
johnny9 (Migrated from github.com) commented 2023-01-17 00:49:54 +00:00

Depending on how you implement it. You can use format strings and add args

text: qsTr("File %1 of %2").arg(counter).arg(total)
https://doc.qt.io/qt-5.15/qtquick-internationalization.html

Depending on how you implement it. You can use format strings and add args `text: qsTr("File %1 of %2").arg(counter).arg(total)` https://doc.qt.io/qt-5.15/qtquick-internationalization.html
hebasto (Migrated from github.com) approved these changes 2023-01-17 09:01:32 +00:00
hebasto (Migrated from github.com) left a comment
ACK d528468f75d298aea9f94526dba574e4610b4acb
Sign in to join this conversation.
No description provided.