fix: перенос захардкоженных строк в strings.xml

This commit is contained in:
samosvalishe committed 2026-04-04 01:33:11 +03:00
1 parent 0265114e3d
commit bdad451722
2 files changed
+4 -2

No files matched your search

@@ -389,11 +389,11 @@ private fun InfoBottomSheet(
Text( Text(
when (sshState) { when (sshState) {
is SshConnectionState.Connected -> is SshConnectionState.Connected ->
"Подключено: ${(sshState as SshConnectionState.Connected).ip}" stringResource(R.string.connected_format, (sshState as SshConnectionState.Connected).ip)
is SshConnectionState.Connecting -> is SshConnectionState.Connecting ->
(sshState as SshConnectionState.Connecting).step (sshState as SshConnectionState.Connecting).step
is SshConnectionState.Error -> is SshConnectionState.Error ->
"Ошибка: ${(sshState as SshConnectionState.Error).message}" stringResource(R.string.error_format_short, (sshState as SshConnectionState.Error).message)
else -> stringResource(R.string.not_connected) else -> stringResource(R.string.not_connected)
} }
) )
+2
View File
@@ -27,6 +27,8 @@
<string name="start_proxy">Запустить прокси</string> <string name="start_proxy">Запустить прокси</string>
<string name="connection">Соединение</string> <string name="connection">Соединение</string>
<string name="not_connected">Не подключено</string> <string name="not_connected">Не подключено</string>
<string name="connected_format">Подключено: %1$s</string>
<string name="error_format_short">Ошибка: %1$s</string>
<string name="change">Изменить</string> <string name="change">Изменить</string>
<string name="configure">Настроить</string> <string name="configure">Настроить</string>
<string name="android_client">Android-клиент</string> <string name="android_client">Android-клиент</string>