another translate

This commit is contained in:
k1zn
2023-01-31 15:58:24 +05:00
parent 5994172095
commit 83093be566
7 changed files with 22 additions and 8 deletions
@@ -1,5 +1,7 @@
package ru.vtosters.lite.deviceinfo;
import ru.vtosters.lite.utils.AndroidUtils;
import static ru.vtosters.lite.deviceinfo.OEMDetector.hasMiuiIncrCode;
import static ru.vtosters.lite.deviceinfo.OEMDetector.isEMUI;
import static ru.vtosters.lite.deviceinfo.OEMDetector.isMIUI;
@@ -103,7 +105,7 @@ public class Device {
}
public String forLogging() {
return "**Информация об устройстве:** " + "\n\n"
return "**" + AndroidUtils.getString("device_info") + ":** " + "\n\n"
+ "- Commit: " + getBuildNumber() + "\n"
+ "- Android SDK: " + this.sdkVersion + "\n"
+ "- Product: " + this.productName + "\n"
@@ -30,7 +30,7 @@ public class CallsHook {
var callsAvailable = vkim || vk;
if (!callsAvailable) {
Toast.makeText(LifecycleUtils.getCurrentActivity(), "Установите VK Мессенджер или официальный клиент ВКонтакте", LENGTH_SHORT).show();
Toast.makeText(LifecycleUtils.getCurrentActivity(), AndroidUtils.getString("calls_not_available"), LENGTH_SHORT).show();
try {
ctx.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.vkontakte.android")));
@@ -98,7 +98,7 @@ public class OtherFragment extends MaterialPreferenceToolbarFragment {
findPreference("copydebuginfo").setOnPreferenceClickListener(preference -> {
copyText(new DeviceInfoCollector().collect().forLogging());
Toast.makeText(requireContext(), "Информация об устройстве скопирована", LENGTH_SHORT).show();
Toast.makeText(requireContext(), AndroidUtils.getString("device_info_copied"), LENGTH_SHORT).show();
return true;
});
@@ -171,12 +171,12 @@ public class AndroidUtils {
if (getBoolValue("showUnverifDialog", true)) {
new VkAlertDialog.Builder(activity)
.setTitle(com.vtosters.lite.R.string.warning)
.setMessage("Для нормальной работы приложения необходимо разрешить приложению открытие ссылок по умолчанию")
.setMessage(AndroidUtils.getString("app_open_by_default_settings"))
.setCancelable(false)
.setPositiveButton("Пропустить",
.setPositiveButton(com.vtosters.lite.R.string.social_graph_skip,
(dialogInterface, i) -> edit().putBoolean("showUnverifDialog", false).apply()
)
.setNeutralButton("Открыть настройки",
.setNeutralButton(com.vtosters.lite.R.string.open_settings,
(dialogInterface, i) -> {
try {
Intent intent = new Intent(Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS, Uri.parse("package:" + getPackageName()));
+6
View File
@@ -6347,4 +6347,10 @@
<string name="data_updated">Данные обновлены</string>
<string name="updateverifdata_title">Обновить данные</string>
<string name="updateverifdata_summ">Загрузить свежие данные о верификациях и серверных функциях</string>
<string name="device_info">Информация об устройстве</string>
<string name="calls_not_available">Установите VK Мессенджер или официальный клиент ВКонтакте</string>
<string name="copydebuginfo_title">Скопировать информацию об устройстве</string>
<string name="copydebuginfo_summ">Для отправки информации об ошибке на GitHub Issues</string>
<string name="device_info_copied">Информация об устройстве скопирована</string>
<string name="app_open_by_default_settings">Для нормальной работы приложения необходимо разрешить приложению открытие ссылок по умолчанию</string>
</resources>
+6
View File
@@ -6485,4 +6485,10 @@ May look like a fake leaving the online"</string>
<string name="data_updated">Data updated</string>
<string name="updateverifdata_title">Update data</string>
<string name="updateverifdata_summ">Load the latest data about verifications and server functions</string>
<string name="device_info">Device info</string>
<string name="calls_not_available">Install VK Messenger or official VK client</string>
<string name="copydebuginfo_title">Copy device info</string>
<string name="copydebuginfo_summ">To submit bug info to GitHub Issues</string>
<string name="device_info_copied">Device info copied</string>
<string name="app_open_by_default_settings">You need to allow the app to open links by default for the app to work properly</string>
</resources>
+2 -2
View File
@@ -65,8 +65,8 @@
<PreferenceCategory android:title="@string/vtsystem">
<Preference
android:key="copydebuginfo"
android:summary="Для отправки информации об ошибке на Github Issues"
android:title="Скопировать информацию об устройстве"/>
android:summary="@string/copydebuginfo_summ"
android:title="@string/copydebuginfo_title"/>
<Preference
android:key="applicationrestart"
android:title="@string/applicationrestart"/>