mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 22:27:32 +00:00
bdaddc44ac
The plural parity check only knows the groups en already declares, so a
"{count} ..." string added as a plain key kept one form in every
language: Polish read "Usuń 1 spakowanych", Czech "Odstranit 1
hotových" and Greek "1 λεπτά". 44 such en keys become plural groups with their
forms in all 27 locales: the collection, packing, day plan and offline
banner counts, the relative times, the audit log, the tour and transit
minutes, the share and photo hints. Labels like "Notes: {count}" get
their forms too, so a language can still inflect them later. The
dashboard's hand-rolled activeOne/activeMany pair, unused, becomes one
group, dashboard.subtitle.active.
i18n-parity now refuses an en string with {count} or {n} that is no
plural group. NOT_PLURAL lists the eleven where the number is never a
quantity (a day number, a step, a waypoint, the equator multiplier),
each with its reason, and an entry that stops matching fails as well.
Callers that worked around the engine:
- Copy to trip switched between two keys on placeIds.length > 1;
collections.copyN now carries the one-place wording as its `one` form,
where the language's `one` is the number 1 alone.
- The plugin dependency toasts said "addon(s)" and "plugin(s)"; they are
groups now and the panels pass the list length as the count.
- The dismissed suggestions count went in as a string and the comp days
as a formatted string, so no form was picked; both pass numbers.
86 lines
3.5 KiB
TypeScript
86 lines
3.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Uložit',
|
|
'common.showMore': 'Zobrazit více',
|
|
'common.showLess': 'Zobrazit méně',
|
|
'common.cancel': 'Zrušit',
|
|
'common.clear': 'Vymazat',
|
|
'common.delete': 'Smazat',
|
|
'common.remove': 'Odstranit',
|
|
'common.preview': 'Náhled',
|
|
'common.edit': 'Upravit',
|
|
'common.add': 'Přidat',
|
|
'common.loading': 'Načítání...',
|
|
'common.import': 'Importovat',
|
|
'common.select': 'Vybrat',
|
|
'common.selectAll': 'Vybrat vše',
|
|
'common.deselectAll': 'Zrušit výběr všeho',
|
|
'common.error': 'Chyba',
|
|
'common.success': 'Úspěch',
|
|
'common.unknownError': 'Neznámá chyba',
|
|
'common.tooManyAttempts': 'Příliš mnoho pokusů. Zkuste to prosím znovu.',
|
|
'common.back': 'Zpět',
|
|
'common.all': 'Vše',
|
|
'common.close': 'Zavřít',
|
|
'common.open': 'Otevřít',
|
|
'common.upload': 'Nahrát',
|
|
'common.search': 'Hledat',
|
|
'common.confirm': 'Potvrdit',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Ano',
|
|
'common.no': 'Ne',
|
|
'common.or': 'nebo',
|
|
'common.none': 'Žádné',
|
|
'common.date': 'Datum',
|
|
'common.rename': 'Přejmenovat',
|
|
'common.discardChanges': 'Zahodit změny',
|
|
'common.discard': 'Zahodit',
|
|
'common.unsavedTitle': 'Zahodit změny?',
|
|
'common.unsavedMessage': 'To, co jste zde zadali, ještě není uložené.',
|
|
'common.keepEditing': 'Pokračovat v úpravách',
|
|
'common.name': 'Jméno',
|
|
'common.email': 'E-mail',
|
|
'common.password': 'Heslo',
|
|
'common.saving': 'Ukládání...',
|
|
'common.expand': 'Rozbalit',
|
|
'common.collapse': 'Sbalit',
|
|
'common.saved': 'Uloženo',
|
|
'common.update': 'Aktualizovat',
|
|
'common.change': 'Změnit',
|
|
'common.uploading': 'Nahrávání…',
|
|
'common.backToPlanning': 'Zpět k plánování',
|
|
'common.reset': 'Resetovat',
|
|
'common.copy': 'Kopírovat',
|
|
'common.copied': 'Zkopírováno',
|
|
'common.justNow': 'právě teď',
|
|
'common.hoursAgo': 'před {count} h',
|
|
'common.hoursAgo.one': 'před {count} h',
|
|
'common.hoursAgo.few': 'před {count} h',
|
|
'common.daysAgo': 'před {count} d',
|
|
'common.daysAgo.one': 'před {count} d',
|
|
'common.daysAgo.few': 'před {count} d',
|
|
'common.datepicker.prevMonth': 'Previous month', // en-fallback
|
|
'common.datepicker.nextMonth': 'Next month', // en-fallback
|
|
'common.datepicker.prevYear': 'Previous year', // en-fallback
|
|
'common.datepicker.nextYear': 'Next year', // en-fallback
|
|
'common.datepicker.prevYears': 'Previous years', // en-fallback
|
|
'common.datepicker.nextYears': 'Next years', // en-fallback
|
|
'common.datepicker.selectMonth': 'Select month', // en-fallback
|
|
'common.datepicker.selectYear': 'Select year', // en-fallback
|
|
'common.datepicker.enterManually': 'Enter date manually', // en-fallback
|
|
'common.datepicker.typeDate': 'Type a date', // en-fallback
|
|
'common.datepicker.dialog': 'Date picker', // en-fallback
|
|
'common.datepicker.clearDate': 'Clear date', // en-fallback
|
|
'common.errorTitle': 'Něco se pokazilo',
|
|
'common.errorBody': 'Tato část aplikace přestala fungovat. Vaše data jsou v bezpečí.',
|
|
'common.errorPanelTitle': 'Tuto sekci se nepodařilo zobrazit',
|
|
'common.errorPanelBody': 'Zbytek stránky funguje dál.',
|
|
'common.errorRetry': 'Zkusit znovu',
|
|
'common.errorReload': 'Načíst stránku znovu',
|
|
'common.errorUpdateTitle': 'Je dostupná nová verze',
|
|
'common.errorUpdateBody': 'TREK byl aktualizován, zatímco byla tato karta otevřená. Načtěte znovu pro novou verzi.',
|
|
'common.errorPluginTitle': 'Tento plugin se nepodařilo zobrazit',
|
|
};
|
|
export default common;
|