Преглед изворни кода

Merge pull request #1361 from deltachat/add-missing-core-translations

add translations recently required by core
cyBerta пре 3 година
родитељ
комит
1fba0598a1
1 измењених фајлова са 22 додато и 1 уклоњено
  1. 22 1
      deltachat-ios/AppDelegate.swift

+ 22 - 1
deltachat-ios/AppDelegate.swift

@@ -546,6 +546,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         dcContext.setStockTranslation(id: DC_STR_CANNOT_LOGIN, localizationKey: "login_error_cannot_login")
         dcContext.setStockTranslation(id: DC_STR_MSGACTIONBYUSER, localizationKey: "systemmsg_action_by_user")
         dcContext.setStockTranslation(id: DC_STR_MSGACTIONBYME, localizationKey: "systemmsg_action_by_me")
+        dcContext.setStockTranslation(id: DC_STR_LOCATION, localizationKey: "location")
+        dcContext.setStockTranslation(id: DC_STR_STICKER, localizationKey: "sticker")
         dcContext.setStockTranslation(id: DC_STR_DEVICE_MESSAGES, localizationKey: "device_talk")
         dcContext.setStockTranslation(id: DC_STR_SAVED_MESSAGES, localizationKey: "saved_messages")
         dcContext.setStockTranslation(id: DC_STR_DEVICE_MESSAGES_HINT, localizationKey: "device_talk_explain")
@@ -559,16 +561,35 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_HOUR, localizationKey: "systemmsg_ephemeral_timer_hour")
         dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_DAY, localizationKey: "systemmsg_ephemeral_timer_day")
         dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_WEEK, localizationKey: "systemmsg_ephemeral_timer_week")
-        dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_FOUR_WEEKS, localizationKey: "systemmsg_ephemeral_timer_four_weeks")
         dcContext.setStockTranslation(id: DC_STR_VIDEOCHAT_INVITATION, localizationKey: "videochat_invitation")
         dcContext.setStockTranslation(id: DC_STR_VIDEOCHAT_INVITE_MSG_BODY, localizationKey: "videochat_invitation_body")
         dcContext.setStockTranslation(id: DC_STR_CONFIGURATION_FAILED, localizationKey: "configuration_failed_with_error")
+        dcContext.setStockTranslation(id: DC_STR_BAD_TIME_MSG_BODY, localizationKey: "devicemsg_bad_time")
+        dcContext.setStockTranslation(id: DC_STR_UPDATE_REMINDER_MSG_BODY, localizationKey: "devicemsg_update_reminder")
         dcContext.setStockTranslation(id: DC_STR_PROTECTION_ENABLED, localizationKey: "systemmsg_chat_protection_enabled")
         dcContext.setStockTranslation(id: DC_STR_PROTECTION_DISABLED, localizationKey: "systemmsg_chat_protection_disabled")
         dcContext.setStockTranslation(id: DC_STR_REPLY_NOUN, localizationKey: "reply_noun")
+        dcContext.setStockTranslation(id: DC_STR_SELF_DELETED_MSG_BODY, localizationKey: "devicemsg_self_deleted")
+        dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_MINUTES, localizationKey: "systemmsg_ephemeral_timer_minutes")
+        dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_HOURS, localizationKey: "systemmsg_ephemeral_timer_hours")
+        dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_DAYS, localizationKey: "systemmsg_ephemeral_timer_days")
+        dcContext.setStockTranslation(id: DC_STR_EPHEMERAL_WEEKS, localizationKey: "systemmsg_ephemeral_timer_weeks")
         dcContext.setStockTranslation(id: DC_STR_FORWARDED, localizationKey: "forwarded")
+        dcContext.setStockTranslation(id: DC_STR_QUOTA_EXCEEDING_MSG_BODY, localizationKey: "devicemsg_storage_exceeding")
         dcContext.setStockTranslation(id: DC_STR_PARTIAL_DOWNLOAD_MSG_BODY, localizationKey: "n_bytes_message")
         dcContext.setStockTranslation(id: DC_STR_DOWNLOAD_AVAILABILITY, localizationKey: "download_max_available_until")
+        dcContext.setStockTranslation(id: DC_STR_INCOMING_MESSAGES, localizationKey: "incoming_messages")
+        dcContext.setStockTranslation(id: DC_STR_OUTGOING_MESSAGES, localizationKey: "outgoing_messages")
+        dcContext.setStockTranslation(id: DC_STR_STORAGE_ON_DOMAIN, localizationKey: "storage_on_domain")
+        dcContext.setStockTranslation(id: DC_STR_ONE_MOMENT, localizationKey: "one_moment")
+        dcContext.setStockTranslation(id: DC_STR_CONNECTED, localizationKey: "connectivity_connected")
+        dcContext.setStockTranslation(id: DC_STR_CONNTECTING, localizationKey: "connectivity_connecting")
+        dcContext.setStockTranslation(id: DC_STR_UPDATING, localizationKey: "connectivity_updating")
+        dcContext.setStockTranslation(id: DC_STR_SENDING, localizationKey: "sending")
+        dcContext.setStockTranslation(id: DC_STR_LAST_MSG_SENT_SUCCESSFULLY, localizationKey: "last_msg_sent_successfully")
+        dcContext.setStockTranslation(id: DC_STR_ERROR, localizationKey: "error_x")
+        dcContext.setStockTranslation(id: DC_STR_NOT_SUPPORTED_BY_PROVIDER, localizationKey: "not_supported_by_provider")
+        dcContext.setStockTranslation(id: DC_STR_MESSAGES, localizationKey: "messages")
     }
 
     func appIsInForeground() -> Bool {