chore: update translation files

This commit is contained in:
Richard Ramos 2021-07-30 12:02:22 -04:00 committed by Iuri Matias
parent a03036e8e1
commit 9204e409f3
46 changed files with 78277 additions and 78949 deletions

View File

@ -639,8 +639,8 @@ Item {
Connections { Connections {
target: chatsModel.stickers target: chatsModel.stickers
onTransactionWasSent: { onTransactionWasSent: {
//% "Transaction pending..." //% "Transaction pending"
toastMessage.title = qsTr("Transaction pending") toastMessage.title = qsTrId("transaction-pending")
toastMessage.source = "../../../img/loading.svg" toastMessage.source = "../../../img/loading.svg"
toastMessage.iconColor = Style.current.primary toastMessage.iconColor = Style.current.primary
toastMessage.iconRotates = true toastMessage.iconRotates = true

View File

@ -308,7 +308,8 @@ Column {
StyledText { StyledText {
id: enableText id: enableText
text: isImageLink ? qsTr("Enable automatic image unfurling") : //% "Enable automatic image unfurling"
text: isImageLink ? qsTrId("enable-automatic-image-unfurling") :
//% "Enable link previews in chat?" //% "Enable link previews in chat?"
qsTrId("enable-link-previews") qsTrId("enable-link-previews")
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter

View File

@ -34,7 +34,8 @@ Item {
opacity: (root.width > 50) ? 1.0 : 0.0 opacity: (root.width > 50) ? 1.0 : 0.0
visible: (opacity > 0.1) visible: (opacity > 0.1)
font.pixelSize: Style.current.primaryTextFontSize font.pixelSize: Style.current.primaryTextFontSize
text: qsTr("Members") //% "Members"
text: qsTrId("members-label")
} }
ListView { ListView {

View File

@ -119,7 +119,8 @@ StatusModal {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
title: name title: name
subTitle: description subTitle: description
tertiaryTitle: qsTr("%1 members").arg(nbMembers) //% "%1 members"
tertiaryTitle: qsTrId("-1-members").arg(nbMembers)
statusListItemTitle.font.weight: Font.Bold statusListItemTitle.font.weight: Font.Bold
statusListItemTitle.font.pixelSize: 17 statusListItemTitle.font.pixelSize: 17
image.source: thumbnailImage image.source: thumbnailImage

View File

@ -36,7 +36,8 @@ Item {
opacity: (root.width > 50) ? 1.0 : 0.0 opacity: (root.width > 50) ? 1.0 : 0.0
visible: (opacity > 0.1) visible: (opacity > 0.1)
font.pixelSize: Style.current.primaryTextFontSize font.pixelSize: Style.current.primaryTextFontSize
text: qsTr("Members") //% "Members"
text: qsTrId("members-label")
} }
ListView { ListView {

View File

@ -60,7 +60,8 @@ Item {
height: 36 height: 36
topPadding: 8 topPadding: 8
bottomPadding: 0 bottomPadding: 0
placeholderText: qsTr("Search") //% "Search"
placeholderText: qsTrId("search")
icon.name: "search" icon.name: "search"
Keys.onEscapePressed: { Keys.onEscapePressed: {
actionButton.forceActiveFocus(); actionButton.forceActiveFocus();
@ -133,25 +134,29 @@ Item {
} }
StatusMenuItem { StatusMenuItem {
text: qsTr("Start new chat") //% "Start new chat"
text: qsTrId("start-new-chat")
icon.name: "private-chat" icon.name: "private-chat"
onTriggered: openPopup(privateChatPopupComponent) onTriggered: openPopup(privateChatPopupComponent)
} }
StatusMenuItem { StatusMenuItem {
text: qsTr("Start group chat") //% "Start group chat"
text: qsTrId("start-group-chat")
icon.name: "group-chat" icon.name: "group-chat"
onTriggered: openPopup(groupChatPopupComponent) onTriggered: openPopup(groupChatPopupComponent)
} }
StatusMenuItem { StatusMenuItem {
text: qsTr("Join public chat") //% "Join public chat"
text: qsTrId("new-public-group-chat")
icon.name: "public-chat" icon.name: "public-chat"
onTriggered: openPopup(publicChatPopupComponent) onTriggered: openPopup(publicChatPopupComponent)
} }
StatusMenuItem { StatusMenuItem {
text: qsTr("Communities") //% "Communities"
text: qsTrId("communities")
icon.name: "communities" icon.name: "communities"
onTriggered: openPopup(communitiesPopupComponent) onTriggered: openPopup(communitiesPopupComponent)
} }

View File

@ -301,7 +301,8 @@ PopupMenu {
} }
Action { Action {
text: qsTr("Jump to") //% "Jump to"
text: qsTrId("jump-to")
onTriggered: { onTriggered: {
positionAtMessage(messageContextMenu.messageId) positionAtMessage(messageContextMenu.messageId)
messageContextMenu.closeParentPopup() messageContextMenu.closeParentPopup()
@ -321,15 +322,18 @@ PopupMenu {
contentType === Constants.emojiType || contentType === Constants.emojiType ||
contentType === Constants.imageType || contentType === Constants.imageType ||
contentType === Constants.audioType) contentType === Constants.audioType)
text: qsTr("Delete message") //% "Delete message"
text: qsTrId("delete-message")
onTriggered: { onTriggered: {
if (!appSettings.showDeleteMessageWarning) { if (!appSettings.showDeleteMessageWarning) {
return chatsModel.messageView.deleteMessage(messageId) return chatsModel.messageView.deleteMessage(messageId)
} }
let confirmationDialog = openPopup(genericConfirmationDialog, { let confirmationDialog = openPopup(genericConfirmationDialog, {
title: qsTr("Confirm deleting this message"), //% "Confirm deleting this message"
confirmationText: qsTr("Are you sure you want to delete this message? Be aware that other clients are not guaranteed to delete the message as well."), title: qsTrId("confirm-deleting-this-message"),
//% "Are you sure you want to delete this message? Be aware that other clients are not guaranteed to delete the message as well."
confirmationText: qsTrId("are-you-sure-you-want-to-delete-this-message--be-aware-that-other-clients-are-not-guaranteed-to-delete-the-message-as-well-"),
height: 260, height: 260,
"checkbox.visible": true, "checkbox.visible": true,
executeConfirm: function () { executeConfirm: function () {

View File

@ -28,7 +28,8 @@ ModalPopup {
StyledText { StyledText {
id: title id: title
text: !!messageToPin ? qsTr("Pin limit reached") : //% "Pin limit reached"
text: !!messageToPin ? qsTrId("pin-limit-reached") :
//% "Pinned messages" //% "Pinned messages"
qsTrId("pinned-messages") qsTrId("pinned-messages")
anchors.top: parent.top anchors.top: parent.top
@ -43,7 +44,8 @@ ModalPopup {
id: nbPinnedMessages id: nbPinnedMessages
text: { text: {
if (!!messageToPin) { if (!!messageToPin) {
return qsTr("Unpin a previous message first") //% "Unpin a previous message first"
return qsTrId("unpin-a-previous-message-first")
} }
//% "%1 messages" //% "%1 messages"
@ -191,7 +193,8 @@ ModalPopup {
id: btnUnpin id: btnUnpin
visible: !!messageToPin visible: !!messageToPin
enabled: !!messageToUnpin enabled: !!messageToUnpin
text: qsTr("Unpin") //% "Unpin"
text: qsTrId("unpin")
type: "warn" type: "warn"
anchors.right: parent.right anchors.right: parent.right
onClicked: { onClicked: {

View File

@ -65,7 +65,8 @@ ModalPopup {
anchors.left: dollarEmoji.right anchors.left: dollarEmoji.right
anchors.leftMargin: 6 anchors.leftMargin: 6
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: qsTr("My Profile") //% "My Profile"
text: qsTrId("my-profile")
font.pixelSize: 15 font.pixelSize: 15
color: Style.current.white color: Style.current.white
} }

View File

@ -127,7 +127,8 @@ Item {
StatusSettingsLineButton { StatusSettingsLineButton {
id: onlineUsers id: onlineUsers
text: qsTr("Online users") //% "Online users"
text: qsTrId("online-users")
isSwitch: true isSwitch: true
switchChecked: appSettings.showOnlineUsers switchChecked: appSettings.showOnlineUsers
onClicked: { onClicked: {
@ -140,7 +141,8 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
sourceComponent: StatusSettingsLineButton { sourceComponent: StatusSettingsLineButton {
text: qsTr("Broadcast user status") //% "Broadcast user status"
text: qsTrId("broadcast-user-status")
isSwitch: true isSwitch: true
switchChecked: profileModel.profile.sendUserStatus switchChecked: profileModel.profile.sendUserStatus
onClicked: function (checked) { onClicked: function (checked) {
@ -236,7 +238,8 @@ Item {
} }
StatusSettingsLineButton { StatusSettingsLineButton {
text: qsTr("GIF Widget") //% "GIF Widget"
text: qsTrId("gif-widget")
isSwitch: true isSwitch: true
switchChecked: appSettings.isGifWidgetEnabled switchChecked: appSettings.isGifWidgetEnabled
onClicked: { onClicked: {

View File

@ -116,7 +116,7 @@ ScrollView {
StatusSettingsLineButton { StatusSettingsLineButton {
//% "Play a sound when receiving a notification" //% "Play a sound when receiving a notification"
text: qsTr("play-a-sound-when-receiving-a-notification") text: qsTrId("play-a-sound-when-receiving-a-notification")
isSwitch: true isSwitch: true
switchChecked: appSettings.notificationSoundsEnabled switchChecked: appSettings.notificationSoundsEnabled
onClicked: { onClicked: {
@ -126,7 +126,7 @@ ScrollView {
StatusSettingsLineButton { StatusSettingsLineButton {
//% "Use your operating system's notifications" //% "Use your operating system's notifications"
text: qsTr("use-your-operating-system-s-notifications") text: qsTrId("use-your-operating-system-s-notifications")
isSwitch: true isSwitch: true
switchChecked: appSettings.useOSNotifications switchChecked: appSettings.useOSNotifications
onClicked: { onClicked: {
@ -274,7 +274,8 @@ ScrollView {
}) })
//% "Muted contacts" //% "Muted contacts"
mutedChatsModal.title = qsTrId("muted-contacts"); mutedChatsModal.title = qsTrId("muted-contacts");
mutedChatsModal.noContentText = qsTr("Muted contacts will appear here"); //% "Muted contacts will appear here"
mutedChatsModal.noContentText = qsTrId("muted-contacts-will-appear-here");
mutedChatsModal.open(); mutedChatsModal.open();
} }
} }
@ -291,7 +292,8 @@ ScrollView {
}) })
//% "Muted chats" //% "Muted chats"
mutedChatsModal.title = qsTrId("muted-chats"); mutedChatsModal.title = qsTrId("muted-chats");
mutedChatsModal.noContentText = qsTr("Muted chats will appear here"); //% "Muted chats will appear here"
mutedChatsModal.noContentText = qsTrId("muted-chats-will-appear-here");
mutedChatsModal.open(); mutedChatsModal.open();
} }

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

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

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

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

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

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

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

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

View File

@ -409,7 +409,8 @@ QtObject {
} }
if (index > -1) { if (index > -1) {
const pk = link.substring(index + 3) const pk = link.substring(index + 3)
result.title = qsTr("Start a 1-on-1 chat with %1") //% "Start a 1-on-1 chat with %1"
result.title = qsTrId("start-a-1-on-1-chat-with--1")
.arg(isChatKey(pk) ? utilsModel.generateAlias(pk) : ("@" + removeStatusEns(pk))) .arg(isChatKey(pk) ? utilsModel.generateAlias(pk) : ("@" + removeStatusEns(pk)))
result.callback = function () { result.callback = function () {
if(isChatKey(pk)){ if(isChatKey(pk)){
@ -566,7 +567,8 @@ QtObject {
//% "You need to enter a password" //% "You need to enter a password"
return [false, qsTrId("you-need-to-enter-a-password")]; return [false, qsTrId("you-need-to-enter-a-password")];
} else if (firstPasswordField.text.length < 6) { } else if (firstPasswordField.text.length < 6) {
return [false, qsTrId("Password needs to be 6 characters or more")]; //% "Password needs to be 6 characters or more"
return [false, qsTrId("password-needs-to-be-6-characters-or-more")];
} }
return [true, ""]; return [true, ""];

View File

@ -119,8 +119,11 @@ Item {
anchors.top: changeAccountBtn.bottom anchors.top: changeAccountBtn.bottom
anchors.topMargin: Style.current.padding * 2 anchors.topMargin: Style.current.padding * 2
enabled: !loading enabled: !loading
//% "Enter password" placeholderText: loading ?
placeholderText: loading ? qsTr("Connecting...") : qsTrId("enter-password") //% "Connecting..."
qsTrId("connecting") :
//% "Enter password"
qsTrId("enter-password")
textField.echoMode: TextInput.Password textField.echoMode: TextInput.Password
textField.focus: true textField.focus: true
Keys.onReturnPressed: { Keys.onReturnPressed: {
@ -177,7 +180,8 @@ Item {
if (error === "file is not a database") { if (error === "file is not a database") {
errMsg.text = errMsg.incorrectPasswordMsg errMsg.text = errMsg.incorrectPasswordMsg
} else { } else {
errMsg.text = qsTr("Login failed: %1").arg(error.toUpperCase()) //% "Login failed: %1"
errMsg.text = qsTrId("login-failed---1").arg(error.toUpperCase())
} }
errMsg.visible = true errMsg.visible = true
loading = false loading = false

View File

@ -53,7 +53,8 @@ ModalPopup {
anchors.top: innerText.bottom anchors.top: innerText.bottom
anchors.topMargin: Style.current.halfPadding anchors.topMargin: Style.current.halfPadding
Layout.preferredWidth: parent.width Layout.preferredWidth: parent.width
text: qsTr("Do not show this again") //% "Do not show this again"
text: qsTrId("do-not-show-this-again")
} }
} }