Skip to content

Commit

Permalink
Sprinkle in some localization (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Dec 16, 2024
1 parent 7af7c13 commit 524e07e
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 53 deletions.
4 changes: 2 additions & 2 deletions DcWebxdcWidget/DcWebxdcWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,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
76 changes: 38 additions & 38 deletions deltachat-ios/bqi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
"custom" = "سفارشی";
"none" = "hičkoyêki";
"automatic" = "xotkār";
"strict" = "saxtger";
"strict" = "سختگر";
"open" = "gušiďên";
"download" = "dānlod";
"downloading" = "honêy dānlod êbu...";
"open_attachment" = "gušiďên zamima";
"open_attachment" = "گۊشیڌن زمینه";
"join" = "avoďên";
"rejoin" = "zênu avoďên";
"delete" = "pāk kerdên";
"info" = "zêbār";
"update" = "vê ru kerdên";
"emoji" = "êmuji";
"attachment" = "zamima";
"attachment" = "زمینه";
"back" = "vorgaštên";
"close" = "bastên";
// "Resend" means "Sending the selected message(s) again to the same chat". The string is used in a menu and should be as short as possible. Resending may be needed after failures or to repost old messages to new members.
"resend" = "zênu bêfêšn";
// Verb "to archive", as in "put a chat in the archive", not a noun "The Archive".
"archive" = "bāyêguvi";
"archive" = "بایگۊوی";
// Verb "to unarchive", as in "remove a chat from the archive", opposite of the previous string
"unarchive" = "bêdar zêyďên zê bāyêguvi";
"unarchive" = "و در زیڌن ز بایگۊوی";
"mute" = "bî dong";
"save" = "zaft";
"chat" = "goftoloft";
Expand All @@ -47,32 +47,32 @@
// Stay short here, say ~16 characters. The source string could also be "All Read", maybe that hint can make translations easier :)
"mark_all_as_read" = "poy nê xonde biďe bêza";
// Shortest text for "Mark as being read". In english, this could be "Read" (past tense of "to read"), in german, this could be "Gelesen".
"mark_as_read_short" = "xonde vâbiďa";
"mark_as_read_short" = "علامت و عونوان خونده بیڌه";
// Placeholder text when something is loading
"loading" = "honêy bār êvane...";
"hide" = "bîďār kerdên";
"activate" = "faāl kerdên";
"activate" = "فعال کردن";
"load_remote_content" = "bār vani šîvātā zê dar";
"always" = "hamiša";
"once" = "him ya kêrat";
"show_warning" = "nêšow dāďên hošdār";
"show_warning" = "نشۉ داڌن هوشدار";
"show_password" = "nêšow dāďên razm";
"hide_password" = "bîďār kerdên razm";
"not_now" = "sako na";
"never" = "hič";
"never" = "هیچ";
"one_moment" = "yadamow...";
"done" = "anjom vâbi";
"offline" = "āflāyn";
"offline" = "آفلاین";
// For the next view or as "continue". Should be as short as possible.
"next" = "niyâyi";
"error" = "xatā";
"error_x" = "xatā: %1$@";
"file_not_found" = "%1$@ najost";
"file_not_found" = "%1$@ ن نجوست.";
"copied_to_clipboard" = "mênê virga lefgiri vâbi.";
"contacts_headline" = "homdangal";
"email_address" = "nêšuvi imêyl";
"password" = "razm";
"existing_password" = "razmê mowjud";
"existing_password" = "رزم مۉجۊڌ";
"now" = "sako";
// Headline for destructive actions with no undo. Could also be "Caution" or "Warning".
"danger" = "bêpā";
Expand Down Expand Up @@ -108,7 +108,7 @@
// As in "start a video recording" or "take a photo"; eg. the description of the "shutter button" in cameras
"capture" = "gêrîďên";
"switch_camera" = "ālêštê šîvātgêr";
"toggle_fullscreen" = "ālêštê vaziyat poy balga";
"toggle_fullscreen" = "آلشت وزیت پوی بلگه";
"location" = "jāga";
"locations" = "jāgayal";
"gallery" = "šîvātmāl";
Expand All @@ -119,20 +119,20 @@
"webxdc_app" = "barnoma";
// plural of "App"; used to present "Webxdc App" (https://webxdc.org) in a user friendly way. Please stay close to the original term and keep it short (it is used in menus with few screen space).
"webxdc_apps" = "barnomêyal";
"unknown" = "nāšênās";
"unknown" = "ناشناس";
"green" = "sawz";
"red" = "so\'r";
"blue" = "kêvu";
"blue" = "کوۊ";
"purple" = "bênawš";
"white" = "êsbîď";
"zoom" = "gap kerdên";
"zoom" = "گپ کردن";
"extra_small" = "qalêvê kučir";
"small" = "kučir";
"normal" = "âdi";
"large" = "gap";
"extra_large" = "qalêvê gap";
"fast" = "zêl";
"slow" = "hovār";
"slow" = "هووار";
// menu labels (or icon, buttons...)
"menu_new_contact" = "homdangê nu";
"menu_new_chat" = "goftoloftê nu";
Expand All @@ -144,17 +144,17 @@
"menu_send" = "fêšnāďên";
"menu_edit_group" = "ālêštê jarga";
"menu_group_name_and_image" = "nom vo šîvātê jarga";
"menu_archive_chat" = "bāyêguvi kerdên goftoloft";
"menu_unarchive_chat" = "bêdar zêyďên goftoloft zê bāyêguvi";
"menu_add_attachment" = "êzāf kerdên zamima";
"menu_archive_chat" = "بایگۊوی گوفت ۉ لوفت";
"menu_unarchive_chat" = "و در زیڌن گوفت ۉ لوفت ز بایگۊوی";
"menu_add_attachment" = "ازاف کردن زمینه";
"menu_leave_group" = "ra\'ďên zê jarga";
"menu_delete_chat" = "pāk kerdên poy goftoloft";
// Command to delete all messages in a chat. The chat itself will not be deleted but will be empty afterwards, so make sure to be different from "Delete Chat" here. "Clear" is a verb here, "Empty Chat" would also be fine (eg. in German "Chat leeren")
"clear_chat" = "roftênê virgārê goftoloft";
"menu_delete_messages" = "pāk kerdên payomā";
"delete_contact" = "pāk kerdên homdang";
"menu_delete_location" = "i jāga pāk bu?";
"menu_copy_to_clipboard" = "lefgiri mênê virga";
"menu_delete_location" = "ای جاگه پاک بۊ؟";
"menu_copy_to_clipboard" = "لف گیری من ویرگه";
"menu_copy_link_to_clipboard" = "lefgiri ling";
"menu_copy_text_to_clipboard" = "lefgiri hîl";
"menu_copy_image_to_clipboard" = "lefgiri šîvāt";
Expand All @@ -168,8 +168,8 @@
"show_in_chat" = "nêšow dāďên mênê goftoloft";
"menu_share" = "yakrasuvi";
"accept" = "qêvul";
"menu_play" = "pêšk";
"menu_pause" = "vāstāďên";
"menu_play" = "پشک";
"menu_pause" = "واڌاشتن";
"menu_scroll_to_bottom" = "ra\'ďên bê lam";
"menu_scroll_to_top" = "ra\'ďên bê ro\'";
"menu_help" = "hayâri";
Expand All @@ -180,8 +180,8 @@
"menu_settings" = "sāmovā";
"menu_advanced" = "pîš ra\'ďa";
"menu_view_profile" = "niyaštên porofāyl";
"menu_zoom_in" = "gap kerdên";
"menu_zoom_out" = "kučir kerdên";
"menu_zoom_in" = "گپ کردن";
"menu_zoom_out" = "کۊچیر کردن";
"menu_save_log" = "zaft kerdên gozārêš";
"menu_more_options" = "guzinêyalê bištar";
"jump_to_message" = "ra\'ďên bê payom";
Expand All @@ -204,8 +204,8 @@
"share_location_for_two_hours" = "si 2 sāat";
"share_location_for_six_hours" = "si 6 sāat";
"file_saved_to" = "fāyl mênê \"%1$@\" zaft vâbi.";
"videochat" = "goftoloftê vidiyoyi";
"videochat_invitation" = "mokêš bê goftoloft vidiyoyi";
"videochat" = "گوفت ۉ لوفت ویدیویی";
"videochat_invitation" = "موکش و گوفت ۉ لوفت ویدیویی";
"ask_start_chat_with" = "goftoloft vā %1$@?";
"ask_delete_value" = "pāk kerdên %1$@?";
// %1$s is replaced by a comma-separated list of names
Expand All @@ -227,14 +227,14 @@
// Should match "Saved" from "Saved messages"
"saved" = "zaft vâbi";
"save_as" = "zaft vê onvān";
"retry_send" = "zênu si fêšnāďênê payom taqalā ko";
"retry_send" = "ز نۊ سی فشناڌن پیوم تقلا کوݩ";
// mailing lists
"mailing_list" = "nomga posti";
"mailing_list" = "نومگه پوستی";
// title shown above a list of chats where one should be selected (eg. when sharing files from a webxdc). the placeholder will be replaced by a file name
"send_file_to" = "fêšnāďên \"%1$@\" vê...";
// title shown above a list contacts where one should be selected (eg. when a webxdc attempts to send a message to a chat)
"send_message_to" = "fêšnāďên payom vê...";
"show_location_traces" = "nêšow dāďên jā pā";
"show_location_traces" = "نشۉ داڌن جا پا";
// search
"search" = "pitiniďên";
// create/edit groups, contact/group profile
Expand All @@ -250,7 +250,7 @@
"tab_docs" = "sanadā";
"tab_links" = "lingā";
"tab_map" = "naqša";
"media_preview" = "nêšow dāďên vārasgar";
"media_preview" = "نشۉ داڌن وارسگر";
"send_message" = "fêšnāďên payom";
// Headline in the "Connectivity" view. Placeholder will be replaced by the domain of the configured email-address.
"storage_on_domain" = "zaft kerdên mênê %1$@";
Expand All @@ -265,7 +265,7 @@
"messages" = "payomā";
"sync_all" = "vê ru kerdên poy";
"pref_your_name" = "nomê to";
"pref_notifications_show" = "nêšow dāďên";
"pref_notifications_show" = "نشۉ داڌن";
"pref_language" = "zow";
"pref_chats" = "goftoloftā";
// deprecated
Expand All @@ -289,7 +289,7 @@
"autodel_device_title" = "pāk kerdên payomā zê dasgā";
"autodel_server_title" = "pāk kerdên payomā zê sêrvêr";
// "At once" in the meaning of "Immediately", without any intervening time.
"autodel_at_once" = "ya kêrat";
"autodel_at_once" = "ی کرت دیندا دانلود";
"after_30_seconds" = "ba\'ďê 30 sâniya";
"after_1_minute" = "ba\'ďê 1 dîqa";
"after_5_minutes" = "ba\'ďê 5 dîqa";
Expand All @@ -302,15 +302,15 @@
// "left" in the meaning of "exited"; %1$s will be replaced by name and address of the contact leaving the group
"group_left_by_other" = "%1$@ zê jarga ra\'ď.";
"qrshow_x_joining" = "%1$@ mêntor vâbi.";
"qrshow_x_verified" = "%1$@ taiď vâbi.";
"contact_verified" = "%1$@ taiď vâbi.";
"qrshow_x_verified" = "%1$@ تاییڌ وابی.";
"contact_verified" = "%1$@ تاییڌ وابی.";
// Shown in contact profile. The placeholder will be replaced by the name of the contact that introduced the contact.
"verified_by" = "taiď vâbiďa vê das %1$@";
"verified_by" = "تاییڌ وابیڌه و دس %1$@";
"notify_reply_button" = "vėlom";
"notify_new_message" = "payomė nu";
"notify_name_and_message" = "nom vo payom";
"notify_name_only" = "têynā nom";
"notify_no_name_or_message" = "nom yā payomi nî";
"notify_no_name_or_message" = "بؽ نوم یا پیوم";
"global_menu_preferences_language_desktop" = "zow";
"global_menu_file_desktop" = "fāyl";
"global_menu_file_quit_desktop" = "vê dar zêyďên";
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" = "No apps.";
"widget_most_recent_apps_title" = "Recent Webxdc-apps";
"widget_most_recent_apps_description" = "Shows the most recent Webxdc-apps.";
"ios_widget_no_apps" = "No apps.";
"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";
3 changes: 2 additions & 1 deletion deltachat-ios/fa.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1074,4 +1074,5 @@ GNU GPL ورژن ۳
"perm_enable_bg_reminder_title" = "برای دریافت پیام‌ها به صورت پس زمینه در دلتاچت این جا را ضربه بزنید. ";
"perm_enable_bg_already_done" = "قبلا اجازه دسترسی به فعالیت در پس زمینه را به دلتاچت داده‌اید. \n\n اگر پیام‌ها هنوز هم در شرایط پس زمینه نمی‌آمد لطفا تنظیم‌های سیستم را نیز بررسی نمایید. ";
// device messages for updates
"update_1_50_android" = "چه چیز تازه است؟\n\n❤️‍🔥 منوی انتخاب ایموجی جدید با ایموجی‌های جدید\🎮n\n بهبود برنامه‌های چت: دریافت اعلان و بازکردن برنامه‌های پشتیبانی‌کننده در محتوا. مثلا یک خط جدید در تقویم را مستقیم باز کنید.\👍n\n زمانی که به پیام شما واکنشی داده می‌شود، خبردار می‌شوید.\n\n 🛠️ همچنین رفع اشکال‌ها و دیگر چیز‌ها در %1$@";
"update_1_50_android" = "چه چیز تازه است؟\n\n❤️‍🔥 منوی انتخاب ایموجی جدید با ایموجی‌های جدید\🎮n\n بهبود برنامه‌های چت: دریافت اعلان و بازکردن برنامه‌های پشتیبانی‌کننده در محتوا. مثلا یک خط جدید در تقویم را مستقیم باز کنید.\👍n\n زمانی که به پیام شما واکنشی داده می‌شود، خبردار می‌شوید.\n\n 🛠️ همچنین رفع اشکال‌ها و دیگر چیز‌ها در
%1$@";
8 changes: 5 additions & 3 deletions scripts/untranslated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<string name="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.</string>
<string name="location_denied">Location access denied</string>
<string name="location_denied_explain_ios">In the system settings, enable \"Privacy/Location Services\" and set \"Delta Chat/Location\" to \"Always\" and \"Precise\".</string>
<string name="widget_no_apps">No apps.</string>
<string name="widget_most_recent_apps_title">Recent Webxdc-apps</string>
<string name="widget_most_recent_apps_description">Shows the most recent Webxdc-apps.</string>
<string name="ios_widget_no_apps">No apps.</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 524e07e

Please sign in to comment.