Translate app UI from Turkish to English
Translates string resources, hardcoded layout text and user-facing strings in Java sources (toasts, dialogs, status labels, upload log). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -359,7 +359,7 @@ final class OtaUpdater {
|
||||
try {
|
||||
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(update.apkUrl))
|
||||
.setTitle("FatihsMG4 " + update.versionName)
|
||||
.setDescription("Güncelleme indiriliyor")
|
||||
.setDescription("Downloading update")
|
||||
.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED)
|
||||
.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, publicName)
|
||||
.setAllowedOverMetered(true)
|
||||
|
||||
@@ -50,7 +50,7 @@ final class UpdateHook {
|
||||
if (update != null && update.hashUrl != null)
|
||||
new android.os.Handler(android.os.Looper.getMainLooper())
|
||||
.post(() -> android.widget.Toast.makeText(app,
|
||||
"Güncelleme hazır: " + update.versionName,
|
||||
"Update available: " + update.versionName,
|
||||
android.widget.Toast.LENGTH_LONG).show());
|
||||
} catch (Throwable t) {
|
||||
Log.w(TAG, "Startup update check failed", t);
|
||||
@@ -69,7 +69,7 @@ final class UpdateHook {
|
||||
Context app = context.getApplicationContext();
|
||||
android.os.Handler main = new android.os.Handler(android.os.Looper.getMainLooper());
|
||||
if (!checking.compareAndSet(false, true)) {
|
||||
if (listener != null) main.post(() -> listener.onResult("Güncelleme kontrolü zaten sürüyor"));
|
||||
if (listener != null) main.post(() -> listener.onResult("Update check already in progress"));
|
||||
return;
|
||||
}
|
||||
new Thread(() -> {
|
||||
@@ -78,7 +78,7 @@ final class UpdateHook {
|
||||
message = runCheck(app, listener, main);
|
||||
} catch (Throwable t) {
|
||||
Log.w(TAG, "Update check threw", t);
|
||||
message = "Güncelleme kontrolü başarısız";
|
||||
message = "Update check failed";
|
||||
} finally {
|
||||
checking.set(false);
|
||||
}
|
||||
@@ -97,11 +97,11 @@ final class UpdateHook {
|
||||
current = app.getPackageManager()
|
||||
.getPackageInfo(app.getPackageName(), 0).versionName;
|
||||
} catch (Exception e) {
|
||||
return "Sürüm okunamadı";
|
||||
return "Could not read version";
|
||||
}
|
||||
|
||||
OtaUpdater.Update update = OtaUpdater.check(current);
|
||||
if (update == null) return "Güncel (" + current + ")";
|
||||
if (update == null) return "Up to date (" + current + ")";
|
||||
|
||||
Log.i(TAG, "Update available: " + update.versionName);
|
||||
String expectedHash;
|
||||
@@ -109,16 +109,16 @@ final class UpdateHook {
|
||||
expectedHash = OtaUpdater.fetchExpectedSha256(update);
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, "OTA hash unavailable", e);
|
||||
return "Güncelleme reddedildi: SHA-256 doğrulaması yok";
|
||||
return "Update refused: no SHA-256 verification";
|
||||
}
|
||||
File apk = OtaUpdater.download(app, update, expectedHash, percent -> {
|
||||
if (listener != null) main.post(() -> listener.onProgress(percent));
|
||||
});
|
||||
if (apk == null) return "İndirme veya SHA-256 doğrulaması başarısız ("
|
||||
if (apk == null) return "Download or SHA-256 verification failed ("
|
||||
+ update.versionName + ")";
|
||||
|
||||
if (!OtaUpdater.openDownloads(app))
|
||||
return "APK Downloads'a indirildi; dosya yöneticisi açılamadı";
|
||||
return update.versionName + ".apk Downloads'a indirildi — dosyaya dokunup kurun";
|
||||
return "APK downloaded to Downloads; could not open the file manager";
|
||||
return update.versionName + ".apk downloaded to Downloads — tap the file to install";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user