mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
fix(tours): explain a kept tour without a line, and say the take-over once
Taking a tour kept in a collection into a trip left the user guessing in two places when the tour had no line. The map box stayed an empty grey square that read as a broken map; it now says that there is no line yet, only the waypoints. Why "Line only" is dimmed was only in the tooltip of a disabled button, which never shows on hover, focus or touch; the reason now stands under the two choices, and a disabled tile sits in a span so its tooltip can show as well. A successful take-over said the same sentence twice, as a toast and as the dialog's last word with "Open trip". The toast is gone. The collection strings move out of tours.ts into a tourCollection.ts per locale, keeping their keys, so no locale's tours file grows past the 1000-line limit. The tours locale spec now holds both files to their own counts.
This commit is contained in:
@@ -46,6 +46,7 @@ import shared from './shared';
|
||||
import storage from './storage';
|
||||
import system_notice from './system_notice';
|
||||
import todo from './todo';
|
||||
import tourCollection from './tourCollection';
|
||||
import tours from './tours';
|
||||
import transport from './transport';
|
||||
import trip from './trip';
|
||||
@@ -61,6 +62,7 @@ const locale = {
|
||||
...dashboard,
|
||||
...roadtrip,
|
||||
...tours,
|
||||
...tourCollection,
|
||||
...wanderer,
|
||||
...settings,
|
||||
...admin,
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
import type { TranslationStrings } from '../types';
|
||||
|
||||
const tourCollection: TranslationStrings = {
|
||||
'tours.collection.save': 'Uložit do sbírky',
|
||||
'tours.collection.saveHint': 'Uloží nezávislou kopii této túry do jedné z tvých sbírek',
|
||||
'tours.collection.saveFirst': 'Nejprve túru ulož, abys ji mohl dát do sbírky',
|
||||
'tours.collection.saveSub': 'Nezávislá kopie. Pozdější změny této túry se jí nedotknou.',
|
||||
'tours.collection.list': 'Sbírka',
|
||||
'tours.collection.readOnly': 'Tento seznam můžeš jen číst',
|
||||
'tours.collection.noLists': 'Zatím nemáš žádnou sbírku.',
|
||||
'tours.collection.openCollections': 'Otevřít sbírky',
|
||||
'tours.collection.nameThere': 'Název ve sbírce',
|
||||
'tours.collection.keep': 'Uložit',
|
||||
'tours.collection.kept': '„{name}“ je teď ve sbírce „{list}“.',
|
||||
'tours.collection.keepFailed': 'Túru se nepodařilo uložit.',
|
||||
'tours.collection.offline': 'Sbírky potřebují připojení.',
|
||||
'tours.collection.listsFailed': 'Sbírky se nepodařilo načíst.',
|
||||
'tours.collection.toursFailed': 'Túry tohoto seznamu se nepodařilo načíst.',
|
||||
'tours.collection.points': '{count} bodů trasy',
|
||||
'tours.collection.points.one': '{count} bod trasy',
|
||||
'tours.collection.points.few': '{count} body trasy',
|
||||
'tours.collection.savedFrom': 'Uloženo z',
|
||||
'tours.collection.source': 'Uloženo z „{tour}“ v „{trip}“',
|
||||
'tours.collection.keptBy': 'Uložil(a) {name}',
|
||||
'tours.collection.add': 'Přidat do cesty',
|
||||
'tours.collection.addHint': 'Vytvoří vlastní novou túru v cestě, kterou zvolíš',
|
||||
'tours.collection.remove': 'Odebrat ze sbírky',
|
||||
'tours.collection.removeTitle': 'Odebrat tuto túru ze sbírky?',
|
||||
'tours.collection.removeBody': 'Túry, které už z ní ve tvých cestách vznikly, zůstanou, jak jsou.',
|
||||
'tours.collection.removed': 'Túra byla odebrána ze sbírky.',
|
||||
'tours.collection.removeFailed': 'Túru se nepodařilo odebrat.',
|
||||
'tours.collection.takeEyebrow': 'Ze sbírky',
|
||||
'tours.collection.takeSub': 'Stane se vlastní túrou zvolené cesty, bez dnů. Sbírka zůstane, jak je.',
|
||||
'tours.collection.intoTrip': 'Do cesty',
|
||||
'tours.collection.noPermission': 'Do této cesty nemůžeš přidávat túry',
|
||||
'tours.collection.noTrips': 'Zatím nemáš žádnou cestu, kam ji přidat.',
|
||||
'tours.collection.withPoints': 'S {count} body trasy',
|
||||
'tours.collection.withPoints.one': 'S {count} bodem trasy',
|
||||
'tours.collection.withPoints.few': 'Se {count} body trasy',
|
||||
'tours.collection.withPointsHint': 'Start, zastávky a cíl přejdou ve svém pořadí.',
|
||||
'tours.collection.lineOnly': 'Jen linie',
|
||||
'tours.collection.lineOnlyHint': 'Linie zůstane, jak byla uložena. Žádné body trasy se nepřidají.',
|
||||
'tours.collection.needsPoints': 'Tato túra zatím nemá linii, proto musí její body trasy přejít s ní.',
|
||||
'tours.collection.noLine': 'Zatím bez trasy, jen průjezdní body',
|
||||
'tours.collection.nameInTrip': 'Název v cestě',
|
||||
'tours.collection.taken': '„{name}“ je teď túrou cesty „{trip}“.',
|
||||
'tours.collection.takeFailed': 'Túru se nepodařilo přidat do cesty.',
|
||||
'tours.collection.openTrip': 'Otevřít cestu',
|
||||
};
|
||||
export default tourCollection;
|
||||
@@ -1313,49 +1313,5 @@ const tours: TranslationStrings = {
|
||||
'tours.stages.wholeTour': 'Celá trasa',
|
||||
'tours.stages.totalPartial': 'známo pro {known} z {of} etap',
|
||||
'tours.stages.openInPlanner': 'Otevřít tuto etapu v plánovači',
|
||||
'tours.collection.save': 'Uložit do sbírky',
|
||||
'tours.collection.saveHint': 'Uloží nezávislou kopii této túry do jedné z tvých sbírek',
|
||||
'tours.collection.saveFirst': 'Nejprve túru ulož, abys ji mohl dát do sbírky',
|
||||
'tours.collection.saveSub': 'Nezávislá kopie. Pozdější změny této túry se jí nedotknou.',
|
||||
'tours.collection.list': 'Sbírka',
|
||||
'tours.collection.readOnly': 'Tento seznam můžeš jen číst',
|
||||
'tours.collection.noLists': 'Zatím nemáš žádnou sbírku.',
|
||||
'tours.collection.openCollections': 'Otevřít sbírky',
|
||||
'tours.collection.nameThere': 'Název ve sbírce',
|
||||
'tours.collection.keep': 'Uložit',
|
||||
'tours.collection.kept': '„{name}“ je teď ve sbírce „{list}“.',
|
||||
'tours.collection.keepFailed': 'Túru se nepodařilo uložit.',
|
||||
'tours.collection.offline': 'Sbírky potřebují připojení.',
|
||||
'tours.collection.listsFailed': 'Sbírky se nepodařilo načíst.',
|
||||
'tours.collection.toursFailed': 'Túry tohoto seznamu se nepodařilo načíst.',
|
||||
'tours.collection.points': '{count} bodů trasy',
|
||||
'tours.collection.points.one': '{count} bod trasy',
|
||||
'tours.collection.points.few': '{count} body trasy',
|
||||
'tours.collection.savedFrom': 'Uloženo z',
|
||||
'tours.collection.source': 'Uloženo z „{tour}“ v „{trip}“',
|
||||
'tours.collection.keptBy': 'Uložil(a) {name}',
|
||||
'tours.collection.add': 'Přidat do cesty',
|
||||
'tours.collection.addHint': 'Vytvoří vlastní novou túru v cestě, kterou zvolíš',
|
||||
'tours.collection.remove': 'Odebrat ze sbírky',
|
||||
'tours.collection.removeTitle': 'Odebrat tuto túru ze sbírky?',
|
||||
'tours.collection.removeBody': 'Túry, které už z ní ve tvých cestách vznikly, zůstanou, jak jsou.',
|
||||
'tours.collection.removed': 'Túra byla odebrána ze sbírky.',
|
||||
'tours.collection.removeFailed': 'Túru se nepodařilo odebrat.',
|
||||
'tours.collection.takeEyebrow': 'Ze sbírky',
|
||||
'tours.collection.takeSub': 'Stane se vlastní túrou zvolené cesty, bez dnů. Sbírka zůstane, jak je.',
|
||||
'tours.collection.intoTrip': 'Do cesty',
|
||||
'tours.collection.noPermission': 'Do této cesty nemůžeš přidávat túry',
|
||||
'tours.collection.noTrips': 'Zatím nemáš žádnou cestu, kam ji přidat.',
|
||||
'tours.collection.withPoints': 'S {count} body trasy',
|
||||
'tours.collection.withPoints.one': 'S {count} bodem trasy',
|
||||
'tours.collection.withPoints.few': 'Se {count} body trasy',
|
||||
'tours.collection.withPointsHint': 'Start, zastávky a cíl přejdou ve svém pořadí.',
|
||||
'tours.collection.lineOnly': 'Jen linie',
|
||||
'tours.collection.lineOnlyHint': 'Linie zůstane, jak byla uložena. Žádné body trasy se nepřidají.',
|
||||
'tours.collection.needsPoints': 'Tato túra zatím nemá linii, proto musí její body trasy přejít s ní.',
|
||||
'tours.collection.nameInTrip': 'Název v cestě',
|
||||
'tours.collection.taken': '„{name}“ je teď túrou cesty „{trip}“.',
|
||||
'tours.collection.takeFailed': 'Túru se nepodařilo přidat do cesty.',
|
||||
'tours.collection.openTrip': 'Otevřít cestu',
|
||||
};
|
||||
export default tours;
|
||||
|
||||
Reference in New Issue
Block a user