From d7072d57df5cec8b23dec82fff2646050b193402 Mon Sep 17 00:00:00 2001 From: bjoern Date: Tue, 21 Sep 2021 01:00:26 +0200 Subject: [PATCH] add translations recently needed by core: connectivity, quota, device messages and some other bits (#2053) --- res/values/strings.xml | 21 +++++++++++++++++++ .../securesms/connect/DcHelper.java | 18 ++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index b9ebd18d9..b98eeb5e7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -116,6 +116,8 @@ Reply Gif + + Sticker Images Audio Voice Message @@ -388,6 +390,7 @@ You followed a link which could be misrepresenting characters by using similarly looking ones from different alphabets. Following the link labelled %1$s will lead to %2$s which is normal for non-Latin characters. If you did not expect such characters this link could be harmful + Search Search for chats, contacts, and messages @@ -420,6 +423,12 @@ + + Incoming Messages + + Outgoing Messages + + Storage on %1$s Connectivity Not connected @@ -429,6 +438,11 @@ Updating… Connected + Sending… + Last message sent successfully. + Not supported by your provider. + + Messages @@ -700,6 +714,13 @@ Chat protection disabled. Chat protection enabled. + You deleted the \"Saved messages\" chat.\n\n\ℹ️ To use the \"Saved messages\" feature again, create a new chat with yourself. + + ⚠️ Your provider\'s storage is about to exceed, already %1$s%% are used.\n\nYou may not be able to receive message when the storage is 100%% used.\n\n👉 Please check if you can delete old data in the provider\'s webinterface and consider to enable \"Settings / Delete Old Messages\". You can check your current storage usage anytime at \"Settings / Connectivity\". + + ⚠️ Date or time of your device seem to be inaccurate (%1$s).\n\nAdjust your clock ⏰🔧 to ensure your messages are received correctly. + ⚠️ Your Delta Chat version might be outdated.\n\nThis may cause problems because your chat partners use newer versions - and you are missing the latest features 😳\nPlease check https://get.delta.chat or your app store for updates. + Please enter your system defined secret to continue. diff --git a/src/org/thoughtcrime/securesms/connect/DcHelper.java b/src/org/thoughtcrime/securesms/connect/DcHelper.java index e264f6ffd..fb067779b 100644 --- a/src/org/thoughtcrime/securesms/connect/DcHelper.java +++ b/src/org/thoughtcrime/securesms/connect/DcHelper.java @@ -142,6 +142,8 @@ public class DcHelper { dcContext.setStockTranslation(60, context.getString(R.string.login_error_cannot_login)); dcContext.setStockTranslation(62, context.getString(R.string.systemmsg_action_by_user)); dcContext.setStockTranslation(63, context.getString(R.string.systemmsg_action_by_me)); + dcContext.setStockTranslation(66, context.getString(R.string.location)); + dcContext.setStockTranslation(67, context.getString(R.string.sticker)); dcContext.setStockTranslation(68, context.getString(R.string.device_talk)); dcContext.setStockTranslation(69, context.getString(R.string.saved_messages)); dcContext.setStockTranslation(70, context.getString(R.string.device_talk_explain)); @@ -158,16 +160,32 @@ public class DcHelper { dcContext.setStockTranslation(82, context.getString(R.string.videochat_invitation)); dcContext.setStockTranslation(83, context.getString(R.string.videochat_invitation_body)); dcContext.setStockTranslation(84, context.getString(R.string.configuration_failed_with_error)); + dcContext.setStockTranslation(85, context.getString(R.string.devicemsg_bad_time)); + dcContext.setStockTranslation(86, context.getString(R.string.devicemsg_update_reminder)); dcContext.setStockTranslation(88, context.getString(R.string.systemmsg_chat_protection_enabled)); dcContext.setStockTranslation(89, context.getString(R.string.systemmsg_chat_protection_disabled)); dcContext.setStockTranslation(90, context.getString(R.string.reply_noun)); + dcContext.setStockTranslation(91, context.getString(R.string.devicemsg_self_deleted)); dcContext.setStockTranslation(93, context.getString(R.string.systemmsg_ephemeral_timer_minutes)); dcContext.setStockTranslation(94, context.getString(R.string.systemmsg_ephemeral_timer_hours)); dcContext.setStockTranslation(95, context.getString(R.string.systemmsg_ephemeral_timer_days)); dcContext.setStockTranslation(96, context.getString(R.string.systemmsg_ephemeral_timer_weeks)); dcContext.setStockTranslation(97, context.getString(R.string.forwarded)); + dcContext.setStockTranslation(98, context.getString(R.string.devicemsg_storage_exceeding)); dcContext.setStockTranslation(99, context.getString(R.string.n_bytes_message)); dcContext.setStockTranslation(100, context.getString(R.string.download_max_available_until)); + dcContext.setStockTranslation(103, context.getString(R.string.incoming_messages)); + dcContext.setStockTranslation(104, context.getString(R.string.outgoing_messages)); + dcContext.setStockTranslation(105, context.getString(R.string.storage_on_domain)); + dcContext.setStockTranslation(106, context.getString(R.string.one_moment)); + dcContext.setStockTranslation(107, context.getString(R.string.connectivity_connected)); + dcContext.setStockTranslation(108, context.getString(R.string.connectivity_connecting)); + dcContext.setStockTranslation(109, context.getString(R.string.connectivity_updating)); + dcContext.setStockTranslation(110, context.getString(R.string.sending)); + dcContext.setStockTranslation(111, context.getString(R.string.last_msg_sent_successfully)); + dcContext.setStockTranslation(112, context.getString(R.string.error_x)); + dcContext.setStockTranslation(113, context.getString(R.string.not_supported_by_provider)); + dcContext.setStockTranslation(114, context.getString(R.string.messages)); } public static File getImexDir() {