fix: fixed translation for subscription key field on page about subscription key info

This commit is contained in:
Mitternacht822
2026-03-06 20:44:50 +04:00
parent ca639d293d
commit 19dc4deaba
2 changed files with 9 additions and 2 deletions

View File

@@ -2070,6 +2070,11 @@ Thank you for staying with us!</source>
</context>
<context>
<name>PageSettingsApiSubscriptionKey</name>
<message>
<location filename="../ui/qml/Pages2/PageSettingsApiSubscriptionKey.qml" line="72"/>
<source>Subscription key</source>
<translation>Ключ для подключения</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsApiSubscriptionKey.qml" line="85"/>
<source>Copy key</source>

View File

@@ -69,7 +69,8 @@ PageType {
Layout.leftMargin: 16
Layout.rightMargin: 16
Layout.topMargin: 16
text: qsTr(root.processedServer.name + "\nsubscription key")
text: (root.processedServer && root.processedServer.name ? root.processedServer.name : "")
+ "\n" + qsTr("Subscription key")
font.pixelSize: 32
font.bold: true
color: AmneziaStyle.color.paleGray
@@ -206,7 +207,8 @@ PageType {
Header2Type {
Layout.fillWidth: true
headerText: qsTr(root.processedServer.name + " Subscription key")
headerText: (root.processedServer && root.processedServer.name ? root.processedServer.name : "")
+ "\n" + qsTr("Subscription key")
}
TextArea {