mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
feat(admin): the phone's API-keys card, rebuilt like the desktop tab
The desktop tab was reshaped around one idea: a key should be the exception rather than the thing you are expected to paste. The phone still had the older shape, where Google wore the "Recommended" chip and the TREK Places API was not on the screen at all. Two pages, opposite advice, same setting. So the phone gets the same three comparable blocks in the same order: the TREK index first, with its own ribbon and a folded panel of what it does and does not carry, then the two keys under theirs. The Google caveat is said before the field rather than after it, because somebody about to paste a key should read it while deciding. The four Google switches moved under the key they spend, folded away: they are set once and never touched again, and open they were longer than the rest of the card together. Open-Meteo left the card entirely, as it did on the desktop, since it takes no key and had the loudest treatment of anything there. The provider choice is TREK's own picker now. A native select is drawn by the operating system and was the one control on the page that did not belong to the app. Its description was also describing a TREK that no longer exists: it said one service answers place search. The index and OpenStreetMap answer every search and the setting only decides who is asked once they come up empty (maps.service.ts, keyedProvider). Both that line and the missing-key notice say so now, in all 23 languages, and the two key hints have short forms for the narrow screen.
This commit is contained in:
@@ -444,13 +444,13 @@ const admin: TranslationStrings = {
|
||||
"Per a la cerca de llocs a la Xina continental, on Google no és accessible i la cobertura d'OpenStreetMap és escassa. Cal una clau «Web 服务» (servei web), no una clau de l'API JS. Se n'obté una a console.amap.com.",
|
||||
'admin.placesProvider.title': 'Proveïdor de la cerca de llocs',
|
||||
'admin.placesProvider.subtitle':
|
||||
"Quin servei respon la cerca de llocs, l'autocompleció i els detalls. Automàtic fa servir Google quan hi ha una clau de Google configurada, després Amap i després OpenStreetMap.",
|
||||
"L'índex propi de TREK i OpenStreetMap responen cada cerca. Aquí es tria a qui més es consulta quan no troben res: Automàtic prefereix Google si hi ha clau, després Amap.",
|
||||
'admin.placesProvider.auto': 'Automàtic',
|
||||
'admin.placesProvider.google': 'Google Places',
|
||||
'admin.placesProvider.amap': 'Amap (高德地图)',
|
||||
'admin.placesProvider.openstreetmap': 'OpenStreetMap',
|
||||
'admin.placesProvider.missingKey':
|
||||
'El proveïdor seleccionat no té cap clau API configurada, així que la cerca de llocs recorre a OpenStreetMap.',
|
||||
"El proveïdor seleccionat no té cap clau d'API configurada, així que la cerca de llocs la responen només l'índex de TREK i OpenStreetMap.",
|
||||
'admin.placesProvider.saved': 'Proveïdor de la cerca de llocs desat',
|
||||
'admin.tabs.plugins': 'Connectors',
|
||||
'admin.tabs.storage': 'Emmagatzematge',
|
||||
@@ -720,5 +720,8 @@ const admin: TranslationStrings = {
|
||||
'admin.plugins.metaRequires': 'Requereix',
|
||||
'admin.plugins.metaReviewed': 'Revisat el',
|
||||
'admin.plugins.downloads': 'Baixades',
|
||||
'admin.placesUsageTitle': "Per a què s'usa la clau",
|
||||
'admin.mapsKeyHintShort': 'Afegeix fotos, valoracions i horaris. Cada consulta passa llavors per Google.',
|
||||
'admin.amapKeyHintShort': 'Per a la cerca de llocs a la Xina continental. Cal una clau de servei web, no una clau API JS.',
|
||||
};
|
||||
export default admin;
|
||||
|
||||
Reference in New Issue
Block a user