Files
TREK/shared/src/i18n/cs/storage.ts
T
Maurice bee500880e fix(i18n): every language says one file and five files its own way
Finishes the plural work the previous wip commit started. t() picks a
count string's form by the language's own Intl.PluralRules, and every
locale now spells out the forms its language reaches with whole
numbers, about 160 count strings in all: one, few and many in Russian,
Ukrainian and Polish, one and few in Czech and Slovak, five forms in
Arabic, one in the others, none in Japanese, Korean, Chinese, Thai,
Vietnamese and Indonesian. Each language was translated and then
reviewed on its own. English no longer reads "1 files", "1 updates
available" or "photo(s)".

Count labels shown next to a number now take that number too: the
atlas and admin statistics, the trip cards, journey and shared trip
pills, packing templates, receipts, storage usage, the Studio export
note. A heading that shared its key with a counted label keeps a key of
its own (the boarding pass heading, the Bookings tab), so languages that
put a noun after a number in the singular keep a plural heading. The
plugin hosts chip passed its count through .replace() after t() and
never got a form; three toasts sent the count as text. Mail and push
texts for shared photos and suppressed storage failures pick their form
in code through pluralForm.

A whole number sent as text counts too, which is how in-app
notification params arrive, and the plural rule follows the language of
the strings on screen while another one still loads.

The parity check knows which forms each language needs and refuses
missing and impossible ones. It also reads keys that contain a colon
now: it skipped them, which hid 58 missing plugin permission texts in
Catalan and 35 in Vietnamese, both translated. The client parity test
covers every language of the registry instead of a hand-kept list of 19,
and the placeholder spec lets a form spell its number out only where
its category is that one number. Brazilian Portuguese error screens
were in Breton, and an Arabic dashboard label held Hebrew text.
2026-10-08 00:01:59 +00:00

140 lines
8.7 KiB
TypeScript

