mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 21:35:59 +00:00
itch.io: version picker and installing free games (#1503)
* itch.io: temporary Test itch.io button that logs what the API answers (not for merge) * itch.io: show Test itch.io only while Debugging tools is on * itch.io: version picker and installing free games * itch.io: build the platform names outside joinToString so the composable call compiles * itch.io: ask for the version before resuming an unfinished install * itch.io: keep the chosen upload, save free games in the queue, don't auto-install a closed picker * itch.io: install straight away when exactly one build is installable * itch.io: show the picker again unless the game has exactly one build * itch.io: ignore a second build tap while the picker is closing * itch.io: empty a partial install before extracting so builds never mix * stores: deleteTree removes a symlink without following it * stores: skip symlinked folders in the uninstall walk, and only empty a partial install that is this game's own
This commit is contained in:
1 parent
7d99a24ad5
commit
411fda343a
46 files changed
+541
-11
No files matched your search
@@ -70,7 +70,7 @@ object StoreInstalls {
|
||||
fun uninstall(context: Context, game: InstalledStoreGame, progress: (Float) -> Unit = {}, removed: () -> Unit = {}) {
|
||||
val app = context.applicationContext
|
||||
val appId = SessionPrefs.addedGameStoredAppId(app, game.folder.path)
|
||||
val files = game.folder.walkBottomUp().toList()
|
||||
val files = game.folder.walkBottomUp().onEnter { !Files.isSymbolicLink(it.toPath()) }.toList()
|
||||
val step = (files.size / 100).coerceAtLeast(1)
|
||||
files.forEachIndexed { i, f ->
|
||||
f.delete()
|
||||
@@ -98,6 +98,10 @@ object StoreInstalls {
|
||||
}
|
||||
|
||||
fun deleteTree(dir: File) {
|
||||
if (Files.isSymbolicLink(dir.toPath())) {
|
||||
dir.delete()
|
||||
return
|
||||
}
|
||||
dir.listFiles()?.forEach { if (it.isDirectory) deleteTree(it) else it.delete() }
|
||||
dir.delete()
|
||||
}
|
||||
|
||||
@@ -212,9 +212,11 @@ object StoresState {
|
||||
}
|
||||
|
||||
var pendingInstall by mutableStateOf<CatalogItem?>(null)
|
||||
var itchPicking by mutableStateOf<CatalogItem?>(null)
|
||||
|
||||
fun requestInstall(context: Context, item: CatalogItem) {
|
||||
askForNotifications(context)
|
||||
if (item.store == Store.ITCH && item.extra["uploadId"].isNullOrEmpty()) { itchPicking = item; return }
|
||||
if (isUnfinished(item)) { install(context, item); return }
|
||||
val targets = StoreInstallRoot.targets(context)
|
||||
if (targets.size > 1 || StoreLanguage.selectable(item.store)) pendingInstall = item
|
||||
|
||||
@@ -79,7 +79,7 @@ object SavedQueue {
|
||||
put("image", i.imageUrl ?: ""); put("tall", i.tallImageUrl ?: "")
|
||||
i.logoUrl?.let { put("logo", it) }
|
||||
put("tags", i.tags); put("developer", i.developer); put("description", i.description)
|
||||
put("size", i.sizeBytes); put("owned", i.owned); put("subscription", i.subscription)
|
||||
put("size", i.sizeBytes); put("owned", i.owned); put("subscription", i.subscription); put("free", i.isFree)
|
||||
put("extra", JSONObject(i.extra))
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ object SavedQueue {
|
||||
id = o.getString("id"), title = o.getString("title"),
|
||||
imageUrl = o.optString("image").ifEmpty { null }, tallImageUrl = o.optString("tall").ifEmpty { null },
|
||||
tags = o.optString("tags"), developer = o.optString("developer"), description = o.optString("description"),
|
||||
owned = o.optBoolean("owned", true), subscription = o.optBoolean("subscription"), sizeBytes = o.optLong("size"),
|
||||
owned = o.optBoolean("owned", true), subscription = o.optBoolean("subscription"), isFree = o.optBoolean("free"), sizeBytes = o.optLong("size"),
|
||||
extra = extra?.keys()?.asSequence()?.associateWith { extra.getString(it) } ?: emptyMap(),
|
||||
logoUrl = o.optString("logo").ifEmpty { null },
|
||||
)
|
||||
|
||||
@@ -20,7 +20,7 @@ internal object ItchApi {
|
||||
fun ownedKeys(key: String, page: Int): JSONObject? = get("/profile/owned-keys?page=$page&per_page=500", key)
|
||||
|
||||
fun uploads(key: String, gameId: String, downloadKeyId: String): JSONArray? =
|
||||
get("/games/$gameId/uploads?download_key_id=$downloadKeyId", key)?.optJSONArray("uploads")
|
||||
get("/games/$gameId/uploads" + keyQuery(downloadKeyId), key)?.optJSONArray("uploads")
|
||||
|
||||
fun search(key: String, query: String, page: Int): JSONArray? {
|
||||
val q = java.net.URLEncoder.encode(query, "UTF-8")
|
||||
@@ -28,7 +28,9 @@ internal object ItchApi {
|
||||
}
|
||||
|
||||
fun downloadUrl(uploadId: String, downloadKeyId: String): String =
|
||||
"$BASE/uploads/$uploadId/download?download_key_id=$downloadKeyId"
|
||||
"$BASE/uploads/$uploadId/download" + keyQuery(downloadKeyId)
|
||||
|
||||
private fun keyQuery(downloadKeyId: String): String = if (downloadKeyId.isBlank()) "" else "?download_key_id=$downloadKeyId"
|
||||
|
||||
fun pageUrl(slug: String): String = "$WEB/$slug"
|
||||
}
|
||||
@@ -55,7 +55,7 @@ object ItchBackend : StoreBackend {
|
||||
|
||||
override fun install(context: Context, item: CatalogItem, root: File) {
|
||||
val app = context.applicationContext
|
||||
if (item.extra["downloadKeyId"].isNullOrEmpty()) {
|
||||
if (item.extra["downloadKeyId"].isNullOrEmpty() && !item.isFree) {
|
||||
StoresState.logLine("itch.io: \"${item.title}\" is not in the library")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.droiddeck.launcher.stores.itch
|
||||
|
||||
import com.droiddeck.launcher.stores.CatalogItem
|
||||
import com.droiddeck.launcher.stores.StoreNet
|
||||
import org.json.JSONArray
|
||||
|
||||
internal class ItchBuild(
|
||||
val uploadId: String,
|
||||
val filename: String,
|
||||
val size: Long,
|
||||
val updatedAt: String,
|
||||
val platforms: Set<String>,
|
||||
val demo: Boolean,
|
||||
) {
|
||||
val installable: Boolean get() = "windows" in platforms
|
||||
}
|
||||
|
||||
internal object ItchGame {
|
||||
private val PATH_AFTER = Regex("""name="itch:path"[^>]*content="games/(\d+)"""")
|
||||
private val PATH_BEFORE = Regex("""content="games/(\d+)"[^>]*name="itch:path"""")
|
||||
|
||||
fun idFromPage(html: String): String? =
|
||||
PATH_AFTER.find(html)?.groupValues?.get(1) ?: PATH_BEFORE.find(html)?.groupValues?.get(1)
|
||||
|
||||
fun resolveId(item: CatalogItem): String? {
|
||||
item.extra["gameId"]?.takeIf { it.isNotBlank() }?.let { return it }
|
||||
if (item.storeUrl.isBlank()) return null
|
||||
val html = StoreNet.get(item.storeUrl) ?: return null
|
||||
return idFromPage(html)
|
||||
}
|
||||
|
||||
fun builds(uploads: JSONArray?): List<ItchBuild> {
|
||||
if (uploads == null) return emptyList()
|
||||
return (0 until uploads.length()).mapNotNull { uploads.optJSONObject(it) }
|
||||
.filter { it.optString("storage") != "external" }
|
||||
.map {
|
||||
ItchBuild(
|
||||
it.optString("id"), ItchUploads.filename(it), ItchUploads.size(it),
|
||||
it.optString("updated_at", it.optString("updatedAt")), ItchUploads.platforms(it), it.optBoolean("demo"),
|
||||
)
|
||||
}
|
||||
.sortedWith(compareByDescending<ItchBuild> { it.installable }.thenByDescending { it.updatedAt })
|
||||
}
|
||||
}
|
||||
@@ -38,11 +38,14 @@ internal class ItchInstaller(
|
||||
val key = ItchAuth.key(app)
|
||||
if (key.isBlank()) throw IllegalStateException(app.getString(R.string.stores_sync_sign_in))
|
||||
val downloadKeyId = item.extra["downloadKeyId"].orEmpty()
|
||||
if (downloadKeyId.isBlank()) throw IllegalStateException(app.getString(R.string.stores_itch_not_owned))
|
||||
val gameId = item.extra["gameId"].orEmpty().ifBlank { item.id.substringAfterLast('/') }
|
||||
if (downloadKeyId.isBlank() && !item.isFree) throw IllegalStateException(app.getString(R.string.stores_itch_not_owned))
|
||||
val gameId = ItchGame.resolveId(item) ?: throw IllegalStateException(app.getString(R.string.stores_itch_no_game))
|
||||
val resuming = StoreGameSidecar.read(folder)?.let { it.state == StoreGameSidecar.STATE_INSTALLING && it.id == item.id } == true
|
||||
StoreInstalls.begin(folder, Store.ITCH, item.id, item.title, item.imageUrl, item.imageUrl)
|
||||
handle.stage(DownloadStage.MANIFEST)
|
||||
val upload = ItchUploads.windows(ItchApi.uploads(key, gameId, downloadKeyId))
|
||||
val uploads = ItchApi.uploads(key, gameId, downloadKeyId)
|
||||
val chosen = item.extra["uploadId"].orEmpty()
|
||||
val upload = (if (chosen.isBlank()) ItchUploads.windows(uploads) else ItchUploads.byId(uploads, chosen))
|
||||
?: throw IllegalStateException(app.getString(R.string.stores_itch_no_upload))
|
||||
val uploadId = upload.optString("id")
|
||||
val filename = ItchUploads.filename(upload)
|
||||
@@ -55,7 +58,7 @@ internal class ItchInstaller(
|
||||
download(key, downloadKeyId, uploadId, upload.optString("updated_at", upload.optString("updatedAt")), archive, size, handle)
|
||||
if (cancelled.get()) return null
|
||||
handle.stage(DownloadStage.INSTALL)
|
||||
install(archive, filename, handle)
|
||||
install(archive, filename, handle, resuming)
|
||||
} catch (t: Throwable) {
|
||||
if (!cancelled.get()) StoreInstalls.discard(app, folder, listOf(scratch))
|
||||
throw t
|
||||
@@ -147,8 +150,16 @@ internal class ItchInstaller(
|
||||
}
|
||||
}
|
||||
|
||||
private fun install(archive: File, filename: String, handle: DownloadQueue.JobHandle): String? {
|
||||
private fun clearPartialInstall() {
|
||||
folder.listFiles()?.forEach {
|
||||
if (it.name == StoreGameSidecar.FILE_NAME) return@forEach
|
||||
if (it.isDirectory) StoreInstalls.deleteTree(it) else it.delete()
|
||||
}
|
||||
}
|
||||
|
||||
private fun install(archive: File, filename: String, handle: DownloadQueue.JobHandle, resuming: Boolean): String? {
|
||||
folder.mkdirs()
|
||||
if (resuming) clearPartialInstall()
|
||||
when (val kind = sniff(archive, filename)) {
|
||||
"zip" -> unzip(archive, handle)
|
||||
"7z" -> sevenZip(archive, handle)
|
||||
|
||||
@@ -30,6 +30,28 @@ internal object ItchUploads {
|
||||
return names.none { it in PLATFORM_TRAITS }
|
||||
}
|
||||
|
||||
fun platforms(upload: JSONObject): Set<String> {
|
||||
val found = LinkedHashSet<String>()
|
||||
upload.optJSONObject("platforms")?.let { flags ->
|
||||
for (name in listOf("windows", "linux", "osx", "android")) if (flags.optBoolean(name)) found.add(name)
|
||||
}
|
||||
upload.optJSONArray("traits")?.let { traits ->
|
||||
for (i in 0 until traits.length()) when (traits.optString(i)) {
|
||||
"p_windows" -> found.add("windows")
|
||||
"p_linux" -> found.add("linux")
|
||||
"p_osx" -> found.add("osx")
|
||||
"p_android" -> found.add("android")
|
||||
}
|
||||
}
|
||||
if (upload.optString("type") == "html") found.add("web")
|
||||
return if (found.isEmpty()) setOf("windows") else found
|
||||
}
|
||||
|
||||
fun byId(uploads: JSONArray?, id: String): JSONObject? {
|
||||
if (uploads == null || id.isBlank()) return null
|
||||
return (0 until uploads.length()).mapNotNull { uploads.optJSONObject(it) }.firstOrNull { it.optString("id") == id }
|
||||
}
|
||||
|
||||
fun size(upload: JSONObject): Long = upload.optLong("size", upload.optLong("size_bytes"))
|
||||
|
||||
fun filename(upload: JSONObject): String = upload.optString("filename").substringAfterLast('/')
|
||||
|
||||
@@ -561,6 +561,7 @@ private fun FrontEndScreenBody(s: FrontEndState, a: FrontEndActions, page: (@Com
|
||||
FlightsLayer(screenAt)
|
||||
GamesDialogs(a, s.steamGames)
|
||||
com.droiddeck.launcher.stores.StoresState.pendingInstall?.let { item -> StoreTheme(item.store) { InstallWhere(item) } }
|
||||
com.droiddeck.launcher.stores.StoresState.itchPicking?.let { item -> StoreTheme(item.store) { ItchBuildPicker(item) { com.droiddeck.launcher.stores.StoresState.itchPicking = null } } }
|
||||
StepsLayer(screenAt)
|
||||
|
||||
appToChooseDisplay?.let { app ->
|
||||
|
||||
@@ -397,6 +397,10 @@ private fun GameActions(
|
||||
}
|
||||
if (!item.accessible) SecondaryButton(buyLabel(item)) { openStoreUrl(ctx, item) }
|
||||
}
|
||||
item != null && item.store == Store.ITCH && item.isFree -> {
|
||||
InstallButton(stringResource(R.string.stores_install), leadOn) { StoresState.requestInstall(ctx, item) }
|
||||
SecondaryButton(stringResource(R.string.stores_view_on, item.store.shortLabel)) { openStoreUrl(ctx, item) }
|
||||
}
|
||||
item != null && item.isFree -> PrimaryButton(stringResource(R.string.stores_get_free), main = true, modifier = leadOn) { openStoreUrl(ctx, item) }
|
||||
item != null -> PrimaryButton(buyLabel(item), main = true, modifier = leadOn) { openStoreUrl(ctx, item) }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.LinearProgressIndicator
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.key
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.stores.CatalogItem
|
||||
import com.droiddeck.launcher.stores.StoresState
|
||||
import com.droiddeck.launcher.stores.formatBytes
|
||||
import com.droiddeck.launcher.stores.itch.ItchApi
|
||||
import com.droiddeck.launcher.stores.itch.ItchAuth
|
||||
import com.droiddeck.launcher.stores.itch.ItchBuild
|
||||
import com.droiddeck.launcher.stores.itch.ItchGame
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
private class BuildList(val gameId: String, val builds: List<ItchBuild>)
|
||||
|
||||
@Composable
|
||||
internal fun ItchBuildPicker(item: CatalogItem, onDismiss: () -> Unit) {
|
||||
val ctx = LocalContext.current
|
||||
val app = ctx.applicationContext
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val shown = rememberShown(onDismiss)
|
||||
val close = { shown.targetState = false }
|
||||
var loaded by remember(item) { mutableStateOf<BuildList?>(null) }
|
||||
var failed by remember(item) { mutableStateOf(false) }
|
||||
|
||||
val install: (BuildList, ItchBuild) -> Unit = install@{ list, build ->
|
||||
if (!shown.targetState) return@install
|
||||
val tagged = item.copy(
|
||||
extra = item.extra + mapOf("gameId" to list.gameId, "uploadId" to build.uploadId),
|
||||
sizeBytes = build.size.takeIf { it > 0 } ?: item.sizeBytes,
|
||||
)
|
||||
close()
|
||||
StoresState.requestInstall(ctx, tagged)
|
||||
}
|
||||
|
||||
LaunchedEffect(item) {
|
||||
val result = withContext(Dispatchers.IO) {
|
||||
val key = ItchAuth.key(app)
|
||||
val id = if (key.isBlank()) null else ItchGame.resolveId(item)
|
||||
val uploads = id?.let { ItchApi.uploads(key, it, item.extra["downloadKeyId"].orEmpty()) }
|
||||
if (id == null || uploads == null) null else BuildList(id, ItchGame.builds(uploads))
|
||||
}
|
||||
if (result == null) { failed = true; return@LaunchedEffect }
|
||||
loaded = result
|
||||
if (shown.targetState) result.builds.singleOrNull()?.takeIf { it.installable }?.let { install(result, it) }
|
||||
}
|
||||
|
||||
AppDialog(shown, close, "itchBuilds", wide = false, maxWidth = 460.dp) {
|
||||
DialogTitleRow(stringResource(R.string.stores_itch_pick_title), close)
|
||||
Text(item.title, fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
val list = loaded
|
||||
when {
|
||||
failed -> Text(stringResource(R.string.stores_itch_pick_failed), fontSize = 13.sp, color = colors.onSurfaceVariant)
|
||||
list == null -> LinearProgressIndicator(Modifier.fillMaxWidth().padding(vertical = 8.dp))
|
||||
list.builds.isEmpty() -> Text(stringResource(R.string.stores_itch_pick_none), fontSize = 13.sp, color = colors.onSurfaceVariant)
|
||||
else -> Column(verticalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.fillMaxWidth()) {
|
||||
for (build in list.builds) key(build.uploadId) { BuildRow(item, build) { install(list, build) } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun BuildRow(item: CatalogItem, build: ItchBuild, onInstall: () -> Unit) {
|
||||
val ctx = LocalContext.current
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val linux = "linux" in build.platforms && !build.installable
|
||||
val detail = listOfNotNull(
|
||||
build.platforms.map { platformName(it) }.joinToString(", "),
|
||||
build.size.takeIf { it > 0 }?.let { formatBytes(it) },
|
||||
build.updatedAt.take(10).takeIf { it.isNotBlank() },
|
||||
if (build.demo) stringResource(R.string.stores_itch_build_demo) else null,
|
||||
).joinToString(" · ")
|
||||
ListRow(enabled = !linux, onClick = { if (build.installable) onInstall() else openStoreUrl(ctx, item) }) {
|
||||
Column(Modifier.weight(1f)) {
|
||||
Text(build.filename.ifBlank { item.title }, fontSize = 13.sp, color = colors.onBackground, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
Text(detail, fontSize = 11.sp, color = colors.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
val label = when {
|
||||
build.installable -> stringResource(R.string.stores_install)
|
||||
linux -> stringResource(R.string.stores_itch_build_linux_soon)
|
||||
else -> stringResource(R.string.stores_itch_build_open)
|
||||
}
|
||||
Text(label, fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 1)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun platformName(platform: String): String = stringResource(
|
||||
when (platform) {
|
||||
"windows" -> R.string.stores_itch_build_windows
|
||||
"linux" -> R.string.stores_itch_build_linux
|
||||
"osx" -> R.string.stores_itch_build_macos
|
||||
"android" -> R.string.stores_itch_build_android
|
||||
else -> R.string.stores_itch_build_web
|
||||
},
|
||||
)
|
||||
@@ -2099,6 +2099,13 @@
|
||||
<string name="stores_itch_browse_failed">تعذّر تحميل الألعاب من itch.io</string>
|
||||
<string name="stores_itch_archive">أرشيفات %1$s غير مدعومة</string>
|
||||
<string name="stores_itch_download_failed">استجاب itch.io بـ HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">اختر إصدارًا</string>
|
||||
<string name="stores_itch_pick_none">لم يُعثر على تنزيلات لهذه اللعبة</string>
|
||||
<string name="stores_itch_pick_failed">تعذر تحميل التنزيلات من itch.io</string>
|
||||
<string name="stores_itch_build_demo">نسخة تجريبية</string>
|
||||
<string name="stores_itch_build_open">فتح على itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">غير مدعوم بعد</string>
|
||||
<string name="stores_itch_no_game">تعذر العثور على هذه اللعبة على itch.io</string>
|
||||
<string name="stores_free">مجاني</string>
|
||||
<string name="stores_resume">استئناف</string>
|
||||
<string name="stores_refresh">تحديث</string>
|
||||
|
||||
@@ -2783,6 +2783,13 @@
|
||||
<string name="stores_itch_browse_failed">No se pudieron cargar los juegos de itch.io</string>
|
||||
<string name="stores_itch_archive">Los archivos %1$s no son compatibles</string>
|
||||
<string name="stores_itch_download_failed">itch.io respondió HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Elige una versión</string>
|
||||
<string name="stores_itch_pick_none">No se encontraron descargas para este juego</string>
|
||||
<string name="stores_itch_pick_failed">No se pudieron cargar las descargas de itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Abrir en itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Aún no es compatible</string>
|
||||
<string name="stores_itch_no_game">No se encontró este juego en itch.io</string>
|
||||
<string name="glasses_experimental">Cámaras Luma Ultra — Experimental</string>
|
||||
<string name="glasses_joycons">Seguimiento de posición de los Joy-Con</string>
|
||||
<string name="glasses_joycons_hint">Usa las cámaras de las gafas inteligentes para posicionar tus mandos Joy-Con emparejados. La rotación y las pulsaciones de los botones provienen de los mandos Joy-Con. La posición se estima cuando tus muñecas están ocultas. Reemplaza los mandos operados con las manos desnudas y pausa el seguimiento de la cámara del teléfono. Apunta los mandos Joy-Con hacia adelante al conectar o restablecer el centro de seguimiento.</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Игрите от itch.io не можаха да се заредят</string>
|
||||
<string name="stores_itch_archive">Архивите %1$s не се поддържат</string>
|
||||
<string name="stores_itch_download_failed">itch.io отговори HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Изберете версия</string>
|
||||
<string name="stores_itch_pick_none">Не са намерени изтегляния за тази игра</string>
|
||||
<string name="stores_itch_pick_failed">Изтеглянията от itch.io не можаха да се заредят</string>
|
||||
<string name="stores_itch_build_demo">Демо</string>
|
||||
<string name="stores_itch_build_open">Отваряне в itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Все още не се поддържа</string>
|
||||
<string name="stores_itch_no_game">Играта не беше намерена в itch.io</string>
|
||||
<string name="stores_free">Безплатна</string>
|
||||
<string name="stores_resume">Продължи</string>
|
||||
<string name="stores_refresh">Обнови</string>
|
||||
|
||||
@@ -2057,6 +2057,13 @@
|
||||
<string name="stores_itch_browse_failed">Hry z itch.io se nepodařilo načíst</string>
|
||||
<string name="stores_itch_archive">Archivy %1$s nejsou podporovány</string>
|
||||
<string name="stores_itch_download_failed">itch.io odpovědělo HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Vyberte verzi</string>
|
||||
<string name="stores_itch_pick_none">Pro tuto hru nebyla nalezena žádná stažení</string>
|
||||
<string name="stores_itch_pick_failed">Stahování z itch.io se nepodařilo načíst</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Otevřít na itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Zatím nepodporováno</string>
|
||||
<string name="stores_itch_no_game">Tuto hru se na itch.io nepodařilo najít</string>
|
||||
<string name="stores_free">Zdarma</string>
|
||||
<string name="stores_resume">Pokračovat</string>
|
||||
<string name="stores_refresh">Obnovit</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Kunne ikke hente spil fra itch.io</string>
|
||||
<string name="stores_itch_archive">%1$s-arkiver understøttes ikke</string>
|
||||
<string name="stores_itch_download_failed">itch.io svarede HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Vælg en version</string>
|
||||
<string name="stores_itch_pick_none">Ingen downloads fundet til dette spil</string>
|
||||
<string name="stores_itch_pick_failed">Kunne ikke indlæse downloads fra itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Åbn på itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Understøttes ikke endnu</string>
|
||||
<string name="stores_itch_no_game">Kunne ikke finde dette spil på itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Genoptag</string>
|
||||
<string name="stores_refresh">Opdater</string>
|
||||
|
||||
@@ -2007,6 +2007,13 @@
|
||||
<string name="stores_itch_browse_failed">Spiele von itch.io konnten nicht geladen werden</string>
|
||||
<string name="stores_itch_archive">%1$s-Archive werden nicht unterstützt</string>
|
||||
<string name="stores_itch_download_failed">itch.io antwortete mit HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Version auswählen</string>
|
||||
<string name="stores_itch_pick_none">Für dieses Spiel wurden keine Downloads gefunden</string>
|
||||
<string name="stores_itch_pick_failed">Die Downloads von itch.io konnten nicht geladen werden</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Auf itch.io öffnen</string>
|
||||
<string name="stores_itch_build_linux_soon">Noch nicht unterstützt</string>
|
||||
<string name="stores_itch_no_game">Dieses Spiel wurde auf itch.io nicht gefunden</string>
|
||||
<string name="stores_free">Kostenlos</string>
|
||||
<string name="stores_resume">Fortsetzen</string>
|
||||
<string name="stores_refresh">Aktualisieren</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Δεν ήταν δυνατή η φόρτωση παιχνιδιών από το itch.io</string>
|
||||
<string name="stores_itch_archive">Τα αρχεία %1$s δεν υποστηρίζονται</string>
|
||||
<string name="stores_itch_download_failed">Το itch.io απάντησε HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Επιλέξτε έκδοση</string>
|
||||
<string name="stores_itch_pick_none">Δεν βρέθηκαν λήψεις για αυτό το παιχνίδι</string>
|
||||
<string name="stores_itch_pick_failed">Δεν ήταν δυνατή η φόρτωση των λήψεων από το itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Άνοιγμα στο itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Δεν υποστηρίζεται ακόμη</string>
|
||||
<string name="stores_itch_no_game">Δεν βρέθηκε αυτό το παιχνίδι στο itch.io</string>
|
||||
<string name="stores_free">Δωρεάν</string>
|
||||
<string name="stores_resume">Συνέχιση</string>
|
||||
<string name="stores_refresh">Ανανέωση</string>
|
||||
|
||||
@@ -2038,6 +2038,13 @@
|
||||
<string name="stores_itch_browse_failed">No se pudieron cargar los juegos de itch.io</string>
|
||||
<string name="stores_itch_archive">Los archivos %1$s no son compatibles</string>
|
||||
<string name="stores_itch_download_failed">itch.io respondió HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Elige una versión</string>
|
||||
<string name="stores_itch_pick_none">No se han encontrado descargas para este juego</string>
|
||||
<string name="stores_itch_pick_failed">No se pudieron cargar las descargas de itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Abrir en itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Aún no es compatible</string>
|
||||
<string name="stores_itch_no_game">No se ha encontrado este juego en itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Reanudar</string>
|
||||
<string name="stores_refresh">Actualizar</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Pelien lataaminen itch.io:sta epäonnistui</string>
|
||||
<string name="stores_itch_archive">%1$s-arkistot eivät ole tuettuja</string>
|
||||
<string name="stores_itch_download_failed">itch.io vastasi HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Valitse versio</string>
|
||||
<string name="stores_itch_pick_none">Tälle pelille ei löytynyt latauksia</string>
|
||||
<string name="stores_itch_pick_failed">Latausten haku itch.iosta epäonnistui</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Avaa itch.iossa</string>
|
||||
<string name="stores_itch_build_linux_soon">Ei vielä tuettu</string>
|
||||
<string name="stores_itch_no_game">Peliä ei löytynyt itch.iosta</string>
|
||||
<string name="stores_free">Ilmainen</string>
|
||||
<string name="stores_resume">Jatka</string>
|
||||
<string name="stores_refresh">Päivitä</string>
|
||||
|
||||
@@ -2038,6 +2038,13 @@
|
||||
<string name="stores_itch_browse_failed">Impossible de charger les jeux d\'itch.io</string>
|
||||
<string name="stores_itch_archive">Les archives %1$s ne sont pas prises en charge</string>
|
||||
<string name="stores_itch_download_failed">itch.io a répondu HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Choisissez une version</string>
|
||||
<string name="stores_itch_pick_none">Aucun téléchargement trouvé pour ce jeu</string>
|
||||
<string name="stores_itch_pick_failed">Impossible de charger les téléchargements depuis itch.io</string>
|
||||
<string name="stores_itch_build_demo">Démo</string>
|
||||
<string name="stores_itch_build_open">Ouvrir sur itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Pas encore pris en charge</string>
|
||||
<string name="stores_itch_no_game">Ce jeu est introuvable sur itch.io</string>
|
||||
<string name="stores_free">Gratuit</string>
|
||||
<string name="stores_resume">Reprendre</string>
|
||||
<string name="stores_refresh">Actualiser</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">itch.io से गेम लोड नहीं हो सके</string>
|
||||
<string name="stores_itch_archive">%1$s आर्काइव समर्थित नहीं हैं</string>
|
||||
<string name="stores_itch_download_failed">itch.io ने HTTP %1$d लौटाया</string>
|
||||
<string name="stores_itch_pick_title">संस्करण चुनें</string>
|
||||
<string name="stores_itch_pick_none">इस गेम के लिए कोई डाउनलोड नहीं मिला</string>
|
||||
<string name="stores_itch_pick_failed">itch.io से डाउनलोड लोड नहीं हो सके</string>
|
||||
<string name="stores_itch_build_demo">डेमो</string>
|
||||
<string name="stores_itch_build_open">itch.io पर खोलें</string>
|
||||
<string name="stores_itch_build_linux_soon">अभी समर्थित नहीं है</string>
|
||||
<string name="stores_itch_no_game">यह गेम itch.io पर नहीं मिला</string>
|
||||
<string name="stores_free">फ़्री</string>
|
||||
<string name="stores_resume">फिर से शुरू करें</string>
|
||||
<string name="stores_refresh">रीफ़्रेश करें</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Nem sikerült betölteni a játékokat az itch.io-ról</string>
|
||||
<string name="stores_itch_archive">A(z) %1$s archívumok nem támogatottak</string>
|
||||
<string name="stores_itch_download_failed">Az itch.io HTTP %1$d választ adott</string>
|
||||
<string name="stores_itch_pick_title">Válassz verziót</string>
|
||||
<string name="stores_itch_pick_none">Ehhez a játékhoz nem található letöltés</string>
|
||||
<string name="stores_itch_pick_failed">A letöltések betöltése az itch.io-ról nem sikerült</string>
|
||||
<string name="stores_itch_build_demo">Demó</string>
|
||||
<string name="stores_itch_build_open">Megnyitás az itch.io-n</string>
|
||||
<string name="stores_itch_build_linux_soon">Még nem támogatott</string>
|
||||
<string name="stores_itch_no_game">A játék nem található az itch.io-n</string>
|
||||
<string name="stores_free">Ingyenes</string>
|
||||
<string name="stores_resume">Folytatás</string>
|
||||
<string name="stores_refresh">Frissítés</string>
|
||||
|
||||
@@ -1994,6 +1994,13 @@
|
||||
<string name="stores_itch_browse_failed">Tidak dapat memuat game dari itch.io</string>
|
||||
<string name="stores_itch_archive">Arsip %1$s tidak didukung</string>
|
||||
<string name="stores_itch_download_failed">itch.io menjawab HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Pilih versi</string>
|
||||
<string name="stores_itch_pick_none">Tidak ada unduhan untuk game ini</string>
|
||||
<string name="stores_itch_pick_failed">Tidak dapat memuat unduhan dari itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Buka di itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Belum didukung</string>
|
||||
<string name="stores_itch_no_game">Game ini tidak ditemukan di itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Lanjutkan</string>
|
||||
<string name="stores_refresh">Segarkan</string>
|
||||
|
||||
@@ -2028,6 +2028,13 @@
|
||||
<string name="stores_itch_browse_failed">Impossibile caricare i giochi da itch.io</string>
|
||||
<string name="stores_itch_archive">Gli archivi %1$s non sono supportati</string>
|
||||
<string name="stores_itch_download_failed">itch.io ha risposto HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Scegli una versione</string>
|
||||
<string name="stores_itch_pick_none">Nessun download trovato per questo gioco</string>
|
||||
<string name="stores_itch_pick_failed">Impossibile caricare i download da itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Apri su itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Non ancora supportato</string>
|
||||
<string name="stores_itch_no_game">Gioco non trovato su itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Riprendi</string>
|
||||
<string name="stores_refresh">Aggiorna</string>
|
||||
|
||||
@@ -1996,6 +1996,13 @@
|
||||
<string name="stores_itch_browse_failed">itch.io のゲームを読み込めませんでした</string>
|
||||
<string name="stores_itch_archive">%1$s 形式のアーカイブには対応していません</string>
|
||||
<string name="stores_itch_download_failed">itch.io が HTTP %1$d を返しました</string>
|
||||
<string name="stores_itch_pick_title">バージョンを選択</string>
|
||||
<string name="stores_itch_pick_none">このゲームのダウンロードが見つかりません</string>
|
||||
<string name="stores_itch_pick_failed">itch.io からダウンロードを読み込めませんでした</string>
|
||||
<string name="stores_itch_build_demo">デモ</string>
|
||||
<string name="stores_itch_build_open">itch.io で開く</string>
|
||||
<string name="stores_itch_build_linux_soon">まだ対応していません</string>
|
||||
<string name="stores_itch_no_game">itch.io でこのゲームが見つかりませんでした</string>
|
||||
<string name="stores_free">無料</string>
|
||||
<string name="stores_resume">再開</string>
|
||||
<string name="stores_refresh">更新</string>
|
||||
|
||||
@@ -1996,6 +1996,13 @@
|
||||
<string name="stores_itch_browse_failed">itch.io에서 게임을 불러오지 못했습니다</string>
|
||||
<string name="stores_itch_archive">%1$s 압축 파일은 지원하지 않습니다</string>
|
||||
<string name="stores_itch_download_failed">itch.io가 HTTP %1$d을(를) 반환했습니다</string>
|
||||
<string name="stores_itch_pick_title">버전 선택</string>
|
||||
<string name="stores_itch_pick_none">이 게임의 다운로드를 찾을 수 없습니다</string>
|
||||
<string name="stores_itch_pick_failed">itch.io에서 다운로드를 불러오지 못했습니다</string>
|
||||
<string name="stores_itch_build_demo">데모</string>
|
||||
<string name="stores_itch_build_open">itch.io에서 열기</string>
|
||||
<string name="stores_itch_build_linux_soon">아직 지원되지 않음</string>
|
||||
<string name="stores_itch_no_game">itch.io에서 이 게임을 찾을 수 없습니다</string>
|
||||
<string name="stores_free">무료</string>
|
||||
<string name="stores_resume">재개</string>
|
||||
<string name="stores_refresh">새로 고침</string>
|
||||
|
||||
@@ -1994,6 +1994,13 @@
|
||||
<string name="stores_itch_browse_failed">Tidak dapat memuatkan permainan daripada itch.io</string>
|
||||
<string name="stores_itch_archive">Arkib %1$s tidak disokong</string>
|
||||
<string name="stores_itch_download_failed">itch.io menjawab HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Pilih versi</string>
|
||||
<string name="stores_itch_pick_none">Tiada muat turun ditemui untuk permainan ini</string>
|
||||
<string name="stores_itch_pick_failed">Tidak dapat memuatkan muat turun daripada itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Buka di itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Belum disokong</string>
|
||||
<string name="stores_itch_no_game">Permainan ini tidak ditemui di itch.io</string>
|
||||
<string name="stores_free">Percuma</string>
|
||||
<string name="stores_resume">Sambung</string>
|
||||
<string name="stores_refresh">Segar semula</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Kunne ikke laste spill fra itch.io</string>
|
||||
<string name="stores_itch_archive">%1$s-arkiver støttes ikke</string>
|
||||
<string name="stores_itch_download_failed">itch.io svarte HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Velg en versjon</string>
|
||||
<string name="stores_itch_pick_none">Fant ingen nedlastinger for dette spillet</string>
|
||||
<string name="stores_itch_pick_failed">Kunne ikke laste inn nedlastingene fra itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Åpne på itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Støttes ikke ennå</string>
|
||||
<string name="stores_itch_no_game">Fant ikke dette spillet på itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Gjenoppta</string>
|
||||
<string name="stores_refresh">Oppdater</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Games van itch.io konden niet worden geladen</string>
|
||||
<string name="stores_itch_archive">%1$s-archieven worden niet ondersteund</string>
|
||||
<string name="stores_itch_download_failed">itch.io antwoordde HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Kies een versie</string>
|
||||
<string name="stores_itch_pick_none">Geen downloads gevonden voor deze game</string>
|
||||
<string name="stores_itch_pick_failed">De downloads van itch.io konden niet worden geladen</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Openen op itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Nog niet ondersteund</string>
|
||||
<string name="stores_itch_no_game">Deze game is niet gevonden op itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Hervatten</string>
|
||||
<string name="stores_refresh">Vernieuwen</string>
|
||||
|
||||
@@ -2057,6 +2057,13 @@
|
||||
<string name="stores_itch_browse_failed">Nie udało się wczytać gier z itch.io</string>
|
||||
<string name="stores_itch_archive">Archiwa %1$s nie są obsługiwane</string>
|
||||
<string name="stores_itch_download_failed">itch.io odpowiedziało HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Wybierz wersję</string>
|
||||
<string name="stores_itch_pick_none">Nie znaleziono plików do pobrania dla tej gry</string>
|
||||
<string name="stores_itch_pick_failed">Nie udało się wczytać plików z itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Otwórz w itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Jeszcze nieobsługiwane</string>
|
||||
<string name="stores_itch_no_game">Nie znaleziono tej gry w itch.io</string>
|
||||
<string name="stores_free">Bezpłatna</string>
|
||||
<string name="stores_resume">Wznów</string>
|
||||
<string name="stores_refresh">Odśwież</string>
|
||||
|
||||
@@ -2028,6 +2028,13 @@
|
||||
<string name="stores_itch_browse_failed">Não foi possível carregar os jogos do itch.io</string>
|
||||
<string name="stores_itch_archive">Ficheiros %1$s não são suportados</string>
|
||||
<string name="stores_itch_download_failed">O itch.io respondeu HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Escolha uma versão</string>
|
||||
<string name="stores_itch_pick_none">Não foram encontradas transferências para este jogo</string>
|
||||
<string name="stores_itch_pick_failed">Não foi possível carregar as transferências do itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Abrir no itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Ainda não suportado</string>
|
||||
<string name="stores_itch_no_game">Não foi possível encontrar este jogo no itch.io</string>
|
||||
<string name="stores_free">Grátis</string>
|
||||
<string name="stores_resume">Retomar</string>
|
||||
<string name="stores_refresh">Atualizar</string>
|
||||
|
||||
@@ -2028,6 +2028,13 @@
|
||||
<string name="stores_itch_browse_failed">Não foi possível carregar os jogos do itch.io</string>
|
||||
<string name="stores_itch_archive">Arquivos %1$s não são suportados</string>
|
||||
<string name="stores_itch_download_failed">O itch.io respondeu HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Escolha uma versão</string>
|
||||
<string name="stores_itch_pick_none">Nenhum download encontrado para este jogo</string>
|
||||
<string name="stores_itch_pick_failed">Não foi possível carregar os downloads do itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Abrir no itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Ainda não suportado</string>
|
||||
<string name="stores_itch_no_game">Não foi possível encontrar este jogo no itch.io</string>
|
||||
<string name="stores_free">Grátis</string>
|
||||
<string name="stores_resume">Retomar</string>
|
||||
<string name="stores_refresh">Atualizar</string>
|
||||
|
||||
@@ -2036,6 +2036,13 @@
|
||||
<string name="stores_itch_browse_failed">Nu s-au putut încărca jocurile de pe itch.io</string>
|
||||
<string name="stores_itch_archive">Arhivele %1$s nu sunt acceptate</string>
|
||||
<string name="stores_itch_download_failed">itch.io a răspuns HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Alege o versiune</string>
|
||||
<string name="stores_itch_pick_none">Nu s-au găsit descărcări pentru acest joc</string>
|
||||
<string name="stores_itch_pick_failed">Descărcările de pe itch.io nu au putut fi încărcate</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Deschide pe itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Încă nu este acceptat</string>
|
||||
<string name="stores_itch_no_game">Jocul nu a fost găsit pe itch.io</string>
|
||||
<string name="stores_free">Gratuit</string>
|
||||
<string name="stores_resume">Reluare</string>
|
||||
<string name="stores_refresh">Reîmprospătează</string>
|
||||
|
||||
@@ -2059,6 +2059,13 @@
|
||||
<string name="stores_itch_browse_failed">Не удалось загрузить игры с itch.io</string>
|
||||
<string name="stores_itch_archive">Архивы %1$s не поддерживаются</string>
|
||||
<string name="stores_itch_download_failed">itch.io ответил HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Выберите версию</string>
|
||||
<string name="stores_itch_pick_none">Для этой игры не найдено загрузок</string>
|
||||
<string name="stores_itch_pick_failed">Не удалось загрузить список файлов с itch.io</string>
|
||||
<string name="stores_itch_build_demo">Демо</string>
|
||||
<string name="stores_itch_build_open">Открыть на itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Пока не поддерживается</string>
|
||||
<string name="stores_itch_no_game">Не удалось найти эту игру на itch.io</string>
|
||||
<string name="stores_free">Бесплатно</string>
|
||||
<string name="stores_resume">Продолжить</string>
|
||||
<string name="stores_refresh">Обновить</string>
|
||||
|
||||
@@ -2015,6 +2015,13 @@
|
||||
<string name="stores_itch_browse_failed">Det gick inte att läsa in spel från itch.io</string>
|
||||
<string name="stores_itch_archive">%1$s-arkiv stöds inte</string>
|
||||
<string name="stores_itch_download_failed">itch.io svarade HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Välj en version</string>
|
||||
<string name="stores_itch_pick_none">Inga nedladdningar hittades för det här spelet</string>
|
||||
<string name="stores_itch_pick_failed">Det gick inte att läsa in nedladdningarna från itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Öppna på itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Stöds inte ännu</string>
|
||||
<string name="stores_itch_no_game">Spelet hittades inte på itch.io</string>
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Återuppta</string>
|
||||
<string name="stores_refresh">Uppdatera</string>
|
||||
|
||||
@@ -1994,6 +1994,13 @@
|
||||
<string name="stores_itch_browse_failed">โหลดเกมจาก itch.io ไม่ได้</string>
|
||||
<string name="stores_itch_archive">ไม่รองรับไฟล์ %1$s</string>
|
||||
<string name="stores_itch_download_failed">itch.io ตอบกลับ HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">เลือกเวอร์ชัน</string>
|
||||
<string name="stores_itch_pick_none">ไม่พบไฟล์ดาวน์โหลดสำหรับเกมนี้</string>
|
||||
<string name="stores_itch_pick_failed">โหลดรายการดาวน์โหลดจาก itch.io ไม่ได้</string>
|
||||
<string name="stores_itch_build_demo">เดโม</string>
|
||||
<string name="stores_itch_build_open">เปิดบน itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">ยังไม่รองรับ</string>
|
||||
<string name="stores_itch_no_game">ไม่พบเกมนี้บน itch.io</string>
|
||||
<string name="stores_free">ฟรี</string>
|
||||
<string name="stores_resume">ดำเนินการต่อ</string>
|
||||
<string name="stores_refresh">รีเฟรช</string>
|
||||
|
||||
@@ -2009,6 +2009,13 @@
|
||||
<string name="stores_itch_browse_failed">itch.io oyunları yüklenemedi</string>
|
||||
<string name="stores_itch_archive">%1$s arşivleri desteklenmiyor</string>
|
||||
<string name="stores_itch_download_failed">itch.io HTTP %1$d yanıtı verdi</string>
|
||||
<string name="stores_itch_pick_title">Bir sürüm seçin</string>
|
||||
<string name="stores_itch_pick_none">Bu oyun için indirme bulunamadı</string>
|
||||
<string name="stores_itch_pick_failed">İndirmeler itch.io\'dan yüklenemedi</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">itch.io\'da aç</string>
|
||||
<string name="stores_itch_build_linux_soon">Henüz desteklenmiyor</string>
|
||||
<string name="stores_itch_no_game">Bu oyun itch.io\'da bulunamadı</string>
|
||||
<string name="stores_free">Ücretsiz</string>
|
||||
<string name="stores_resume">Sürdür</string>
|
||||
<string name="stores_refresh">Yenile</string>
|
||||
|
||||
@@ -2057,6 +2057,13 @@
|
||||
<string name="stores_itch_browse_failed">Не вдалося завантажити ігри з itch.io</string>
|
||||
<string name="stores_itch_archive">Архіви %1$s не підтримуються</string>
|
||||
<string name="stores_itch_download_failed">itch.io відповів HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Виберіть версію</string>
|
||||
<string name="stores_itch_pick_none">Для цієї гри не знайдено завантажень</string>
|
||||
<string name="stores_itch_pick_failed">Не вдалося завантажити список файлів з itch.io</string>
|
||||
<string name="stores_itch_build_demo">Демо</string>
|
||||
<string name="stores_itch_build_open">Відкрити на itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Ще не підтримується</string>
|
||||
<string name="stores_itch_no_game">Не вдалося знайти цю гру на itch.io</string>
|
||||
<string name="stores_free">Безкоштовно</string>
|
||||
<string name="stores_resume">Продовжити</string>
|
||||
<string name="stores_refresh">Оновити</string>
|
||||
|
||||
@@ -1994,6 +1994,13 @@
|
||||
<string name="stores_itch_browse_failed">Không tải được game từ itch.io</string>
|
||||
<string name="stores_itch_archive">Không hỗ trợ tệp %1$s</string>
|
||||
<string name="stores_itch_download_failed">itch.io trả về HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Chọn phiên bản</string>
|
||||
<string name="stores_itch_pick_none">Không tìm thấy bản tải xuống cho trò chơi này</string>
|
||||
<string name="stores_itch_pick_failed">Không thể tải danh sách tải xuống từ itch.io</string>
|
||||
<string name="stores_itch_build_demo">Bản demo</string>
|
||||
<string name="stores_itch_build_open">Mở trên itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Chưa được hỗ trợ</string>
|
||||
<string name="stores_itch_no_game">Không tìm thấy trò chơi này trên itch.io</string>
|
||||
<string name="stores_free">Miễn phí</string>
|
||||
<string name="stores_resume">Tiếp tục</string>
|
||||
<string name="stores_refresh">Làm mới</string>
|
||||
|
||||
@@ -2074,6 +2074,13 @@
|
||||
<string name="stores_itch_browse_failed">无法从 itch.io 加载游戏</string>
|
||||
<string name="stores_itch_archive">不支持 %1$s 压缩包</string>
|
||||
<string name="stores_itch_download_failed">itch.io 返回 HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">选择版本</string>
|
||||
<string name="stores_itch_pick_none">未找到此游戏的下载</string>
|
||||
<string name="stores_itch_pick_failed">无法从 itch.io 加载下载内容</string>
|
||||
<string name="stores_itch_build_demo">试玩版</string>
|
||||
<string name="stores_itch_build_open">在 itch.io 上打开</string>
|
||||
<string name="stores_itch_build_linux_soon">暂不支持</string>
|
||||
<string name="stores_itch_no_game">在 itch.io 上找不到这款游戏</string>
|
||||
<string name="stores_free">免费</string>
|
||||
<string name="stores_resume">继续</string>
|
||||
<string name="stores_refresh">刷新</string>
|
||||
|
||||
@@ -1997,6 +1997,13 @@
|
||||
<string name="stores_itch_browse_failed">無法從 itch.io 載入遊戲</string>
|
||||
<string name="stores_itch_archive">不支援 %1$s 壓縮檔</string>
|
||||
<string name="stores_itch_download_failed">itch.io 回應 HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">選擇版本</string>
|
||||
<string name="stores_itch_pick_none">找不到此遊戲的下載</string>
|
||||
<string name="stores_itch_pick_failed">無法從 itch.io 載入下載內容</string>
|
||||
<string name="stores_itch_build_demo">試玩版</string>
|
||||
<string name="stores_itch_build_open">在 itch.io 開啟</string>
|
||||
<string name="stores_itch_build_linux_soon">暫不支援</string>
|
||||
<string name="stores_itch_no_game">在 itch.io 找不到這款遊戲</string>
|
||||
<string name="stores_free">免費</string>
|
||||
<string name="stores_resume">繼續</string>
|
||||
<string name="stores_refresh">重新整理</string>
|
||||
|
||||
@@ -1997,6 +1997,13 @@
|
||||
<string name="stores_itch_browse_failed">無法從 itch.io 載入遊戲</string>
|
||||
<string name="stores_itch_archive">不支援 %1$s 壓縮檔</string>
|
||||
<string name="stores_itch_download_failed">itch.io 回應 HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">選擇版本</string>
|
||||
<string name="stores_itch_pick_none">找不到此遊戲的下載</string>
|
||||
<string name="stores_itch_pick_failed">無法從 itch.io 載入下載內容</string>
|
||||
<string name="stores_itch_build_demo">試玩版</string>
|
||||
<string name="stores_itch_build_open">在 itch.io 開啟</string>
|
||||
<string name="stores_itch_build_linux_soon">尚未支援</string>
|
||||
<string name="stores_itch_no_game">在 itch.io 找不到這款遊戲</string>
|
||||
<string name="stores_free">免費</string>
|
||||
<string name="stores_resume">繼續</string>
|
||||
<string name="stores_refresh">重新整理</string>
|
||||
|
||||
@@ -2108,6 +2108,18 @@
|
||||
<string name="stores_itch_browse_failed">Could not load games from itch.io</string>
|
||||
<string name="stores_itch_archive">%1$s archives are not supported</string>
|
||||
<string name="stores_itch_download_failed">itch.io answered HTTP %1$d</string>
|
||||
<string name="stores_itch_pick_title">Choose a version</string>
|
||||
<string name="stores_itch_pick_none">No downloads found for this game</string>
|
||||
<string name="stores_itch_pick_failed">Could not load the downloads from itch.io</string>
|
||||
<string name="stores_itch_build_demo">Demo</string>
|
||||
<string name="stores_itch_build_open">Open on itch.io</string>
|
||||
<string name="stores_itch_build_linux_soon">Not supported yet</string>
|
||||
<string name="stores_itch_no_game">Could not find this game on itch.io</string>
|
||||
<string name="stores_itch_build_windows" translatable="false">Windows</string>
|
||||
<string name="stores_itch_build_macos" translatable="false">macOS</string>
|
||||
<string name="stores_itch_build_linux" translatable="false">Linux</string>
|
||||
<string name="stores_itch_build_android" translatable="false">Android</string>
|
||||
<string name="stores_itch_build_web" translatable="false">Web</string>
|
||||
<string name="stores_free">Free</string>
|
||||
<string name="stores_resume">Resume</string>
|
||||
<string name="stores_refresh">Refresh</string>
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.droiddeck.launcher.stores.itch
|
||||
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
@org.junit.runner.RunWith(org.robolectric.RobolectricTestRunner::class)
|
||||
@org.robolectric.annotation.Config(sdk = [33], application = android.app.Application::class)
|
||||
class ItchGameTest {
|
||||
private fun upload(id: String, filename: String, vararg traits: String, type: String = "default", storage: String = "hosted", demo: Boolean = false, updated: String = "2026-09-16T02:26:06Z") =
|
||||
JSONObject().put("id", id).put("filename", filename).put("size", 1000).put("type", type).put("storage", storage)
|
||||
.put("demo", demo).put("traits", JSONArray(traits.toList())).put("updated_at", updated)
|
||||
|
||||
@Test fun theGameNumberComesFromThePageMeta() {
|
||||
assertEquals("1576684", ItchGame.idFromPage("""<head><meta name="itch:path" content="games/1576684"></head>"""))
|
||||
assertEquals("1576684", ItchGame.idFromPage("""<meta content="games/1576684" name="itch:path">"""))
|
||||
assertNull(ItchGame.idFromPage("<html>no meta here</html>"))
|
||||
}
|
||||
|
||||
@Test fun platformsComeFromTheTraits() {
|
||||
assertEquals(setOf("windows"), ItchUploads.platforms(upload("1", "a.zip", "p_windows")))
|
||||
assertEquals(setOf("linux", "osx"), ItchUploads.platforms(upload("2", "a.zip", "p_linux", "p_osx")))
|
||||
assertEquals(setOf("android"), ItchUploads.platforms(upload("3", "a.apk", "p_android")))
|
||||
assertEquals(setOf("web"), ItchUploads.platforms(upload("4", "a.zip", type = "html")))
|
||||
}
|
||||
|
||||
@Test fun anUploadWithNoPlatformIsTreatedAsWindows() {
|
||||
assertEquals(setOf("windows"), ItchUploads.platforms(upload("5", "a.zip")))
|
||||
}
|
||||
|
||||
@Test fun platformsAlsoReadTheFlagObject() {
|
||||
val flags = JSONObject().put("windows", false).put("linux", true)
|
||||
assertEquals(setOf("linux"), ItchUploads.platforms(JSONObject().put("platforms", flags)))
|
||||
}
|
||||
|
||||
@Test fun buildsSkipExternalUploadsAndPutWindowsFirst() {
|
||||
val uploads = JSONArray()
|
||||
.put(upload("10", "linux.tar.gz", "p_linux", updated = "2026-10-01T00:00:00Z"))
|
||||
.put(upload("11", "win.zip", "p_windows", updated = "2026-09-01T00:00:00Z"))
|
||||
.put(upload("12", "site", "p_windows", storage = "external"))
|
||||
val builds = ItchGame.builds(uploads)
|
||||
assertEquals(listOf("11", "10"), builds.map { it.uploadId })
|
||||
assertTrue(builds[0].installable)
|
||||
assertFalse(builds[1].installable)
|
||||
}
|
||||
|
||||
@Test fun aDemoIsFlagged() {
|
||||
assertTrue(ItchGame.builds(JSONArray().put(upload("20", "demo.zip", "p_windows", demo = true))).single().demo)
|
||||
}
|
||||
|
||||
@Test fun anUploadIsFoundById() {
|
||||
val uploads = JSONArray().put(upload("30", "a.zip")).put(upload("31", "b.zip"))
|
||||
assertEquals("b.zip", ItchUploads.byId(uploads, "31")?.optString("filename"))
|
||||
assertNull(ItchUploads.byId(uploads, "99"))
|
||||
assertNull(ItchUploads.byId(uploads, ""))
|
||||
}
|
||||
|
||||
@Test fun noDownloadKeyMeansNoKeyInTheAddress() {
|
||||
assertEquals("https://api.itch.io/uploads/13619666/download", ItchApi.downloadUrl("13619666", ""))
|
||||
assertEquals("https://api.itch.io/uploads/13619666/download?download_key_id=7", ItchApi.downloadUrl("13619666", "7"))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user