From 975b7f56e324c942c1c4d45ca607dba710b6497a Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Thu, 19 Nov 2026 22:14:26 +0200 Subject: [PATCH 1/2] Discover is now called Catalog The page, its tab, the tray menu and every text that names it, in all languages. Its internal id stays discover, so saved settings keep working. --- src-tauri/src/tray.rs | 2 +- ui/app.js | 48 +++++++++++++++++------------------ ui/beta.js | 2 +- ui/firstrun.js | 2 +- ui/i18n/ar.json | 58 +++++++++++++++++++++---------------------- ui/i18n/de.json | 58 +++++++++++++++++++++---------------------- ui/i18n/en-GB.json | 31 ++++++++++++++++++++++- ui/i18n/es-419.json | 58 +++++++++++++++++++++---------------------- ui/i18n/es.json | 58 +++++++++++++++++++++---------------------- ui/i18n/fr-CA.json | 24 +++++++++--------- ui/i18n/fr.json | 58 +++++++++++++++++++++---------------------- ui/i18n/id.json | 58 +++++++++++++++++++++---------------------- ui/i18n/it.json | 58 +++++++++++++++++++++---------------------- ui/i18n/ja.json | 58 +++++++++++++++++++++---------------------- ui/i18n/ko.json | 58 +++++++++++++++++++++---------------------- ui/i18n/nl.json | 58 +++++++++++++++++++++---------------------- ui/i18n/pl.json | 58 +++++++++++++++++++++---------------------- ui/i18n/pt-BR.json | 58 +++++++++++++++++++++---------------------- ui/i18n/pt.json | 58 +++++++++++++++++++++---------------------- ui/i18n/ru.json | 58 +++++++++++++++++++++---------------------- ui/i18n/th.json | 58 +++++++++++++++++++++---------------------- ui/i18n/tr.json | 58 +++++++++++++++++++++---------------------- ui/i18n/uk.json | 58 +++++++++++++++++++++---------------------- ui/i18n/vi.json | 58 +++++++++++++++++++++---------------------- ui/i18n/zh-Hans.json | 58 +++++++++++++++++++++---------------------- ui/i18n/zh-Hant.json | 58 +++++++++++++++++++++---------------------- ui/index.html | 2 +- ui/tv.js | 10 ++++---- 28 files changed, 655 insertions(+), 626 deletions(-) diff --git a/src-tauri/src/tray.rs b/src-tauri/src/tray.rs index c633351c..b3653bdb 100644 --- a/src-tauri/src/tray.rs +++ b/src-tauri/src/tray.rs @@ -53,7 +53,7 @@ fn menu(app: &AppHandle) -> tauri::Result> { } } m.append(&PredefinedMenuItem::separator(app)?)?; - for (id, key) in [("go:library", "Library"), ("go:discover", "Discover"), ("go:shots", "Screenshots"), ("go:settings", "Settings")] { + for (id, key) in [("go:library", "Library"), ("go:discover", "Catalog"), ("go:shots", "Screenshots"), ("go:settings", "Settings")] { m.append(&MenuItem::with_id(app, id, word(key), true, None::<&str>)?)?; } m.append(&MenuItem::with_id(app, "bp", word("Big Picture mode"), true, None::<&str>)?)?; diff --git a/ui/app.js b/ui/app.js index b30b0dc2..ecc12913 100644 --- a/ui/app.js +++ b/ui/app.js @@ -597,7 +597,7 @@ const isHidden = (id) => hiddenSet().has(id); async function hideGame(id) { const g = verGroup(byId(id)), ids = g ? g.list.map((v) => v.id) : [id]; await saveUi({ hidden: [...new Set([...hiddenSet(), ...ids])] }, true); - toast(t('Hidden from Discover and Home. Settings → Discover shows it again.')); + toast(t('Hidden from the Catalog and Home. Settings → Catalog shows it again.')); render(true); } async function unhideGame(id) { @@ -611,7 +611,7 @@ function hiddenModal() { const draw = () => { const seen = new Set(), list = []; for (const id of hiddenSet()) { const a = byId(id); if (!a) continue; const g = verGroup(a), k = g ? 't:' + g.id : a.id; if (seen.has(k)) continue; seen.add(k); list.push(g ? leadOf(g) : a); } - return `

${esc(t('Hidden Games'))}

${esc(t('These don\'t show in Discover or on Home. Ones in your Library stay there.'))}

+ return `

${esc(t('Hidden Games'))}

${esc(t('These don\'t show in the Catalog or on Home. Ones in your Library stay there.'))}

${list.length ? `
${list.map((a) => `
${esc(a.game || a.name)}${esc(originName(a.origin))}
`).join('')}
` : `

${esc(t('Nothing is hidden.'))}

`}
${list.length > 1 ? `` : ''}
`; }; @@ -1497,7 +1497,7 @@ function offlineNote() { function pageHome() { const apps = visible(); - if (!apps.length) return S.cat ? `
${offlineNote()}

${esc(t('Nothing to discover right now'))}

` : `
${esc(t('Loading…'))}
`; + if (!apps.length) return S.cat ? `
${offlineNote()}

${esc(t('Nothing in the Catalog right now'))}

` : `
${esc(t('Loading…'))}
`; const mine = apps.filter(forOS); const pool = (mine.length ? mine : apps).filter((a) => !a.soon); const feats = turnkeyFirst(bannerApps() || oneEach(uniq([...pool.filter((a) => a.featured && (a.hero || a.cover)), ...pool.filter((a) => a.hero && notPC(a)).sort(byDl), ...pool.filter(notPC).sort(byDl)].map((a) => a.id)).map(byId)).slice(0, 5)); @@ -1593,7 +1593,7 @@ function foundSection(found) { // would otherwise read as everything the player owns. const notYet = t('None of them are in your Library yet.'); const intro = found.length === 1 ? one : many + ' ' + notYet; - return `

${esc(t('Found in your folders'))}

${esc(intro)}${more ? ' ' + esc(tn(more, '1 more in Discover.', '{n} more in Discover.')) : ''}

${seeAllBtn('found')}
+ return `

${esc(t('Found in your folders'))}

${esc(intro)}${more ? ' ' + esc(tn(more, '1 more in the Catalog.', '{n} more in the Catalog.')) : ''}

${seeAllBtn('found')}
${list.map((a) => `
${S.jobs[a.id] ? progress(a.id) : ``}
`).join('')}
`; @@ -1786,7 +1786,7 @@ function pageDiscover() { const genres = Object.keys(GENRES).filter((k) => apps.some((a) => a.genre === k)); const q = S.q.trim(); return `
${offlineNote()} -

${esc(q ? t('Search') : f.tag ? tf('All recomps with {tag}', { tag: f.tag }) : f.genre ? t(GENRES[f.genre]) : t('Discover'))}

${esc(t('Every recomp comes straight from its developer\'s GitHub. You bring your own copy of the game.'))}

+

${esc(q ? t('Search') : f.tag ? tf('All recomps with {tag}', { tag: f.tag }) : f.genre ? t(GENRES[f.genre]) : t('Catalog'))}

${esc(t('Every recomp comes straight from its developer\'s GitHub. You bring your own copy of the game.'))}

${notesBars()}
@@ -2010,7 +2010,7 @@ function pageLibrary() { if (!total) { return `

${esc(t('Library'))}

${esc(t('Your recomps, kept up to date from each developer\'s own GitHub.'))}

-

${esc(t('Nothing installed yet'))}

${esc(t('Pick a recomp in Discover and install it. It shows up here, ready to play.'))}

${devOn() ? `` : ''}
`; +

${esc(t('Nothing installed yet'))}

${esc(t('Pick a recomp in the Catalog and install it. It shows up here, ready to play.'))}

${devOn() ? `` : ''}
`; } const n = Object.keys(S.updates).filter((id) => S.library[id]).length; const setup = libRecs().filter(needsCopySetup).length; @@ -2068,7 +2068,7 @@ function pageGame(id) { wantCounts(); let a = byId(id); if (!a && S.library[id]) a = libApp(S.library[id]); - if (!a) return S.cat ? `

${esc(t('This recomp isn\'t listed anymore'))}

` : `
${esc(t('Loading…'))}
`; + if (!a) return S.cat ? `

${esc(t('This recomp isn\'t listed anymore'))}

` : `
${esc(t('Loading…'))}
`; const inst = S.library[id]; if (S.mods[id] === undefined) loadMods(id); if (inst && S.setup[id] === undefined) loadSetup(id); @@ -4162,12 +4162,12 @@ function pageSettings() { if (!S.ids && !S.idsAsked) { S.idsAsked = true; invoke('data_ids').then((ids) => { S.ids = ids; if (S.view === 'settings') render(true); }).catch(() => {}); } body = group(t('Language'), row(t('Language'), t('The launcher and its quick menu over your games.'), ``) + row(t('Clock'), t('How times show in the launcher, Big Picture mode and the quick menu.'), clockSelect(ui.clock))) - + group(t('Discover'), row(t('Refresh Discover'), t('Get the newest list of recomps, their releases and their art now, instead of waiting for the next check.'), ``) - + row(t('Hide AI-assisted recomps'), t('Recomps whose developers used AI tools for code, art, writing or voice won\'t show in Discover.'), sw('hide_ai', st.hide_ai, t('Hide AI-assisted recomps'))) + + group(t('Catalog'), row(t('Refresh Catalog'), t('Get the newest list of recomps, their releases and their art now, instead of waiting for the next check.'), ``) + + row(t('Hide AI-assisted recomps'), t('Recomps whose developers used AI tools for code, art, writing or voice won\'t show in the Catalog.'), sw('hide_ai', st.hide_ai, t('Hide AI-assisted recomps'))) + (igOn() ? row(t('Show where to buy the original game'), t('A small card on some game pages with the price of the original game at a partner store. Buying through it supports the launcher.'), sw('hide_buy', !ui.hide_buy, t('Show where to buy the original game'), 'ui-toggle')) : '') + row(t('Show the AI-assisted tag'), t('The tag on game pages. What the developer used AI for is always in the game\'s Overview.'), sw('show_ai_tag', ui.show_ai_tag, t('Show the AI-assisted tag'), 'ui-toggle')) - + row(t('Hidden games'), (ui.hidden || []).length ? t('Games you hid from Discover and Home. Right-click a game to hide it.') : t('Right-click a game in Discover and pick Hide from Discover to keep it out of the way.'), ``)) - + (S.os === 'windows' ? group(t('Portable'), portableRow(row)) : S.os === 'linux' ? group(t('Windows recomps'), row(t('Play Windows recomps with Proton'), t('Recomps that only have a Windows version install that one and play through Proton. Steam\'s Proton, GE-Proton, umu-launcher and Wine are found on their own.') + ' ' + t('With this off, those recomps are left out of Discover, search and game pages.'), sw('proton', st.proton, t('Play Windows recomps with Proton'))) + geRow(row)) : '') + + row(t('Hidden games'), (ui.hidden || []).length ? t('Games you hid from the Catalog and Home. Right-click a game to hide it.') : t('Right-click a game in the Catalog and pick Hide from Catalog to keep it out of the way.'), ``)) + + (S.os === 'windows' ? group(t('Portable'), portableRow(row)) : S.os === 'linux' ? group(t('Windows recomps'), row(t('Play Windows recomps with Proton'), t('Recomps that only have a Windows version install that one and play through Proton. Steam\'s Proton, GE-Proton, umu-launcher and Wine are found on their own.') + ' ' + t('With this off, those recomps are left out of the Catalog, search and game pages.'), sw('proton', st.proton, t('Play Windows recomps with Proton'))) + geRow(row)) : '') + group(t('Notifications and sharing'), row(t('Notifications'), S.os === 'windows' ? t('A Windows notification when a new recomp comes out for a game you own.') : t('A notification when a new recomp comes out for a game you own.'), sw('notify', st.notify, t('Notifications'))) + row(t('Discord status'), t('Shows the game you\'re playing on your Discord profile, with its cover and play time.'), sw('discord', st.discord !== false, t('Discord status'))) + row(t('Share usage and diagnostics'), t('Your PC\'s parts, which games you play and for how long, and what went wrong when one crashes or won\'t install. It helps fix problems faster. No names, no files.'), `${esc(t('What\'s sent'))}${sw('share_usage', st.data_asked && st.share_usage, t('Share usage and diagnostics'))}`) @@ -4226,11 +4226,11 @@ function pageSettings() { case 'look': body = group(t('Appearance'), `
${esc(t('Theme'))}${esc(t('Dark, black for OLED screens, or light.'))}
${[['dark', t('Dark')], ['oled', t('OLED')], ['light', tc('Light|theme')]].map(([k, n]) => ``).join('')}
` + `
${esc(t('Text Size'))}${esc(t('Bigger or smaller text, buttons and covers. Ctrl with + or - works too.'))}
${UI_SCALES.map((k) => ``).join('')}
` - + `
${esc(t('Opens On'))}${esc(t('The page you see when the launcher opens.'))}
${[['', t('Home')], ['discover', t('Discover')], ['library', t('Library')]].map(([k, n]) => ``).join('')}
` + + `
${esc(t('Opens On'))}${esc(t('The page you see when the launcher opens.'))}
${[['', t('Home')], ['discover', t('Catalog')], ['library', t('Library')]].map(([k, n]) => ``).join('')}
` + row(t('Compact sidebar'), t('Only the icons and your pinned games\' covers. The button at the bottom of the sidebar does the same.'), sw('mini', ui.mini, t('Compact sidebar'), 'ui-toggle')) + row(t('Cover Size Slider'), t('The slider at the bottom right of the Library, for the size of its covers and to switch to wide tiles.'), sw('hide_tile_ctl', !ui.hide_tile_ctl, t('Cover Size Slider'), 'ui-toggle')) + row(t('Covers Only'), t('Hide the names under game covers in the Library and on Home.'), sw('hide_names', ui.hide_names, t('Covers Only'), 'ui-toggle')) - + row(t('Show Versions Under Names'), t('The newest version of each recomp in Discover, and the version you have installed in the Library.'), sw('show_versions', ui.show_versions, t('Show Versions Under Names'), 'ui-toggle')) + + row(t('Show Versions Under Names'), t('The newest version of each recomp in the Catalog, and the version you have installed in the Library.'), sw('show_versions', ui.show_versions, t('Show Versions Under Names'), 'ui-toggle')) + row(t('Console Labels on Covers'), t('A strip across the top of each cover with its console, like the band on a real game box.'), sw('cover_labels', ui.cover_labels, t('Console Labels on Covers'), 'ui-toggle')) + row(t('Show Game Names'), t('Name every recomp after its game, like Tears of the Kingdom instead of TotK Recomp. Names you gave games yourself stay.'), sw('game_names', ui.game_names, t('Show Game Names'), 'ui-toggle')) + row(t('Show Game Media'), t('Every version of a game shows the same cover, background, logo and icon: the recommended version\'s. The versions list keeps each one\'s own icon, and pictures you picked yourself stay.'), sw('game_media', ui.game_media, t('Show Game Media'), 'ui-toggle')) @@ -4747,7 +4747,7 @@ function updateDiscover() { const ai = $('.dctl [data-k="hide_ai"]'); if (ai) ai.setAttribute('aria-checked', String(!!S.settings.hide_ai)); const h = $('.dhead h1'); - if (h) h.textContent = S.q.trim() ? t('Search') : f.genre ? t(GENRES[f.genre]) : t('Discover'); + if (h) h.textContent = S.q.trim() ? t('Search') : f.genre ? t(GENRES[f.genre]) : t('Catalog'); const vals = { origin: f.origin || '', 'genre-sel': f.genre || '', 'show-sel': f.show || '' }; for (const sl of $$('#main .dctl select[data-act]')) if (sl.dataset.act in vals && sl.value !== vals[sl.dataset.act]) sl.value = vals[sl.dataset.act]; if (window.syncDrops) window.syncDrops(); @@ -4936,7 +4936,7 @@ T.event.listen('mine-merged', async (e) => { const list = (e && e.payload) || []; try { await refreshState(); } catch (err) { /* it shows on the next look */ } for (const m of list) { - toast(tf('{name} is on Discover now. Your copy moved over to it.', { name: m.name || m.to })); + toast(tf('{name} is in the Catalog now. Your copy moved over to it.', { name: m.name || m.to })); if (S.arg === m.from) S.arg = m.to; if (window.tvRemap) window.tvRemap(m.from, m.to); } @@ -5783,7 +5783,7 @@ function gameMenu(id) { { act: 'pin', id, label: pinned ? t('Unpin from the sidebar') : t('Pin to the sidebar'), icon: 'pin' }, ...(g ? [{ act: 'fav', id, label: favs().includes(id) ? t('Remove from Favorites') : t('Add to Favorites'), icon: 'star' }] : []), ...(!g && isSaved(id) ? [{ act: 'unsave', id, label: t('Remove from Library'), icon: 'bin' }] : []), - ...(x && !x.custom ? [isHidden(id) ? { act: 'unhide', id, label: t('Show in Discover'), icon: 'hide' } : { act: 'hide', id, label: t('Hide from Discover'), icon: 'hide' }] : []), + ...(x && !x.custom ? [isHidden(id) ? { act: 'unhide', id, label: t('Show in Catalog'), icon: 'hide' } : { act: 'hide', id, label: t('Hide from Catalog'), icon: 'hide' }] : []), // Its own pictures and words before it's installed too (they stay when it is). ...(!g && x ? [{ act: 'customize', id, label: t('Customize…'), icon: 'shot' }] : []), ...(!g ? easySkipItem(id) : []), @@ -5848,7 +5848,7 @@ function confirmUninstall(id) { const s = document.createElement('div'); s.className = 'scrim'; s.innerHTML = `