import type { TranslationStrings } from '../types';
const storage: TranslationStrings = {
'storage.field.root': 'Kořenový adresář',
'storage.help.root': 'Absolutní cesta na serveru, kam tento backend ukládá své objekty.',
'storage.field.endpoint': 'URL koncového bodu',
'storage.help.endpoint':
'Základní URL služby kompatibilní s S3, např. https://s3.example.com nebo http://127.0.0.1:9000.',
'storage.field.bucket': 'Bucket',
'storage.field.accessKeyId': 'ID přístupového klíče',
'storage.field.secretAccessKey': 'Tajný přístupový klíč',
'storage.field.region': 'Region',
'storage.help.region': 'Ponechte výchozí hodnotu, pokud váš poskytovatel nevyžaduje konkrétní region.',
'storage.field.keyPrefix': 'Prefix klíče',
'storage.help.keyPrefix': 'Volitelný prefix přidaný ke každému klíči objektu, např. trek/prod.',
'storage.field.retries': 'Počet pokusů',
'storage.field.timeoutMs': 'Časový limit (ms)',
'storage.field.primary': 'Primární backend',
'storage.field.replicas': 'Repliky',
'storage.title': 'Úložiště',
'storage.description': 'Kam TREK ukládá nahrané soubory, fotky a zálohy. Dokud neuložíte, nic se nezmění.',
'storage.loading': 'Načítání…',
'storage.saved': 'Konfigurace úložiště uložena',
'storage.save': 'Uložit změny',
'storage.unsaved': 'Neuložené změny',
'storage.saveConflict':
'Konfigurace úložiště se od načtení změnila, takže vaše změny nebyly uloženy. Zahoďte je a načtěte uložené nastavení znovu, abyste mohli začít od začátku.',
'storage.discardAndReload': 'Zahodit mé změny a načíst znovu',
'storage.configError.banner': 'Nepodařilo se načíst uložené nastavení úložiště — uložením je nahradíte: {error}',
'storage.backends.title': 'Backendy',
'storage.backends.add': 'Přidat backend',
'storage.backends.usedBy': 'Používá: {categories}',
'storage.backends.unused': 'Nepřiřazeno k žádné kategorii',
'storage.backends.envReadOnly': 'Definováno proměnnou prostředí — pouze pro čtení',
'storage.source.built-in': 'Vestavěné',
'storage.source.env': 'Prostředí',
'storage.source.settings': 'Nastavení',
'storage.type.local': 'Místní',
'storage.type.s3': 'S3',
'storage.type.mirror': 'Zrcadlo',
'storage.actions.test': 'Test',
'storage.actions.edit': 'Upravit',
'storage.actions.remove': 'Odebrat',
'storage.test.running': 'Testuje se…',
'storage.test.ok': 'Připojení v pořádku',
'storage.test.failed': 'Test selhal',
'storage.remove.title': 'Odebrat backend',
'storage.remove.body': 'Odebrat {name} z konfigurace? Server odmítne uložení, pokud na něm ještě něco závisí.',
'storage.remove.stillAssigned': 'Stále přiřazeno k: {categories}',
'storage.form.addTitle': 'Přidat backend',
'storage.form.editTitle': 'Upravit backend',
'storage.form.name': 'Název',
'storage.form.type': 'Typ',
'storage.form.apply': 'Použít',
'storage.form.cancel': 'Zrušit',
'storage.form.duplicateName': 'Backend s názvem {name} již existuje',
'storage.categories.title': 'Kategorie',
'storage.categories.default': 'výchozí',
'storage.categories.reassignWarning':
'Existující objekty se nepřesouvají: nové objekty jdou do nově přiřazeného backendu, staré zůstávají tam, kde jsou.',
'storage.category.files': 'Dokumenty cesty',
'storage.category.journey': 'Fotky z cestovního deníku',
'storage.category.covers': 'Titulní obrázky',
'storage.category.avatars': 'Profilové fotky',
'storage.category.places': 'Obrázky míst',
'storage.category.photos-google': 'Mezipaměť fotek Google',
'storage.category.photos-trek': 'Mezipaměť fotek TREK',
'storage.category.backups': 'Zálohy',
// What each category stores — rendered under the label in the category map.
'storage.categoryDesc.files':
'Soubory nahrané k cestám — jízdenky, PDF, potvrzení rezervací a soubory sdílené v chatu cesty.',
'storage.categoryDesc.journey': 'Fotky a náhledy připojené k záznamům cestovního deníku.',
'storage.categoryDesc.covers': 'Titulní obrázky cest a sbírek, včetně obrázků načtených z Unsplash.',
'storage.categoryDesc.avatars': 'Profilové fotky uživatelských účtů.',
'storage.categoryDesc.places': 'Obrázky připojené k místům a místům ve sbírkách — nahrané nebo importované.',
'storage.categoryDesc.photos-google':
'Mezipaměťové kopie fotek z Google Places — lze znovu načíst, jejich ztráta je bezpečná.',
'storage.categoryDesc.photos-trek':
'Fotky uložené v mezipaměti ze služby fotek TREK používané funkcí Fotky (Memories) — lze znovu načíst, jejich ztráta je bezpečná.',
'storage.categoryDesc.backups': 'Archivy záloh serveru vytvořené panelem Záloha nebo plánovačem.',
'storage.health.title': 'Stav',
'storage.health.allClear': 'Nebyly zaznamenány žádné chyby replik.',
'storage.health.seedFile':
'Je přítomen seed soubor storage-config.json, ale je ignorován — konfigurační řádky již existují. Spravujte úložiště zde.',
'storage.health.failureLine': '{op} u {key} na {backend} selhalo: {error}',
// Replicas-on-primary mirror UX (2026-08-20 spec)
'storage.mirror.targets': 'Cíle zrcadla',
'storage.mirror.targetsHelp': 'Každý zápis do tohoto backendu se také zkopíruje do každého vybraného cíle.',
'storage.mirror.latencyNote':
'Repliky se zapisují jedna po druhé během každého nahrávání — pomalý nebo nedostupný cíl zpomalí každé nahrávání každé kategorie na tomto backendu.',
'storage.mirror.mirroredTo': 'Zrcadleno do: {targets}',
'storage.mirror.replicaOf': 'Replika: {primaries}',
'storage.mirror.cacheWarning':
'Nedoporučeno: tato kategorie obsahuje znovu získatelný obsah — jeho replikace je obvykle zbytečná.',
'storage.mirror.degenerate.duplicate-mirror':
'Druhé zrcadlo obaluje {primary} — panel spravuje pouze první; odeberte toto pro správu zrcadlení z {primary}.',
'storage.mirror.degenerate.env-primary': 'Obaluje backend definovaný proměnnou prostředí — zde needitovatelné.',
'storage.mirror.degenerate.missing-primary': 'Odkazuje na backend, který již neexistuje.',
'storage.remove.usedAsReplicaBy': 'Používáno jako replika: {primaries}',
// Backfill + usage (backfill/stats/notifications spec)
'storage.sync.now': 'Synchronizovat nyní',
'storage.sync.running': 'Synchronizace… {done}/{total}',
'storage.sync.counts': '{copied} zkopírováno · {skipped} přeskočeno · {failed} selhalo',
'storage.sync.cancel': 'Zrušit synchronizaci',
'storage.sync.done': 'Synchronizace dokončena: {copied} zkopírováno, {deleted} odstraněno, {failed} selhalo',
'storage.sync.cancelled': 'Synchronizace zrušena',
'storage.sync.error': 'Synchronizace selhala: {error}',
'storage.sync.prompt': 'Existující objekty ještě nejsou replikovány — synchronizovat nyní?',
'storage.sync.dismiss': 'Zavřít',
'storage.usage.line': '{count} objektů · {size}',
'storage.usage.line.one': '{count} objekt · {size}',
'storage.usage.line.few': '{count} objekty · {size}',
'storage.usage.computed': 'Využití vypočteno {age}',
'storage.usage.never': 'Využití zatím nebylo vypočteno',
'storage.usage.refresh': 'Obnovit',
'storage.usage.compute': 'Vypočítat nyní',
'storage.usage.legacyNote': 'zahrnuje starší fotoknihovnu',
// Category migration (copy → flip → delta sweep)
'storage.migrate.promptTitle': 'Přesunout stávající objekty do nového backendu?',
'storage.migrate.promptLine': '{category}: {objects} objektů ({size}) z {from} do {to}',
'storage.migrate.promptLineUnknown': '{category}: neznámá velikost (využití ještě nebylo vypočteno) z {from} do {to}',
'storage.migrate.move': 'Přesunout stávající objekty',
'storage.migrate.routeOnly': 'Pouze směrovat nové zápisy',
'storage.migrate.running': 'Přesouvání {category}… {done}/{total}',
'storage.migrate.done': 'Přesun dokončen: {copied} zkopírováno, {skipped} přeskočeno',
'storage.migrate.doneFailures': '{failed} se nezdařilo — tyto objekty nebyly zkopírovány do nového backendu',
'storage.migrate.failed': 'Přesun selhal: {error} — kategorie nebyla přepnuta',
'storage.migrate.cancelled': 'Přesun zrušen — nic nebylo přepnuto',
'storage.migrate.reclaimable': '{objects} objektů ({size}) zůstává na {from} — uvolněte ručně',
'storage.migrate.cancel': 'Zrušit přesun',
'storage.migrate.promptCancel': 'Zrušit',
'storage.migrate.queued': 'Ve frontě: {categories}',
'storage.migrate.queueDropped': 'Nepodařilo se spustit další přesun — zbývající fronta byla vymazána: {categories}',
};
export default storage;