Translate the entire repo to English (UI strings, README, CI, comments)

Prep for public distribution. All user-facing strings, the README, the Gitea
workflow step names/comments and the keystore example are now English.
Follow-up i18n (string resources + locale files) is tracked in #5.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 18:52:01 +02:00
parent 953efaf168
commit 3c77e9ab3e
11 changed files with 140 additions and 133 deletions

View File

@@ -53,11 +53,11 @@ class PaperlessClient(
client.newCall(request).execute().use { resp ->
when {
resp.isSuccessful -> Result.Success
resp.code == 401 || resp.code == 403 -> Result.Failure("Ongeldig token (${resp.code}).")
else -> Result.Failure("Server antwoordde met ${resp.code}.")
resp.code == 401 || resp.code == 403 -> Result.Failure("Invalid token (${resp.code}).")
else -> Result.Failure("Server responded with ${resp.code}.")
}
}
}.getOrElse { Result.Failure(it.message ?: "Verbinding mislukt.") }
}.getOrElse { Result.Failure(it.message ?: "Connection failed.") }
}
/**
@@ -85,12 +85,12 @@ class PaperlessClient(
val posted: kotlin.Result<String?> = withContext(NonCancellable) {
runCatching {
client.newCall(request).execute().use { resp ->
if (!resp.isSuccessful) error("Upload mislukt: ${resp.code} ${resp.message}")
if (!resp.isSuccessful) error("Upload failed: ${resp.code} ${resp.message}")
resp.body?.string()?.trim()?.trim('"')?.takeIf { it.isNotBlank() }
}
}
}
val taskId = posted.getOrElse { return@withContext Result.Failure(it.message ?: "Upload mislukt.") }
val taskId = posted.getOrElse { return@withContext Result.Failure(it.message ?: "Upload failed.") }
// Older servers may not return a usable id; then we can only confirm acceptance.
if (taskId == null || taskId.equals("OK", ignoreCase = true)) return@withContext Result.Pending
@@ -119,7 +119,7 @@ class PaperlessClient(
"FAILURE" -> {
val msg = task.result.orEmpty()
return if (msg.contains("duplicate", ignoreCase = true)) Result.Duplicate
else Result.Failure(msg.ifBlank { "Paperless kon het document niet verwerken." })
else Result.Failure(msg.ifBlank { "Paperless could not process the document." })
}
// PENDING / STARTED / RETRY / unknown → keep waiting.
}