feat: show literal text instead of ids + script fixes
This commit is contained in:
parent
6967e0a537
commit
9c637fdd43
|
@ -43,8 +43,7 @@ qmlFiles.forEach(file => {
|
|||
replacementId = translationKeys[enTranslationIndex]
|
||||
} else {
|
||||
// We need to replace all qsTr because we can't mix qsTrId and qsTr
|
||||
// TODO remove chars that are not alphanumarical
|
||||
replacementId = replaceableText.replace(/\s/g, '-').toLowerCase();
|
||||
replacementId = replaceableText.replace(/[^a-zA-Z\d]/g, '-').toLowerCase();
|
||||
}
|
||||
|
||||
quote = match[0][5];
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -15,6 +15,8 @@ lupdate_only{
|
|||
SOURCES = *.qml \
|
||||
app/*.qml \
|
||||
shared/*.qml \
|
||||
onboarding/*.qml \
|
||||
onboarding/Login/*.qml \
|
||||
app/AppLayouts/*.qml \
|
||||
app/AppLayouts/Browser/*.qml \
|
||||
app/AppLayouts/Chat/*.qml \
|
||||
|
@ -31,8 +33,9 @@ SOURCES = *.qml \
|
|||
app/AppLayouts/Wallet/data/*.qml \
|
||||
}
|
||||
|
||||
TRANSLATIONS = status_en.ts \
|
||||
status_es.ts
|
||||
TRANSLATIONS += \
|
||||
i18n/base.ts \
|
||||
i18n/qml_en.ts
|
||||
|
||||
RESOURCES += \
|
||||
imports/Constants.qml \
|
||||
|
|
|
@ -81,7 +81,7 @@ ModalPopup {
|
|||
|
||||
StyledText {
|
||||
//% "At least 6 characters. You will use this password to unlock status on this device & sign transactions."
|
||||
text: qsTrId("at-least-6-characters.-you-will-use-this-password-to-unlock-status-on-this-device-&-sign-transactions.")
|
||||
text: qsTrId("at-least-6-characters-you-will-use-this-password-to-unlock-status-on-this-device-sign-transactions.")
|
||||
wrapMode: Text.WordWrap
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Style.current.xlPadding
|
||||
|
@ -127,9 +127,11 @@ ModalPopup {
|
|||
anchors.topMargin: Style.current.padding
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Style.current.padding
|
||||
label: loading ?
|
||||
//% "Logging in..."
|
||||
qsTrId("logging-in...") :
|
||||
//% "Create password"
|
||||
label: loading ? qsTrId("logging-in...") : qsTrId("create-password")
|
||||
qsTrId("create-password")
|
||||
|
||||
disabled: firstPasswordField.text === "" || repeatPasswordField.text === "" || loading
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ ModalPopup {
|
|||
|
||||
StyledText {
|
||||
//% "Enter 12, 15, 18, 21 or 24 words.\nSeperate words by a single space."
|
||||
text: qsTrId("enter-12,-15,-18,-21-or-24-words.\nseperate-words-by-a-single-space.")
|
||||
text: qsTrId("enter-12--15--18--21-or-24-words--nseperate-words-by-a-single-space-")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 0
|
||||
|
|
|
@ -31,7 +31,7 @@ RowLayout {
|
|||
//% "Truly private communication"
|
||||
title: qsTrId("intro-title1")
|
||||
//% "Chat over a peer-to-peer, encrypted network\n where messages can't be censored or hacked"
|
||||
description: qsTrId("chat-over-a-peer-to-peer,-encrypted-network\n-where-messages-can't-be-censored-or-hacked")
|
||||
description: qsTrId("chat-over-a-peer-to-peer--encrypted-network-n-where-messages-can-t-be-censored-or-hacked")
|
||||
isFirst: true
|
||||
}
|
||||
Slide {
|
||||
|
@ -39,14 +39,14 @@ RowLayout {
|
|||
//% "Secure crypto wallet"
|
||||
title: qsTrId("intro-title2")
|
||||
//% "Send and receive digital assets anywhere in the\nworld--no bank account required"
|
||||
description: qsTrId("send-and-receive-digital-assets-anywhere-in-the\nworld--no-bank-account-required")
|
||||
description: qsTrId("send-and-receive-digital-assets-anywhere-in-the-nworld--no-bank-account-required")
|
||||
}
|
||||
Slide {
|
||||
image: "img/browser@2x.jpg"
|
||||
//% "Decentralized apps"
|
||||
title: qsTrId("intro-title3")
|
||||
//% "Explore games, exchanges and social networks\nwhere you alone own your data"
|
||||
description: qsTrId("explore-games,-exchanges-and-social-networks\nwhere-you-alone-own-your-data")
|
||||
description: qsTrId("explore-games--exchanges-and-social-networks-nwhere-you-alone-own-your-data")
|
||||
isLast: true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ Page {
|
|||
anchors.topMargin: 40
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
//% "I'm new, generate keys"
|
||||
label: qsTrId("i'm-new,-generate-keys")
|
||||
label: qsTrId("im-new,-generate-keys")
|
||||
}
|
||||
|
||||
StyledButton {
|
||||
|
|
|
@ -137,7 +137,8 @@ Item {
|
|||
id: txtPassword
|
||||
anchors.top: addressText.bottom
|
||||
anchors.topMargin: Style.current.padding * 2
|
||||
placeholderText: "Enter password"
|
||||
//% "Enter password"
|
||||
placeholderText: qsTrId("enter-password")
|
||||
textField.echoMode: TextInput.Password
|
||||
textField.focus: true
|
||||
Keys.onReturnPressed: {
|
||||
|
|
1321
ui/status_en.ts
1321
ui/status_en.ts
File diff suppressed because it is too large
Load Diff
1321
ui/status_es.ts
1321
ui/status_es.ts
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue