chore: update translations

This commit is contained in:
Michael 2026-05-04 16:18:08 +03:00
parent e64a1d4581
commit 273f572968
No known key found for this signature in database
5 changed files with 27 additions and 17 deletions

View file

@ -75,15 +75,15 @@ fun ResultsScreen(
actions = {
val platforms = remember {
listOf(
Platform("Mobile", "mobile", R.drawable.ic_mobile_24px),
Platform("TV", "tv", R.drawable.ic_tv_gen_24px)
Platform(R.string.mobile_label, "mobile", R.drawable.ic_mobile_24px),
Platform(R.string.tv_label, "tv", R.drawable.ic_tv_gen_24px)
)
}
TextButton({platformSelectorExpanded = true}) {
Icon(painterResource(state.selectedPlatform.icon), null)
Spacer(Modifier.size(8.dp))
Text(state.selectedPlatform.label)
Text(stringResource(state.selectedPlatform.label))
}
DropdownMenu(
expanded = platformSelectorExpanded,
@ -92,7 +92,7 @@ fun ResultsScreen(
platforms.forEach {
DropdownMenuItem(
leadingIcon = {Icon(painterResource(it.icon), null)},
text = { Text(it.label) },
text = { Text(stringResource(it.label)) },
onClick = { viewModel.selectPlatform(it); platformSelectorExpanded=false }
)
}

View file

@ -17,12 +17,12 @@ import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.update
data class Platform(
val label: String,
val label: Int,
val value: String,
val icon: Int
)
data class ResultsState(
val selectedPlatform: Platform = Platform("Mobile", "mobile", R.drawable.ic_mobile_24px),
val selectedPlatform: Platform = Platform(R.string.mobile_label, "mobile", R.drawable.ic_mobile_24px),
)
class ResultsViewModel(private val query: String) : ViewModel() {

View file

@ -127,15 +127,15 @@ fun SettingsScreen(
defaultVal = "auto",
select = listOf(
SettingsSectionSelect(
title = "Auto",
title = context.getString(R.string.theme_auto_label),
value = "auto"
),
SettingsSectionSelect(
title = "Dark",
title = context.getString(R.string.theme_dark_label),
value = "dark"
),
SettingsSectionSelect(
title = "Light",
title = context.getString(R.string.theme_light_label),
value = "light"
),
)

View file

@ -44,10 +44,10 @@
<string name="settings_title">Settings</string>
<string name="settings_installer_title">Installer</string>
<string name="settings_installer_description">If there are problems installing applications</string>
<string name="settings_updates_sources_title">Source updates whitelist</string>
<string name="settings_updates_sources_description">Sources allowed to check for updates</string>
<string name="settings_updates_check_all_title">Check all installed applications</string>
<string name="settings_updates_check_all_description">Do not limit update checks to the whitelist. RuStore will get access to the entire list of installed applications.</string>
<string name="settings_updates_sources_title">Tracked sources</string>
<string name="settings_updates_sources_description">Updates will be checked for applications from selected sources</string>
<string name="settings_updates_check_all_title">Check all applications</string>
<string name="settings_updates_check_all_description">Do not limit the update check to selected sources. RuStore will get access to the entire list of applications on device</string>
<string name="settings_save_button">Save</string>
<string name="updates_title">Updates</string>
<string name="check_updates">Check for updates</string>
@ -68,4 +68,9 @@
<string name="settings_source_manual">Manual Installed</string>
<string name="settings_source_unknown">Unknown (ADB/Other)</string>
<string name="provided_by_developer">Provided by developer</string>
<string name="mobile_label">Mobile</string>
<string name="tv_label">TV</string>
<string name="theme_auto_label">Auto</string>
<string name="theme_dark_label">Dark</string>
<string name="theme_light_label">Light</string>
</resources>

View file

@ -45,10 +45,9 @@
<string name="settings_title">Настройки</string>
<string name="settings_installer_title">Установщик</string>
<string name="settings_installer_description">Если есть проблемы при установке приложений</string>
<string name="settings_updates_sources_title">Белый список источников обновлений</string>
<string name="settings_updates_sources_description">Источники, для которых разрешена проверка обновлений</string>
<string name="settings_updates_check_all_title">Проверять все установленные приложения</string>
<string name="settings_updates_check_all_description">Не ограничивать проверку обновлений белым списком. RuStore получит доступ ко всему списку установленных приложений.</string>
<string name="settings_updates_sources_title">Отслеживаемые источники</string>
<string name="settings_updates_check_all_title">Проверять все приложения</string>
<string name="settings_updates_check_all_description">Не ограничивать проверку обновлений выбранными источниками. RuStore получит доступ ко всему списку приложений на устройстве</string>
<string name="settings_save_button">Сохранить</string>
<string name="updates_title">Обновления</string>
<string name="check_updates">Проверить обновления</string>
@ -68,4 +67,10 @@
<string name="settings_source_manual">Установлено вручную</string>
<string name="settings_source_unknown">Неизвестно (ADB/Другое)</string>
<string name="signature_mismatch_warning">Установлено из другого источника</string>
<string name="mobile_label">Телефон</string>
<string name="tv_label">ТВ</string>
<string name="theme_auto_label">Системная</string>
<string name="theme_dark_label">Тёмная</string>
<string name="theme_light_label">Светлая</string>
<string name="settings_updates_sources_description">Обновления будут проверяться для приложений из выбранных источников</string>
</resources>