mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
itch.io: platform and tag filters (#1497)
This commit is contained in:
1 parent
8d66570d33
commit
7b518d7e6a
38 files changed
+198
-3
No files matched your search
@@ -54,7 +54,7 @@ internal object ItchBrowse {
|
||||
|
||||
fun path(query: BrowseQuery): String {
|
||||
val segments = listOfNotNull(sortSegment(query.sort), priceSegment(query.price)) +
|
||||
query.platforms.sorted().map { "platform-$it" } +
|
||||
platformNames.filter { it in query.platforms }.map { "platform-$it" } +
|
||||
query.tags.map { "tag-" + tagSlug(it) }
|
||||
return if (segments.isEmpty()) BASE else BASE + "/" + segments.joinToString("/")
|
||||
}
|
||||
|
||||
@@ -676,14 +676,15 @@ private fun MoviePreview(url: String, modifier: Modifier = Modifier) {
|
||||
|
||||
/** A dialog with one text box, for a search term or a page number; the Android keyboard comes up with it. */
|
||||
@Composable
|
||||
private fun TextEntryDialog(
|
||||
internal fun TextEntryDialog(
|
||||
title: String, initial: String, number: Boolean, confirm: String, onSubmit: (String) -> Unit, onDismiss: () -> Unit,
|
||||
id: String = "boot-movie-entry",
|
||||
) {
|
||||
val shown = rememberShown(onDismiss)
|
||||
val close = { shown.targetState = false }
|
||||
var text by remember { mutableStateOf(initial) }
|
||||
val submit = { onSubmit(text.trim()); close() }
|
||||
AppDialog(shown, close, "boot-movie-entry", wide = false, maxWidth = 460.dp) {
|
||||
AppDialog(shown, close, id, wide = false, maxWidth = 460.dp) {
|
||||
DialogTitleRow(title, close)
|
||||
AdbTextField(
|
||||
value = text, onValueChange = { text = it }, label = "", keyboardType = if (number) KeyboardType.Number else KeyboardType.Text,
|
||||
|
||||
@@ -20,7 +20,10 @@ import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
@@ -38,6 +41,7 @@ import com.droiddeck.launcher.stores.itch.ItchBrowseState
|
||||
internal fun ItchBrowseBar() {
|
||||
val ctx = LocalContext.current
|
||||
val query = ItchBrowseState.query
|
||||
var picking by remember { mutableStateOf(false) }
|
||||
Column(Modifier.fillMaxWidth().padding(top = 6.dp, bottom = 8.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||
ChipRow {
|
||||
for (sort in ItchBrowse.sorts) BrowseChip(sortLabel(sort), query.sort == sort) { ItchBrowseState.choose(ctx, query.copy(sort = sort)) }
|
||||
@@ -45,7 +49,23 @@ internal fun ItchBrowseBar() {
|
||||
ChipRow {
|
||||
for (price in ItchBrowse.prices) BrowseChip(priceLabel(price), query.price == price) { ItchBrowseState.choose(ctx, query.copy(price = price)) }
|
||||
}
|
||||
ChipRow {
|
||||
BrowseChip(stringResource(R.string.stores_itch_platform_any), query.platforms.isEmpty()) { ItchBrowseState.choose(ctx, query.copy(platforms = emptySet())) }
|
||||
for (platform in ItchBrowse.platformNames) {
|
||||
val on = platform in query.platforms
|
||||
BrowseChip(platformLabel(platform), on) { ItchBrowseState.choose(ctx, query.copy(platforms = if (on) query.platforms - platform else query.platforms + platform)) }
|
||||
}
|
||||
}
|
||||
ChipRow {
|
||||
for (tag in query.tags) BrowseChip("$tag ✕", true) { ItchBrowseState.choose(ctx, query.copy(tags = query.tags - tag)) }
|
||||
BrowseChip(stringResource(R.string.stores_itch_tag_add), false) { picking = true }
|
||||
}
|
||||
}
|
||||
if (picking) TextEntryDialog(
|
||||
stringResource(R.string.stores_itch_tag_title), "", number = false, confirm = stringResource(R.string.common_ok),
|
||||
onSubmit = { value -> ItchBrowse.tagSlug(value).takeIf { it.isNotEmpty() }?.let { ItchBrowseState.choose(ctx, query.copy(tags = (query.tags + it).distinct())) } },
|
||||
onDismiss = { picking = false }, id = "itch-tag",
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
@@ -99,6 +119,19 @@ private fun sortLabel(sort: String): String = stringResource(
|
||||
},
|
||||
)
|
||||
|
||||
@Composable
|
||||
private fun platformLabel(platform: String): String = stringResource(
|
||||
when (platform) {
|
||||
"windows" -> R.string.stores_itch_platform_windows
|
||||
"osx" -> R.string.stores_itch_platform_macos
|
||||
"linux" -> R.string.stores_itch_platform_linux
|
||||
"android" -> R.string.stores_itch_platform_android
|
||||
"ios" -> R.string.stores_itch_platform_ios
|
||||
"web" -> R.string.stores_itch_platform_web
|
||||
else -> R.string.stores_itch_platform_mobile_web
|
||||
},
|
||||
)
|
||||
|
||||
@Composable
|
||||
private fun priceLabel(price: String): String = stringResource(
|
||||
when (price) {
|
||||
|
||||
@@ -2100,6 +2100,10 @@
|
||||
<string name="stores_itch_price_free">مجاني</string>
|
||||
<string name="stores_itch_price_sale">مخفّض</string>
|
||||
<string name="stores_itch_load_more">تحميل المزيد</string>
|
||||
<string name="stores_itch_platform_any">أي منصة</string>
|
||||
<string name="stores_itch_platform_mobile_web">ويب الجوال</string>
|
||||
<string name="stores_itch_tag_add">إضافة وسم</string>
|
||||
<string name="stores_itch_tag_title">التصفية حسب الوسم</string>
|
||||
<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>
|
||||
|
||||
@@ -2784,6 +2784,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">En oferta</string>
|
||||
<string name="stores_itch_load_more">Cargar más</string>
|
||||
<string name="stores_itch_platform_any">Cualquier plataforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web móvil</string>
|
||||
<string name="stores_itch_tag_add">Agregar una etiqueta</string>
|
||||
<string name="stores_itch_tag_title">Filtrar por etiqueta</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Безплатни</string>
|
||||
<string name="stores_itch_price_sale">С намаление</string>
|
||||
<string name="stores_itch_load_more">Зареди още</string>
|
||||
<string name="stores_itch_platform_any">Всяка платформа</string>
|
||||
<string name="stores_itch_platform_mobile_web">Мобилен уеб</string>
|
||||
<string name="stores_itch_tag_add">Добавяне на таг</string>
|
||||
<string name="stores_itch_tag_title">Филтриране по таг</string>
|
||||
<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>
|
||||
|
||||
@@ -2058,6 +2058,10 @@
|
||||
<string name="stores_itch_price_free">Zdarma</string>
|
||||
<string name="stores_itch_price_sale">Ve slevě</string>
|
||||
<string name="stores_itch_load_more">Načíst další</string>
|
||||
<string name="stores_itch_platform_any">Libovolná platforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobilní web</string>
|
||||
<string name="stores_itch_tag_add">Přidat štítek</string>
|
||||
<string name="stores_itch_tag_title">Filtrovat podle štítku</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">På tilbud</string>
|
||||
<string name="stores_itch_load_more">Indlæs flere</string>
|
||||
<string name="stores_itch_platform_any">Alle platforme</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobilweb</string>
|
||||
<string name="stores_itch_tag_add">Tilføj et tag</string>
|
||||
<string name="stores_itch_tag_title">Filtrer efter tag</string>
|
||||
<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>
|
||||
|
||||
@@ -2008,6 +2008,10 @@
|
||||
<string name="stores_itch_price_free">Kostenlos</string>
|
||||
<string name="stores_itch_price_sale">Im Angebot</string>
|
||||
<string name="stores_itch_load_more">Mehr laden</string>
|
||||
<string name="stores_itch_platform_any">Beliebige Plattform</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobiles Web</string>
|
||||
<string name="stores_itch_tag_add">Tag hinzufügen</string>
|
||||
<string name="stores_itch_tag_title">Nach Tag filtern</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Δωρεάν</string>
|
||||
<string name="stores_itch_price_sale">Σε προσφορά</string>
|
||||
<string name="stores_itch_load_more">Φόρτωση περισσότερων</string>
|
||||
<string name="stores_itch_platform_any">Οποιαδήποτε πλατφόρμα</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobile web</string>
|
||||
<string name="stores_itch_tag_add">Προσθήκη ετικέτας</string>
|
||||
<string name="stores_itch_tag_title">Φιλτράρισμα ανά ετικέτα</string>
|
||||
<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>
|
||||
|
||||
@@ -2039,6 +2039,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">En oferta</string>
|
||||
<string name="stores_itch_load_more">Cargar más</string>
|
||||
<string name="stores_itch_platform_any">Cualquier plataforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web móvil</string>
|
||||
<string name="stores_itch_tag_add">Añadir una etiqueta</string>
|
||||
<string name="stores_itch_tag_title">Filtrar por etiqueta</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Ilmaiset</string>
|
||||
<string name="stores_itch_price_sale">Alennuksessa</string>
|
||||
<string name="stores_itch_load_more">Lataa lisää</string>
|
||||
<string name="stores_itch_platform_any">Mikä tahansa alusta</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobiiliweb</string>
|
||||
<string name="stores_itch_tag_add">Lisää tunniste</string>
|
||||
<string name="stores_itch_tag_title">Suodata tunnisteella</string>
|
||||
<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>
|
||||
|
||||
@@ -2039,6 +2039,10 @@
|
||||
<string name="stores_itch_price_free">Gratuits</string>
|
||||
<string name="stores_itch_price_sale">En promotion</string>
|
||||
<string name="stores_itch_load_more">Charger plus</string>
|
||||
<string name="stores_itch_platform_any">Toute plateforme</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web mobile</string>
|
||||
<string name="stores_itch_tag_add">Ajouter un tag</string>
|
||||
<string name="stores_itch_tag_title">Filtrer par tag</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">मुफ़्त</string>
|
||||
<string name="stores_itch_price_sale">सेल में</string>
|
||||
<string name="stores_itch_load_more">और लोड करें</string>
|
||||
<string name="stores_itch_platform_any">कोई भी प्लेटफ़ॉर्म</string>
|
||||
<string name="stores_itch_platform_mobile_web">मोबाइल वेब</string>
|
||||
<string name="stores_itch_tag_add">टैग जोड़ें</string>
|
||||
<string name="stores_itch_tag_title">टैग के अनुसार फ़िल्टर करें</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Ingyenes</string>
|
||||
<string name="stores_itch_price_sale">Akciós</string>
|
||||
<string name="stores_itch_load_more">Továbbiak betöltése</string>
|
||||
<string name="stores_itch_platform_any">Bármely platform</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobilweb</string>
|
||||
<string name="stores_itch_tag_add">Címke hozzáadása</string>
|
||||
<string name="stores_itch_tag_title">Szűrés címke szerint</string>
|
||||
<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>
|
||||
|
||||
@@ -1995,6 +1995,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">Diskon</string>
|
||||
<string name="stores_itch_load_more">Muat lebih banyak</string>
|
||||
<string name="stores_itch_platform_any">Platform apa saja</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web seluler</string>
|
||||
<string name="stores_itch_tag_add">Tambah tag</string>
|
||||
<string name="stores_itch_tag_title">Filter berdasarkan tag</string>
|
||||
<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>
|
||||
|
||||
@@ -2029,6 +2029,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">In offerta</string>
|
||||
<string name="stores_itch_load_more">Carica altri</string>
|
||||
<string name="stores_itch_platform_any">Qualsiasi piattaforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web mobile</string>
|
||||
<string name="stores_itch_tag_add">Aggiungi un tag</string>
|
||||
<string name="stores_itch_tag_title">Filtra per tag</string>
|
||||
<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>
|
||||
|
||||
@@ -1997,6 +1997,10 @@
|
||||
<string name="stores_itch_price_free">無料</string>
|
||||
<string name="stores_itch_price_sale">セール中</string>
|
||||
<string name="stores_itch_load_more">さらに読み込む</string>
|
||||
<string name="stores_itch_platform_any">すべてのプラットフォーム</string>
|
||||
<string name="stores_itch_platform_mobile_web">モバイルWeb</string>
|
||||
<string name="stores_itch_tag_add">タグを追加</string>
|
||||
<string name="stores_itch_tag_title">タグで絞り込む</string>
|
||||
<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>
|
||||
|
||||
@@ -1997,6 +1997,10 @@
|
||||
<string name="stores_itch_price_free">무료</string>
|
||||
<string name="stores_itch_price_sale">할인 중</string>
|
||||
<string name="stores_itch_load_more">더 불러오기</string>
|
||||
<string name="stores_itch_platform_any">모든 플랫폼</string>
|
||||
<string name="stores_itch_platform_mobile_web">모바일 웹</string>
|
||||
<string name="stores_itch_tag_add">태그 추가</string>
|
||||
<string name="stores_itch_tag_title">태그로 필터링</string>
|
||||
<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>
|
||||
|
||||
@@ -1995,6 +1995,10 @@
|
||||
<string name="stores_itch_price_free">Percuma</string>
|
||||
<string name="stores_itch_price_sale">Diskaun</string>
|
||||
<string name="stores_itch_load_more">Muat lagi</string>
|
||||
<string name="stores_itch_platform_any">Mana-mana platform</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web mudah alih</string>
|
||||
<string name="stores_itch_tag_add">Tambah tag</string>
|
||||
<string name="stores_itch_tag_title">Tapis mengikut tag</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">På salg</string>
|
||||
<string name="stores_itch_load_more">Last inn flere</string>
|
||||
<string name="stores_itch_platform_any">Alle plattformer</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web på mobil</string>
|
||||
<string name="stores_itch_tag_add">Legg til en tagg</string>
|
||||
<string name="stores_itch_tag_title">Filtrer etter tagg</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">In de aanbieding</string>
|
||||
<string name="stores_itch_load_more">Meer laden</string>
|
||||
<string name="stores_itch_platform_any">Elk platform</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobiel web</string>
|
||||
<string name="stores_itch_tag_add">Tag toevoegen</string>
|
||||
<string name="stores_itch_tag_title">Filteren op tag</string>
|
||||
<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>
|
||||
|
||||
@@ -2058,6 +2058,10 @@
|
||||
<string name="stores_itch_price_free">Za darmo</string>
|
||||
<string name="stores_itch_price_sale">Na wyprzedaży</string>
|
||||
<string name="stores_itch_load_more">Wczytaj więcej</string>
|
||||
<string name="stores_itch_platform_any">Dowolna platforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web mobilny</string>
|
||||
<string name="stores_itch_tag_add">Dodaj tag</string>
|
||||
<string name="stores_itch_tag_title">Filtruj według tagu</string>
|
||||
<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>
|
||||
|
||||
@@ -2029,6 +2029,10 @@
|
||||
<string name="stores_itch_price_free">Grátis</string>
|
||||
<string name="stores_itch_price_sale">Em promoção</string>
|
||||
<string name="stores_itch_load_more">Carregar mais</string>
|
||||
<string name="stores_itch_platform_any">Qualquer plataforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web móvel</string>
|
||||
<string name="stores_itch_tag_add">Adicionar uma etiqueta</string>
|
||||
<string name="stores_itch_tag_title">Filtrar por etiqueta</string>
|
||||
<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>
|
||||
|
||||
@@ -2029,6 +2029,10 @@
|
||||
<string name="stores_itch_price_free">Grátis</string>
|
||||
<string name="stores_itch_price_sale">Em promoção</string>
|
||||
<string name="stores_itch_load_more">Carregar mais</string>
|
||||
<string name="stores_itch_platform_any">Qualquer plataforma</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web mobile</string>
|
||||
<string name="stores_itch_tag_add">Adicionar uma tag</string>
|
||||
<string name="stores_itch_tag_title">Filtrar por tag</string>
|
||||
<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>
|
||||
|
||||
@@ -2037,6 +2037,10 @@
|
||||
<string name="stores_itch_price_free">Gratuite</string>
|
||||
<string name="stores_itch_price_sale">La reducere</string>
|
||||
<string name="stores_itch_load_more">Încarcă mai multe</string>
|
||||
<string name="stores_itch_platform_any">Orice platformă</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web mobil</string>
|
||||
<string name="stores_itch_tag_add">Adaugă o etichetă</string>
|
||||
<string name="stores_itch_tag_title">Filtrează după etichetă</string>
|
||||
<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>
|
||||
|
||||
@@ -2060,6 +2060,10 @@
|
||||
<string name="stores_itch_price_free">Бесплатные</string>
|
||||
<string name="stores_itch_price_sale">Со скидкой</string>
|
||||
<string name="stores_itch_load_more">Загрузить ещё</string>
|
||||
<string name="stores_itch_platform_any">Любая платформа</string>
|
||||
<string name="stores_itch_platform_mobile_web">Мобильный веб</string>
|
||||
<string name="stores_itch_tag_add">Добавить тег</string>
|
||||
<string name="stores_itch_tag_title">Фильтр по тегу</string>
|
||||
<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>
|
||||
|
||||
@@ -2016,6 +2016,10 @@
|
||||
<string name="stores_itch_price_free">Gratis</string>
|
||||
<string name="stores_itch_price_sale">På rea</string>
|
||||
<string name="stores_itch_load_more">Ladda fler</string>
|
||||
<string name="stores_itch_platform_any">Alla plattformar</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobilwebb</string>
|
||||
<string name="stores_itch_tag_add">Lägg till en tagg</string>
|
||||
<string name="stores_itch_tag_title">Filtrera efter tagg</string>
|
||||
<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>
|
||||
|
||||
@@ -1995,6 +1995,10 @@
|
||||
<string name="stores_itch_price_free">ฟรี</string>
|
||||
<string name="stores_itch_price_sale">ลดราคา</string>
|
||||
<string name="stores_itch_load_more">โหลดเพิ่มเติม</string>
|
||||
<string name="stores_itch_platform_any">ทุกแพลตฟอร์ม</string>
|
||||
<string name="stores_itch_platform_mobile_web">เว็บมือถือ</string>
|
||||
<string name="stores_itch_tag_add">เพิ่มแท็ก</string>
|
||||
<string name="stores_itch_tag_title">กรองตามแท็ก</string>
|
||||
<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>
|
||||
|
||||
@@ -2010,6 +2010,10 @@
|
||||
<string name="stores_itch_price_free">Ücretsiz</string>
|
||||
<string name="stores_itch_price_sale">İndirimde</string>
|
||||
<string name="stores_itch_load_more">Daha fazla yükle</string>
|
||||
<string name="stores_itch_platform_any">Herhangi bir platform</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobil web</string>
|
||||
<string name="stores_itch_tag_add">Etiket ekle</string>
|
||||
<string name="stores_itch_tag_title">Etikete göre filtrele</string>
|
||||
<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>
|
||||
|
||||
@@ -2058,6 +2058,10 @@
|
||||
<string name="stores_itch_price_free">Безкоштовні</string>
|
||||
<string name="stores_itch_price_sale">Зі знижкою</string>
|
||||
<string name="stores_itch_load_more">Завантажити ще</string>
|
||||
<string name="stores_itch_platform_any">Будь-яка платформа</string>
|
||||
<string name="stores_itch_platform_mobile_web">Мобільний веб</string>
|
||||
<string name="stores_itch_tag_add">Додати тег</string>
|
||||
<string name="stores_itch_tag_title">Фільтр за тегом</string>
|
||||
<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>
|
||||
|
||||
@@ -1995,6 +1995,10 @@
|
||||
<string name="stores_itch_price_free">Miễn phí</string>
|
||||
<string name="stores_itch_price_sale">Đang giảm giá</string>
|
||||
<string name="stores_itch_load_more">Tải thêm</string>
|
||||
<string name="stores_itch_platform_any">Mọi nền tảng</string>
|
||||
<string name="stores_itch_platform_mobile_web">Web di động</string>
|
||||
<string name="stores_itch_tag_add">Thêm thẻ</string>
|
||||
<string name="stores_itch_tag_title">Lọc theo thẻ</string>
|
||||
<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>
|
||||
|
||||
@@ -2074,6 +2074,10 @@
|
||||
<string name="stores_itch_price_free">免费</string>
|
||||
<string name="stores_itch_price_sale">特价</string>
|
||||
<string name="stores_itch_load_more">加载更多</string>
|
||||
<string name="stores_itch_platform_any">任意平台</string>
|
||||
<string name="stores_itch_platform_mobile_web">移动网页</string>
|
||||
<string name="stores_itch_tag_add">添加标签</string>
|
||||
<string name="stores_itch_tag_title">按标签筛选</string>
|
||||
<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>
|
||||
|
||||
@@ -1998,6 +1998,10 @@
|
||||
<string name="stores_itch_price_free">免費</string>
|
||||
<string name="stores_itch_price_sale">特價</string>
|
||||
<string name="stores_itch_load_more">載入更多</string>
|
||||
<string name="stores_itch_platform_any">任何平台</string>
|
||||
<string name="stores_itch_platform_mobile_web">行動網頁</string>
|
||||
<string name="stores_itch_tag_add">新增標籤</string>
|
||||
<string name="stores_itch_tag_title">按標籤篩選</string>
|
||||
<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>
|
||||
|
||||
@@ -1998,6 +1998,10 @@
|
||||
<string name="stores_itch_price_free">免費</string>
|
||||
<string name="stores_itch_price_sale">特價</string>
|
||||
<string name="stores_itch_load_more">載入更多</string>
|
||||
<string name="stores_itch_platform_any">任何平台</string>
|
||||
<string name="stores_itch_platform_mobile_web">行動網頁</string>
|
||||
<string name="stores_itch_tag_add">新增標籤</string>
|
||||
<string name="stores_itch_tag_title">依標籤篩選</string>
|
||||
<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>
|
||||
|
||||
@@ -2093,6 +2093,16 @@
|
||||
<string name="stores_itch_price_free">Free</string>
|
||||
<string name="stores_itch_price_sale">On sale</string>
|
||||
<string name="stores_itch_load_more">Load more</string>
|
||||
<string name="stores_itch_platform_any">Any platform</string>
|
||||
<string name="stores_itch_platform_mobile_web">Mobile web</string>
|
||||
<string name="stores_itch_tag_add">Add a tag</string>
|
||||
<string name="stores_itch_tag_title">Filter by tag</string>
|
||||
<string name="stores_itch_platform_windows" translatable="false">Windows</string>
|
||||
<string name="stores_itch_platform_macos" translatable="false">macOS</string>
|
||||
<string name="stores_itch_platform_linux" translatable="false">Linux</string>
|
||||
<string name="stores_itch_platform_android" translatable="false">Android</string>
|
||||
<string name="stores_itch_platform_ios" translatable="false">iOS</string>
|
||||
<string name="stores_itch_platform_web" translatable="false">Web</string>
|
||||
<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>
|
||||
|
||||
@@ -52,6 +52,25 @@ class ItchBrowseTest {
|
||||
assertEquals("pixel-art", ItchBrowse.tagSlug(" Pixel Art "))
|
||||
}
|
||||
|
||||
@Test fun aSortAPricePlatformAndTagCombineInThatOrder() {
|
||||
assertEquals(
|
||||
"https://itch.io/games/top-rated/free/platform-windows/tag-pixel-art.xml",
|
||||
ItchBrowse.url(BrowseQuery(ItchBrowse.SORT_TOP_RATED, ItchBrowse.PRICE_FREE, setOf("windows"), listOf("pixel-art")), 1),
|
||||
)
|
||||
}
|
||||
|
||||
@Test fun severalPlatformsAndTagsAreAllInTheAddress() {
|
||||
assertEquals(
|
||||
"https://itch.io/games/platform-windows/platform-linux/tag-pixel-art/tag-2d",
|
||||
path(platforms = setOf("linux", "windows"), tags = listOf("pixel-art", "2d")),
|
||||
)
|
||||
}
|
||||
|
||||
@Test fun aTypedTagBecomesItsSlug() {
|
||||
assertEquals("visual-novel", ItchBrowse.tagSlug("Visual Novel!"))
|
||||
assertEquals("", ItchBrowse.tagSlug(" !! "))
|
||||
}
|
||||
|
||||
@Test fun theSamePlatformsInAnyOrderGiveTheSameAddress() {
|
||||
assertEquals(path(platforms = setOf("web", "linux")), path(platforms = setOf("linux", "web")))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user