Skip to content

Commit

Permalink
Sprinkle in some localization (#2426)
Browse files Browse the repository at this point in the history
# Conflicts:
#	deltachat-ios/bqi.lproj/Localizable.strings
#	deltachat-ios/en.lproj/Localizable.strings
#	scripts/untranslated.xml
  • Loading branch information
zeitschlag committed Dec 19, 2024
1 parent d8fd6b9 commit cc01e8e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DcWebxdcWidget/DcWebxdcWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct DcWebxdcWidget: Widget {
}
}
.supportedFamilies([.systemSmall, .systemMedium])
.configurationDisplayName(String.localized("widget_most_recent_apps_title"))
.description(String.localized("widget_most_recent_apps_description"))
.configurationDisplayName(String.localized("ios_widget_apps_title"))
.description(String.localized("ios_widget_apps_description"))
}
}
4 changes: 2 additions & 2 deletions deltachat-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,7 @@
INFOPLIST_FILE = DcWebxdcWidget/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = DcWebxdcWidget;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2024 merlinux GmbH. All rights reserved.";
IPHONEOS_DEPLOYMENT_TARGET = 18.1;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -2527,7 +2527,7 @@
INFOPLIST_FILE = DcWebxdcWidget/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = DcWebxdcWidget;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2024 merlinux GmbH. All rights reserved.";
IPHONEOS_DEPLOYMENT_TARGET = 18.1;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
4 changes: 2 additions & 2 deletions deltachat-ios/Controller/FilesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ extension FilesViewController: UITableViewDelegate, UITableViewDataSource {
if isOnHomescreen {
children.append(
UIAction.menuAction(
localizationKey: "remove_from_homescreen",
localizationKey: "ios_remove_from_home_screen",
systemImageName: "rectangle.on.rectangle.slash",
indexPath: indexPath,
action: { _ in
Expand All @@ -251,7 +251,7 @@ extension FilesViewController: UITableViewDelegate, UITableViewDataSource {
} else {
children.append(
UIAction.menuAction(
localizationKey: "add_to_home_screen",
localizationKey: "ios_add_to_home_screen",
systemImageName: "plus.rectangle.on.rectangle",
indexPath: indexPath,
action: { _ in
Expand Down
4 changes: 2 additions & 2 deletions deltachat-ios/Controller/WebxdcViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,13 @@ class WebxdcViewController: WebViewViewController {

let homescreenAction: UIAlertAction
if isOnHomescreen {
homescreenAction = UIAlertAction(title: String.localized("remove_from_homescreen"), style: .default) { [weak self] _ in
homescreenAction = UIAlertAction(title: String.localized("ios_remove_from_home_screen"), style: .default) { [weak self] _ in
guard let self else { return }

self.dcContext.removeWebxdcFromHomescreen(messageId: self.messageId)
}
} else {
homescreenAction = UIAlertAction(title: String.localized("add_to_home_screen"), style: .default) { [weak self] _ in
homescreenAction = UIAlertAction(title: String.localized("ios_add_to_home_screen"), style: .default) { [weak self] _ in
guard let self else { return }

self.dcContext.addWebxdcToHomescreenWidget(messageId: self.messageId)
Expand Down
8 changes: 5 additions & 3 deletions deltachat-ios/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,8 @@
"backup_successful_explain_ios" = "You can find the backup in the \"Delta Chat\" folder using the \"Files\" app.\n\nMove the backup out of this folder to keep it when deleting Delta Chat.";
"location_denied" = "Location access denied";
"location_denied_explain_ios" = "In the system settings, enable \"Privacy/Location Services\" and set \"Delta Chat/Location\" to \"Always\" and \"Precise\".";
"widget_no_apps" = "In-Chat Utilities or Games will be shown here";
"widget_most_recent_apps_title" = "Shortcuts";
"widget_most_recent_apps_description" = "Shows the most recent In-Chat Utilities and Games";
"ios_widget_no_apps" = "In-Chat Utilities or Games will be shown here";
"ios_widget_apps_title" = "Shortcuts";
"ios_widget_apps_description" = "Shortcuts to In-Chat Utilities and Games";
"ios_remove_from_home_screen" = "Remove from Homescreen";
"ios_add_to_home_screen" = "Add to Homescreen";
5 changes: 5 additions & 0 deletions scripts/untranslated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
<string name="widget_no_apps">In-Chat Utilities or Games will be shown here</string>
<string name="widget_most_recent_apps_title">Shortcuts</string>
<string name="widget_most_recent_apps_description">Shows the most recent In-Chat Utilities and Games</string>
<string name="ios_widget_no_apps">In-Chat Utilities or Games will be shown here</string>
<string name="ios_widget_apps_title">Shortcuts</string>
<string name="ios_widget_apps_description">Shortcuts to In-Chat Utilities and Games</string>
<string name="ios_remove_from_home_screen">Remove from Homescreen</string>
<string name="ios_add_to_home_screen">Add to Homescreen</string>
</resources>

0 comments on commit cc01e8e

Please sign in to comment.