diff options
| author | Andrew Branson <andrew.branson@jolla.com> | 2026-03-09 09:44:01 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@jolla.com> | 2026-03-09 21:13:03 +0100 |
| commit | e93766b063432347bd1062aa59bbe122ee7a43f3 (patch) | |
| tree | 4b2f66a383400e8428f6c6388084685a915b2902 /settings/accounts/ui | |
| parent | 9182ffb1573c77367ad6b5e4b1f3e4f52b3c3ea4 (diff) | |
Localize settings text and refresh Mastodon docsrefactor
- Add QTranslator to notifications plugin
- Create own logging category now trace is gone
Diffstat (limited to 'settings/accounts/ui')
| -rw-r--r-- | settings/accounts/ui/MastodonSettingsDisplay.qml | 21 | ||||
| -rw-r--r-- | settings/accounts/ui/mastodon-update.qml | 3 | ||||
| -rw-r--r-- | settings/accounts/ui/mastodon.qml | 3 |
3 files changed, 18 insertions, 9 deletions
diff --git a/settings/accounts/ui/MastodonSettingsDisplay.qml b/settings/accounts/ui/MastodonSettingsDisplay.qml index ece9a41..c03221a 100644 --- a/settings/accounts/ui/MastodonSettingsDisplay.qml +++ b/settings/accounts/ui/MastodonSettingsDisplay.qml @@ -37,7 +37,8 @@ StandardAccountSettingsDisplay { var providerDisplayName = root.accountProvider && root.accountProvider.displayName ? root.accountProvider.displayName.toString().trim() : "" - return providerDisplayName.length > 0 ? providerDisplayName : "Mastodon" + //% "Mastodon" + return providerDisplayName.length > 0 ? providerDisplayName : qsTrId("settings-accounts-mastodon-la-provider_name") } onAboutToSaveAccount: { @@ -107,14 +108,18 @@ StandardAccountSettingsDisplay { TextSwitch { checked: model.enabled text: model.serviceName === "mastodon-microblog" - ? "Posts" + //% "Posts" + ? qsTrId("settings-accounts-mastodon-la-service_posts") : (model.serviceName === "mastodon-notifications" - ? "Notifications" + //% "Notifications" + ? qsTrId("settings-accounts-mastodon-la-service_notifications") : model.displayName) description: model.serviceName === "mastodon-microblog" - ? "Show Mastodon posts in the Events view." + //% "Show Mastodon posts in the Events view." + ? qsTrId("settings-accounts-mastodon-la-service_posts_description") : (model.serviceName === "mastodon-notifications" - ? "Show Mastodon notifications." + //% "Show Mastodon notifications." + ? qsTrId("settings-accounts-mastodon-la-service_notifications_description") : "") visible: text.length > 0 onCheckedChanged: { @@ -130,8 +135,10 @@ StandardAccountSettingsDisplay { TextSwitch { id: eventsSyncSwitch - text: "Sync Mastodon feed automatically" - description: "Fetch new posts periodically when browsing Events Mastodon feed." + //% "Sync Mastodon feed automatically" + text: qsTrId("settings-accounts-mastodon-la-auto_sync_feed") + //% "Fetch new posts periodically when browsing Events Mastodon feed." + description: qsTrId("settings-accounts-mastodon-la-auto_sync_feed_description") onCheckedChanged: { autoSyncConf.value = checked diff --git a/settings/accounts/ui/mastodon-update.qml b/settings/accounts/ui/mastodon-update.qml index 98dba8c..75c043d 100644 --- a/settings/accounts/ui/mastodon-update.qml +++ b/settings/accounts/ui/mastodon-update.qml @@ -175,7 +175,8 @@ AccountCredentialsAgent { var clientId = _valueFromServiceConfig(config, "auth/oauth2/web_server/ClientId") var clientSecret = _valueFromServiceConfig(config, "auth/oauth2/web_server/ClientSecret") if (clientId.length === 0 || clientSecret.length === 0) { - credentialsUpdateError("Missing Mastodon OAuth client credentials") + //% "Missing Mastodon OAuth client credentials" + credentialsUpdateError(qsTrId("settings-accounts-mastodon-la-missing_client_credentials")) return } diff --git a/settings/accounts/ui/mastodon.qml b/settings/accounts/ui/mastodon.qml index b899b51..a32f336 100644 --- a/settings/accounts/ui/mastodon.qml +++ b/settings/accounts/ui/mastodon.qml @@ -371,7 +371,8 @@ AccountCreationAgent { ? root.accountProvider.displayName.toString().trim() : "" if (providerDisplayName.length === 0) { - providerDisplayName = "Mastodon" + //% "Mastodon" + providerDisplayName = qsTrId("settings-accounts-mastodon-la-provider_name") } newAccount.displayName = providerDisplayName |
