diff --git a/core/ui/src/main/res/values-ru/strings.xml b/core/ui/src/main/res/values-ru/strings.xml
index b099304a..ec25a7be 100644
--- a/core/ui/src/main/res/values-ru/strings.xml
+++ b/core/ui/src/main/res/values-ru/strings.xml
@@ -133,6 +133,7 @@
Ваша история
Динамические цвета
Цвета для приложения будут извлечены из ваших обоев на главном экране
+ Использовать системный шрифт
Язык приложения
Текущий: %1$s
Системный
@@ -177,6 +178,7 @@
Основное
Использовать имена контактов
Приложение будет использовать доступные имена контактов для пользователей
+ Включить тактильную отдачу
Внешний вид
Многострочные заголовки и сообщения
Заголовок чата и текст сообщения смогут занимать несколько строчек
@@ -184,9 +186,11 @@
Fast текст
LongPoll в фоне
Ваши сообщения будут обновляться, даже если приложение находится в фоне
+ Использовать анимации везде, где возможно
Активность
Быть «в сети»
Статус «в сети» будет отправляться каждые 5 минут
+ Экспериментальные - ОЧЕНЬ нестабильные
Отладка
Отключить
Приложение не сможет обновлять сообщения в фоне без доступа к уведомлениям
@@ -198,4 +202,14 @@
Уведомления без категории
Сервис обновления сообщений
Уведомления сервиса обновлений сообщений
+ Показывать кнопку эмоджи
+ Показывать кнопку эмоджи на панели чата
+ Показывать время в сервисных сообщениях
+ Использовать размытие
+ Добавлять размытие везде, где возможно.\\nРаботает только с 12 версии Android
+ Больше анимаций
+ Подтверждение
+ Вы уверены? Процесс ввода капчи будет отменён
+ Вы уверены? Процесс ввода кода-подтверждения будет отменён
+ Авторизоваться
diff --git a/core/ui/src/main/res/values/strings.xml b/core/ui/src/main/res/values/strings.xml
index a1cbf61e..d5a48e61 100644
--- a/core/ui/src/main/res/values/strings.xml
+++ b/core/ui/src/main/res/values/strings.xml
@@ -204,6 +204,8 @@
Dynamic colors
The colors for the app will be extracted from your home screen wallpaper
+ Use system font
+
Application Language
Current: %1$s
@@ -235,6 +237,9 @@
General
Use contact names
App will use available contact names for users
+ Show emoji button
+ Show emoji button in chat panel
+ Enable haptic
Appearance
Multiline titles and messages
The title of the conversation and the text of the message can take up multiple lines
@@ -242,9 +247,18 @@
Fast text
LongPoll in background
Your messages will be updating even when app is not on the screen
+ Show time in action messages
+ Use blur
+ Adds blur wherever possible.\nWorks on android 12 and newer
+ More animations
+ Use animations wherever possible
+
Activity
Send online status
Online status will be sent every five minutes
+
+ Experimental - VERY unstable
+
Debug
The app won\'t be able to update messages in the background without access to notifications
Disable
diff --git a/feature/settings/src/main/kotlin/dev/meloda/fast/settings/SettingsViewModel.kt b/feature/settings/src/main/kotlin/dev/meloda/fast/settings/SettingsViewModel.kt
index 00f3028b..b94909bb 100644
--- a/feature/settings/src/main/kotlin/dev/meloda/fast/settings/SettingsViewModel.kt
+++ b/feature/settings/src/main/kotlin/dev/meloda/fast/settings/SettingsViewModel.kt
@@ -278,14 +278,14 @@ class SettingsViewModelImpl(
)
val generalShowEmojiButton = SettingsItem.Switch(
key = SettingsKeys.KEY_SHOW_EMOJI_BUTTON,
- title = UiText.Simple("Show emoji button"),
- text = UiText.Simple("Show emoji button in chat panel"),
+ title = UiText.Resource(UiR.string.settings_general_show_emoji_button_title),
+ text = UiText.Resource(UiR.string.settings_general_show_emoji_button_summary),
defaultValue = SettingsKeys.DEFAULT_VALUE_KEY_SHOW_EMOJI_BUTTON
)
val generalEnableHaptic = SettingsItem.Switch(
key = SettingsKeys.KEY_ENABLE_HAPTIC,
defaultValue = SettingsKeys.DEFAULT_ENABLE_HAPTIC,
- title = UiText.Simple("Enable haptic")
+ title = UiText.Resource(UiR.string.settings_general_enable_haptic_title)
)
val appearanceTitle = SettingsItem.Title(
@@ -342,7 +342,7 @@ class SettingsViewModelImpl(
val appearanceUseSystemFont = SettingsItem.Switch(
key = SettingsKeys.KEY_USE_SYSTEM_FONT,
defaultValue = SettingsKeys.DEFAULT_USE_SYSTEM_FONT,
- title = UiText.Simple("Use system font")
+ title = UiText.Resource(UiR.string.settings_appearance_use_system_font_title)
)
val appearanceLanguage = SettingsItem.TitleText(
key = SettingsKeys.KEY_APPEARANCE_LANGUAGE,
@@ -379,7 +379,7 @@ class SettingsViewModelImpl(
val experimentalTitle = SettingsItem.Title(
key = "experimental",
- title = UiText.Simple("Experimental - VERY unstable")
+ title = UiText.Resource(UiR.string.settings_experimental_title)
)
val experimentalLongPollBackground = SettingsItem.Switch(
key = SettingsKeys.KEY_LONG_POLL_IN_BACKGROUND,
@@ -390,19 +390,20 @@ class SettingsViewModelImpl(
val experimentalShowTimeInActionMessages = SettingsItem.Switch(
key = SettingsKeys.KEY_SHOW_TIME_IN_ACTION_MESSAGES,
defaultValue = SettingsKeys.DEFAULT_SHOW_TIME_IN_ACTION_MESSAGES,
- title = UiText.Simple("Show time in action messages")
+ title = UiText.Resource(UiR.string.settings_features_show_time_in_action_messages_title)
)
val experimentalUseBlur = SettingsItem.Switch(
key = SettingsKeys.KEY_USE_BLUR,
defaultValue = SettingsKeys.DEFAULT_USE_BLUR,
- title = UiText.Simple("Use blur"),
- text = UiText.Simple("Adds blur wherever possible\nWorks on android 12 and newer"),
+ title = UiText.Resource(UiR.string.settings_experimental_use_blur_title),
+ text = UiText.Resource(UiR.string.settings_experimental_use_blur_summary),
+ isVisible = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
)
val enableAnimations = SettingsItem.Switch(
key = SettingsKeys.KEY_MORE_ANIMATIONS,
defaultValue = SettingsKeys.DEFAULT_MORE_ANIMATIONS,
- title = UiText.Simple("More animations"),
- text = UiText.Simple("Use animations wherever possible")
+ title = UiText.Resource(UiR.string.settings_experimental_more_animations_title),
+ text = UiText.Resource(UiR.string.settings_experimental_more_animations_summary)
)
val debugTitle = SettingsItem.Title(