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 {
target: chatsModel.stickers
onTransactionWasSent: {
//% "Transaction pending..."
toastMessage.title = qsTr("Transaction pending")
//% "Transaction pending"
toastMessage.title = qsTrId("transaction-pending")
toastMessage.source = "../../../img/loading.svg"
toastMessage.iconColor = Style.current.primary
toastMessage.iconRotates = true

View File

@ -308,7 +308,8 @@ Column {
StyledText {
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?"
qsTrId("enable-link-previews")
horizontalAlignment: Text.AlignHCenter

View File

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

View File

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

View File

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

View File

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

View File

@ -301,7 +301,8 @@ PopupMenu {
}
Action {
text: qsTr("Jump to")
//% "Jump to"
text: qsTrId("jump-to")
onTriggered: {
positionAtMessage(messageContextMenu.messageId)
messageContextMenu.closeParentPopup()
@ -321,15 +322,18 @@ PopupMenu {
contentType === Constants.emojiType ||
contentType === Constants.imageType ||
contentType === Constants.audioType)
text: qsTr("Delete message")
//% "Delete message"
text: qsTrId("delete-message")
onTriggered: {
if (!appSettings.showDeleteMessageWarning) {
return chatsModel.messageView.deleteMessage(messageId)
}
let confirmationDialog = openPopup(genericConfirmationDialog, {
title: qsTr("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."),
//% "Confirm deleting this message"
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,
"checkbox.visible": true,
executeConfirm: function () {

View File

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

View File

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

View File

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

View File

@ -116,7 +116,7 @@ ScrollView {
StatusSettingsLineButton {
//% "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
switchChecked: appSettings.notificationSoundsEnabled
onClicked: {
@ -126,7 +126,7 @@ ScrollView {
StatusSettingsLineButton {
//% "Use your operating system's notifications"
text: qsTr("use-your-operating-system-s-notifications")
text: qsTrId("use-your-operating-system-s-notifications")
isSwitch: true
switchChecked: appSettings.useOSNotifications
onClicked: {
@ -274,7 +274,8 @@ ScrollView {
})
//% "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();
}
}
@ -291,7 +292,8 @@ ScrollView {
})
//% "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();
}

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) {
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)))
result.callback = function () {
if(isChatKey(pk)){
@ -566,7 +567,8 @@ QtObject {
//% "You need to enter a password"
return [false, qsTrId("you-need-to-enter-a-password")];
} 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, ""];

View File

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

View File

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