Fix translations

This commit is contained in:
Pieter Vander Vennet 2023-12-06 04:01:42 +01:00
parent 2c07b9544a
commit 7cd649b1b6
11 changed files with 340 additions and 141 deletions

View file

@ -1,13 +1,33 @@
{ {
"id": "mapcomplete-changes", "id": "mapcomplete-changes",
"title": { "title": {
"en": "Changes made with MapComplete" "en": "Changes made with MapComplete",
"ca": "Canvis fets amb MapComplete",
"cs": "Změny provedené pomocí MapComplete",
"de": "Mit MapComplete erstellte Änderungen",
"es": "Cambios realizados con MapComplete",
"fr": "Changements faits avec MapComplete",
"nl": "Wijzigingen gemaakt met MapComplete",
"pl": "Zmiany wprowadzone za pomocą MapComplete"
}, },
"shortDescription": { "shortDescription": {
"en": "Shows changes made by MapComplete" "en": "Show changes made with MapComplete",
"ca": "Mostra els canvis fets amb MapComplete",
"cs": "Zobrazení změn provedených pomocí nástroje MapComplete",
"de": "Mit MapComplete erstellte Änderungen anzeigen",
"es": "Mostrar cambios realizados con MapComplete",
"nl": "Toon wijzigingen gemaakt met MapComplete",
"pl": "Pokaż zmiany wprowadzone za pomocą MapComplete"
}, },
"description": { "description": {
"en": "This maps shows all the changes made with MapComplete" "en": "This maps shows all the changes made with MapComplete",
"ca": "Aquest mapa mostra tots els canvis fets amb MapComplete",
"cs": "Tato mapa zobrazuje všechny změny provedené pomocí MapComplete",
"de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen",
"es": "Este mapa muestra todos los cambios realizados con MapComplete",
"fr": "Cette carte montre tous les changements faits avec MapComplete",
"nl": "Deze kaart toont alle wijzigingen die met MapComplete gemaakt werden",
"pl": "Ta mapa pokazuje wszystkie zmiany wprowadzone za pomocą MapComplete"
}, },
"icon": "./assets/svg/logo.svg", "icon": "./assets/svg/logo.svg",
"hideFromOverview": true, "hideFromOverview": true,
@ -20,7 +40,13 @@
{ {
"id": "mapcomplete-changes", "id": "mapcomplete-changes",
"name": { "name": {
"en": "Changeset centers" "en": "Changeset centers",
"ca": "Centre del conjunt de canvis",
"cs": "Centrum změn",
"de": "Zentrum der Änderungssätze",
"es": "Centro del conjunto de cambios",
"nl": "Centerpunt van changeset",
"pl": "Centra zmian"
}, },
"minzoom": 0, "minzoom": 0,
"source": { "source": {
@ -31,41 +57,85 @@
}, },
"title": { "title": {
"render": { "render": {
"en": "Changeset for {theme}" "en": "Changeset for {theme}",
"ca": "Conjunt de canvis per a {theme}",
"cs": "Změna pro {theme}",
"de": "Änderungssatz für {theme}",
"es": "Conjunto de cambios para {theme}",
"fr": "Groupe de modifications pour {theme}",
"pl": "Zestaw zmian dla {theme}"
} }
}, },
"description": { "description": {
"en": "Shows all MapComplete changes" "en": "Show all MapComplete changes",
"ca": "Mostra tots els canvis de MapComplete",
"cs": "Zobrazit všechny změny MapComplete",
"de": "Alle MapComplete-Änderungen anzeigen",
"es": "Mostrar todos los cambios de MapComplete",
"nl": "Toon alle MapComplete wijzigingen",
"pl": "Wyświetl wszystkie zmiany MapComplete"
}, },
"tagRenderings": [ "tagRenderings": [
{ {
"id": "show_changeset_id", "id": "show_changeset_id",
"render": { "render": {
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>" "en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"ca": "Conjunt de canvi <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"cs": "Změny <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"de": "Änderungssatz <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"es": "Conjunto de cambios <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"fr": "Groupe de modifications <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"pl": "Zestaw zmian <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
} }
}, },
{ {
"id": "contributor", "id": "contributor",
"question": { "question": {
"en": "What contributor did make this change?" "en": "Which contributor made this change?",
"ca": "Quin col·laborador va fer aquest canvi?",
"cs": "Který přispěvatel tuto změnu provedl?",
"de": "Wer hat diese Änderung vorgenommen?",
"es": "¿Qué contribuidor hizo este cambio?",
"fr": "Quel contributeur a fait cette modification ?",
"nl": "Welke bijdrager maakte deze wijziging?",
"pl": "Który współautor dokonał tej zmiany?"
}, },
"freeform": { "freeform": {
"key": "user" "key": "user"
}, },
"render": { "render": {
"en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>" "en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"ca": "Canvi fet per <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"cs": "Změna provedená <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"de": "Änderung von <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"es": "Cambio realizado por <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"fr": "Modification faite par <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"nl": "Wijziging gemaakt door <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"pl": "Zmiana dokonana przez <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>"
} }
}, },
{ {
"id": "theme-id", "id": "theme-id",
"question": { "question": {
"en": "What theme was used to make this change?" "en": "What theme was used to make this change?",
"ca": "Quin tema es va utilitzar per fer aquest canvi?",
"cs": "Jaké téma bylo použito k provedení této změny?",
"de": "Welches Thema wurde für diese Änderung verwendet?",
"es": "¿Qué tema se utilizó para realizar este cambio?",
"fr": "Quel thème a été utilisé pour faire cette modification ?",
"pl": "Jakiego tematu użyto do wprowadzenia tej zmiany?"
}, },
"freeform": { "freeform": {
"key": "theme" "key": "theme"
}, },
"render": { "render": {
"en": "Change with theme <a href='https://mapcomplete.org/{theme}'>{theme}</a>" "en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"ca": "Canvi amb el tema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"cs": "Změna s motivem <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"de": "Geändert mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"es": "Cambio con tema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"fr": "Modifié avec le thème <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"pl": "Zmiana za pomocą motywu <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
} }
}, },
{ {
@ -74,19 +144,45 @@
"key": "locale" "key": "locale"
}, },
"question": { "question": {
"en": "What locale (language) was this change made in?" "en": "What locale (language) was this change made in?",
"ca": "Amb quina configuració regional (idioma) s'ha fet aquest canvi?",
"cs": "V jakém národním prostředí (jazyce) byla tato změna provedena?",
"de": "In welcher Benutzersprache wurde diese Änderung vorgenommen?",
"es": "¿En qué configuración regional (idioma) se realizó este cambio?",
"fr": "En quelle langue est-ce que ce changement a été fait ?",
"nl": "In welke locale (taal) werd deze wijziging gemaakt?",
"pl": "W jakim języku wprowadzono tę zmianę?"
}, },
"render": { "render": {
"en": "User locale is {locale}" "en": "User locale is {locale}",
"ca": "La configuració regional de l'usuari és {locale}",
"cs": "Uživatelské prostředí je {locale}",
"de": "Benutzersprache {locale}",
"es": "La configuración regional del usuario es {locale}",
"nl": "De gebruikerstaal is {locale}",
"pl": "Ustawienia regionalne użytkownika to {locale}"
} }
}, },
{ {
"id": "host", "id": "host",
"render": { "render": {
"en": "Change with with <a href='{host}'>{host}</a>" "en": "Change made with <a href='{host}'>{host}</a>",
"ca": "Canviat fet amb <a href='{host}'>{host}</a>",
"cs": "Změna provedená pomocí <a href='{host}'>{host}</a>",
"de": "Geändert über <a href='{host}'>{host}</a>",
"es": "Cambio realizado con <a href='{host}'>{host}</a>",
"fr": "Modification faite avec <a href='{host}'>{host}</a>",
"nl": "Wijziging gemaakt met <a href='{host}'>{host}</a>",
"pl": "Zmiana dokonana w <a href='{host}'>{host}</a>"
}, },
"question": { "question": {
"en": "What host (website) was this change made with?" "en": "What host (website) was this change made with?",
"ca": "Amb quin amfitrió (lloc web) es va fer aquest canvi?",
"cs": "U jakého hostitele (webové stránky) byla tato změna provedena?",
"de": "Über welchen Host (Webseite) wurde diese Änderung vorgenommen?",
"es": "¿Con qué host (página web) se realizó este cambio?",
"nl": "Met welke host (website) werd deze wijziging gemaakt?",
"pl": "Na jakim hoście (stronie internetowej) dokonano tej zmiany?"
}, },
"freeform": { "freeform": {
"key": "host" "key": "host"
@ -107,10 +203,22 @@
{ {
"id": "version", "id": "version",
"question": { "question": {
"en": "What version of MapComplete was used to make this change?" "en": "What version of MapComplete was used to make this change?",
"ca": "Quina versió de MapComplete es va utilitzar per fer aquest canvi?",
"cs": "Jaká verze aplikace MapComplete byla použita k provedení této změny?",
"de": "Mit welcher Version von MapComplete wurde diese Änderung gemacht?",
"es": "¿Qué versión de MapComplete se usó para realizar este cambio?",
"fr": "Quelle version de MapComplete a été utilisée pour faire cette modification ?",
"pl": "Która wersja MapComplete została wykorzystana, aby zrobić tę zmianę?"
}, },
"render": { "render": {
"en": "Made with {editor}" "en": "Made with {editor}",
"ca": "Fet amb {editor}",
"cs": "Vyrobeno pomocí {editor}",
"de": "Erstellt mit {editor}",
"es": "Realizado con {editor}",
"fr": "Fait avec {editor}",
"pl": "Zrobione za pomocą {editor}"
}, },
"freeform": { "freeform": {
"key": "editor" "key": "editor"
@ -460,7 +568,13 @@
} }
], ],
"question": { "question": {
"en": "Themename contains {search}" "en": "Theme name contains {search}",
"ca": "El nom del tema conté {search}",
"cs": "Název motivu obsahuje {search}",
"de": "Themenname enthält {search}",
"es": "El nombre del tema contiene {search}",
"nl": "Themenaam bevat {search}",
"pl": "Nazwa tematu zawiera {search}"
} }
} }
] ]
@ -476,29 +590,8 @@
} }
], ],
"question": { "question": {
"en": "Themename does <b>not</b> contain {search}" "en": "Theme name does <b>not</b> contain {search}"
}
}
]
},
{
"id": "exclude_grb",
"options": [
{
"osmTags": "theme!=grb",
"question": {
"en": "Exclude GRB theme"
}
}
]
},
{
"id": "exclude_etymology",
"options": [
{
"osmTags": "theme!=etymology",
"question": {
"en": "Exclude etymology theme"
} }
} }
] ]
@ -514,7 +607,14 @@
} }
], ],
"question": { "question": {
"en": "Made by contributor {search}" "en": "Made by contributor {search}",
"ca": "Fet pel col·laborador {search}",
"cs": "Vytvořil přispěvatel {search}",
"de": "Erstellt von {search}",
"es": "Hecho por el colaborador {search}",
"nl": "Gemaakt door bijdrager {search}",
"pl": "Wykonane przez współautora {search}"
} }
} }
] ]
@ -530,7 +630,14 @@
} }
], ],
"question": { "question": {
"en": "<b>Not</b> made by contributor {search}" "en": "<b>Not</b> made by contributor {search}",
"ca": "<b>No</b> fet pel col·laborador {search}",
"cs": "<b>Není</b> vytvořeno přispěvatelem {search}",
"de": "<b>Nicht</b> erstellt von {search}",
"es": "<b>No</b> hecho por el colaborador {search}",
"nl": "<b>Niet</b> gemaakt door bijdrager {search}",
"pl": "<b>Nie</b> wykonane przez współautora {search}"
} }
} }
] ]
@ -547,7 +654,14 @@
} }
], ],
"question": { "question": {
"en": "Made before {search}" "en": "Made before {search}",
"ca": "Fet abans de {search}",
"cs": "Vytvořeno před {search}",
"de": "Erstellt vor {search}",
"es": "Hecho antes de {search}",
"nl": "Gemaakt voor {search}",
"pl": "Stworzone przed {search}"
} }
} }
] ]
@ -564,7 +678,14 @@
} }
], ],
"question": { "question": {
"en": "Made after {search}" "en": "Made after {search}",
"ca": "Fet després de {search}",
"cs": "Vytvořeno po {search}",
"de": "Erstellt nach {search}",
"es": "Hecho después de {search}",
"nl": "Gemaakt na {search}",
"pl": "Stworzone po {search}"
} }
} }
] ]
@ -579,8 +700,15 @@
"name": "search" "name": "search"
} }
], ],
"question": { "question": { "en": "User language (iso-code) {search}",
"en": "User language (iso-code) {search}" "ca": "Idioma de l'usuari (codi iso) {search}",
"cs": "Jazyk uživatele (iso-kód) {search}",
"de": "Benutzersprache (ISO-Code) {search}",
"es": "Use idioma (ISO-code) {search}",
"fr": "Langage utilisateur (code-ISO) {search}",
"nl": "De taal van de bijdrager is {search}",
"pl": "Język użytkownika (kod iso) {search}"
} }
} }
] ]
@ -596,7 +724,15 @@
} }
], ],
"question": { "question": {
"en": "Made with host {search}"
"en": "Made with host {search}",
"ca": "Fet amb l'amfitrió {search}",
"cs": "Vytvořeno pomocí hostitele {search}",
"de": "Erstellt mit Host {search}",
"es": "Hecho con el host {search}",
"nl": "Gemaakt met host {search}",
"pl": "Wykonane z hostem {search}"
} }
} }
] ]
@ -606,6 +742,36 @@
"options": [ "options": [
{ {
"osmTags": "add-image>0", "osmTags": "add-image>0",
"question": {
"en": "Changeset added at least one image",
"ca": "El conjunt de canvis ha afegit almenys una imatge",
"cs": "Sada změn přidala alespoň jeden obrázek",
"de": "Im Änderungssatz wurde mindestens ein Bild hinzugefügt",
"es": "El conjunto de cambios ha añadido al menos una imagen",
"fr": "Le groupe de modifications a ajouté au moins une image",
"nl": "Changeset bevat minstens één afbeelding",
"pl": "Zestaw zmian dodał co najmniej jedno zdjęcie"
}
}
]
},
{
"id": "exclude_grb",
"options": [
{
"osmTags": "theme!=grb",
"question": {
"en": "Made with host {search}"
}
}
]
},
{
"id": "exclude_etymology",
"options": [
{
"osmTags": "theme!=etymology",
"question": { "question": {
"en": "Changeset added at least one image" "en": "Changeset added at least one image"
} }
@ -622,7 +788,13 @@
{ {
"id": "link_to_more", "id": "link_to_more",
"render": { "render": {
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>" "en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"ca": "Es pot trobar més estadística <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>aquí</a>",
"cs": "Další statistiky najdete <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"de": "Mehr Statistiken gibt es <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>",
"es": "Puede encontrar más estadísticas <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>aquí</a>",
"fr": "D'autres statistiques sont disponibles <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>ici</a>",
"pl": "Więcej statystyk można znaleźć <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>tutaj</a>"
} }
}, },
{ {

View file

@ -865,49 +865,49 @@
} }
} }
}, },
"1": { "2": {
"options": { "options": {
"0": { "0": {
"question": "Fet pel col·laborador {search}" "question": "Fet pel col·laborador {search}"
} }
} }
}, },
"2": { "3": {
"options": { "options": {
"0": { "0": {
"question": "<b>No</b> fet pel col·laborador {search}" "question": "<b>No</b> fet pel col·laborador {search}"
} }
} }
}, },
"3": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Fet abans de {search}" "question": "Fet abans de {search}"
} }
} }
}, },
"4": { "5": {
"options": { "options": {
"0": { "0": {
"question": "Fet després de {search}" "question": "Fet després de {search}"
} }
} }
}, },
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Idioma de l'usuari (codi iso) {search}" "question": "Idioma de l'usuari (codi iso) {search}"
} }
} }
}, },
"6": { "7": {
"options": { "options": {
"0": { "0": {
"question": "Fet amb l'amfitrió {search}" "question": "Fet amb l'amfitrió {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "El conjunt de canvis ha afegit almenys una imatge" "question": "El conjunt de canvis ha afegit almenys una imatge"

View file

@ -900,49 +900,49 @@
} }
} }
}, },
"1": { "2": {
"options": { "options": {
"0": { "0": {
"question": "Vytvořil přispěvatel {search}" "question": "Vytvořil přispěvatel {search}"
} }
} }
}, },
"2": { "3": {
"options": { "options": {
"0": { "0": {
"question": "<b>Není</b> vytvořeno přispěvatelem {search}" "question": "<b>Není</b> vytvořeno přispěvatelem {search}"
} }
} }
}, },
"3": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Vytvořeno před {search}" "question": "Vytvořeno před {search}"
} }
} }
}, },
"4": { "5": {
"options": { "options": {
"0": { "0": {
"question": "Vytvořeno po {search}" "question": "Vytvořeno po {search}"
} }
} }
}, },
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Jazyk uživatele (iso-kód) {search}" "question": "Jazyk uživatele (iso-kód) {search}"
} }
} }
}, },
"6": { "7": {
"options": { "options": {
"0": { "0": {
"question": "Vytvořeno pomocí hostitele {search}" "question": "Vytvořeno pomocí hostitele {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "Sada změn přidala alespoň jeden obrázek" "question": "Sada změn přidala alespoň jeden obrázek"

View file

@ -905,49 +905,49 @@
} }
} }
}, },
"1": { "2": {
"options": { "options": {
"0": { "0": {
"question": "Erstellt von {search}" "question": "Erstellt von {search}"
} }
} }
}, },
"2": { "3": {
"options": { "options": {
"0": { "0": {
"question": "<b>Nicht</b> erstellt von {search}" "question": "<b>Nicht</b> erstellt von {search}"
} }
} }
}, },
"3": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Erstellt vor {search}" "question": "Erstellt vor {search}"
} }
} }
}, },
"4": { "5": {
"options": { "options": {
"0": { "0": {
"question": "Erstellt nach {search}" "question": "Erstellt nach {search}"
} }
} }
}, },
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Benutzersprache (ISO-Code) {search}" "question": "Benutzersprache (ISO-Code) {search}"
} }
} }
}, },
"6": { "7": {
"options": { "options": {
"0": { "0": {
"question": "Erstellt mit Host {search}" "question": "Erstellt mit Host {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "Im Änderungssatz wurde mindestens ein Bild hinzugefügt" "question": "Im Änderungssatz wurde mindestens ein Bild hinzugefügt"

View file

@ -911,46 +911,67 @@
"1": { "1": {
"options": { "options": {
"0": { "0": {
"question": "Made by contributor {search}" "question": "Theme name does <b>not</b> contain {search}"
} }
} }
}, },
"2": { "2": {
"options": { "options": {
"0": { "0": {
"question": "<b>Not</b> made by contributor {search}" "question": "Made by contributor {search}"
} }
} }
}, },
"3": { "3": {
"options": { "options": {
"0": { "0": {
"question": "Made before {search}" "question": "<b>Not</b> made by contributor {search}"
} }
} }
}, },
"4": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Made after {search}" "question": "Made before {search}"
} }
} }
}, },
"5": { "5": {
"options": { "options": {
"0": { "0": {
"question": "User language (iso-code) {search}" "question": "Made after {search}"
} }
} }
}, },
"6": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Made with host {search}" "question": "User language (iso-code) {search}"
} }
} }
}, },
"7": { "7": {
"options": {
"0": {
"question": "Made with host {search}"
}
}
},
"8": {
"options": {
"0": {
"question": "Changeset added at least one image"
}
}
},
"9": {
"options": {
"0": {
"question": "Made with host {search}"
}
}
},
"10": {
"options": { "options": {
"0": { "0": {
"question": "Changeset added at least one image" "question": "Changeset added at least one image"

View file

@ -869,49 +869,49 @@
} }
} }
}, },
"1": { "2": {
"options": { "options": {
"0": { "0": {
"question": "Hecho por el colaborador {search}" "question": "Hecho por el colaborador {search}"
} }
} }
}, },
"2": { "3": {
"options": { "options": {
"0": { "0": {
"question": "<b>No</b> hecho por el colaborador {search}" "question": "<b>No</b> hecho por el colaborador {search}"
} }
} }
}, },
"3": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Hecho antes de {search}" "question": "Hecho antes de {search}"
} }
} }
}, },
"4": { "5": {
"options": { "options": {
"0": { "0": {
"question": "Hecho después de {search}" "question": "Hecho después de {search}"
} }
} }
}, },
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Use idioma (ISO-code) {search}" "question": "Use idioma (ISO-code) {search}"
} }
} }
}, },
"6": { "7": {
"options": { "options": {
"0": { "0": {
"question": "Hecho con el host {search}" "question": "Hecho con el host {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "El conjunto de cambios ha añadido al menos una imagen" "question": "El conjunto de cambios ha añadido al menos una imagen"

View file

@ -847,14 +847,14 @@
"layers": { "layers": {
"0": { "0": {
"filter": { "filter": {
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Langage utilisateur (code-ISO) {search}" "question": "Langage utilisateur (code-ISO) {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "Le groupe de modifications a ajouté au moins une image" "question": "Le groupe de modifications a ajouté au moins une image"

View file

@ -883,49 +883,49 @@
} }
} }
}, },
"1": { "2": {
"options": { "options": {
"0": { "0": {
"question": "Gemaakt door bijdrager {search}" "question": "Gemaakt door bijdrager {search}"
} }
} }
}, },
"2": { "3": {
"options": { "options": {
"0": { "0": {
"question": "<b>Niet</b> gemaakt door bijdrager {search}" "question": "<b>Niet</b> gemaakt door bijdrager {search}"
} }
} }
}, },
"3": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Gemaakt voor {search}" "question": "Gemaakt voor {search}"
} }
} }
}, },
"4": { "5": {
"options": { "options": {
"0": { "0": {
"question": "Gemaakt na {search}" "question": "Gemaakt na {search}"
} }
} }
}, },
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "De taal van de bijdrager is {search}" "question": "De taal van de bijdrager is {search}"
} }
} }
}, },
"6": { "7": {
"options": { "options": {
"0": { "0": {
"question": "Gemaakt met host {search}" "question": "Gemaakt met host {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "Changeset bevat minstens één afbeelding" "question": "Changeset bevat minstens één afbeelding"

View file

@ -869,49 +869,49 @@
} }
} }
}, },
"1": { "2": {
"options": { "options": {
"0": { "0": {
"question": "Wykonane przez współautora {search}" "question": "Wykonane przez współautora {search}"
} }
} }
}, },
"2": { "3": {
"options": { "options": {
"0": { "0": {
"question": "<b>Nie</b> wykonane przez współautora {search}" "question": "<b>Nie</b> wykonane przez współautora {search}"
} }
} }
}, },
"3": { "4": {
"options": { "options": {
"0": { "0": {
"question": "Stworzone przed {search}" "question": "Stworzone przed {search}"
} }
} }
}, },
"4": { "5": {
"options": { "options": {
"0": { "0": {
"question": "Stworzone po {search}" "question": "Stworzone po {search}"
} }
} }
}, },
"5": { "6": {
"options": { "options": {
"0": { "0": {
"question": "Język użytkownika (kod iso) {search}" "question": "Język użytkownika (kod iso) {search}"
} }
} }
}, },
"6": { "7": {
"options": { "options": {
"0": { "0": {
"question": "Wykonane z hostem {search}" "question": "Wykonane z hostem {search}"
} }
} }
}, },
"7": { "8": {
"options": { "options": {
"0": { "0": {
"question": "Zestaw zmian dodał co najmniej jedno zdjęcie" "question": "Zestaw zmian dodał co najmniej jedno zdjęcie"

View file

@ -323,7 +323,7 @@ export default class PointRenderingConfig extends WithContextLoader {
const label = self.label const label = self.label
?.GetRenderValue(tags) ?.GetRenderValue(tags)
?.Subs(tags) ?.Subs(tags)
?.SetClass("block center absolute text-center ") ?.SetClass("block center absolute text-center marker-label")
?.SetClass(cssClassesLabel) ?.SetClass(cssClassesLabel)
if (cssLabel) { if (cssLabel) {
label.SetStyle(cssLabel) label.SetStyle(cssLabel)

View file

@ -257,13 +257,6 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
const h = map.getContainer().getBoundingClientRect().height const h = map.getContainer().getBoundingClientRect().height
let dpi = map.getPixelRatio() let dpi = map.getPixelRatio()
console.log("Sizes:", {
dpi,
w,
h,
origSizeW: drawOn.style.width,
origSizeH: drawOn.style.height,
})
// The 'css'-size stays constant... // The 'css'-size stays constant...
drawOn.style.width = w + "px" drawOn.style.width = w + "px"
drawOn.style.height = h + "px" drawOn.style.height = h + "px"
@ -303,12 +296,44 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
map.resize() map.resize()
} }
private async drawElement(
drawOn: CanvasRenderingContext2D,
element: HTMLElement,
rescaleIcons: number,
pixelRatio: number
) {
const marker = element
const style = marker.style.transform
let x = marker.getBoundingClientRect().x
let y = marker.getBoundingClientRect().y
marker.style.transform = ""
const offset = style.match(/translate\(([-0-9]+)%, ?([-0-9]+)%\)/)
const w = marker.style.width
// Force a wider view for icon badges
marker.style.width = marker.getBoundingClientRect().width * 4 + "px"
const svgSource = await htmltoimage.toSvg(marker)
const img = await MapLibreAdaptor.createImage(svgSource)
marker.style.width = w
if (offset && rescaleIcons !== 1) {
const [_, __, relYStr] = offset
const relY = Number(relYStr)
y += img.height * (relY / 100)
}
x *= pixelRatio
y *= pixelRatio
try {
drawOn.drawImage(img, x, y, img.width * rescaleIcons, img.height * rescaleIcons)
} catch (e) {
console.log("Could not draw image because of", e)
}
}
/** /**
* Draws the markers of the current map on the specified canvas. * Draws the markers of the current map on the specified canvas.
* The DPIfactor is used to calculate the correct position, whereas 'rescaleIcons' can be used to make the icons smaller * The DPIfactor is used to calculate the correct position, whereas 'rescaleIcons' can be used to make the icons smaller
* @param drawOn
* @param rescaleIcons
* @private
*/ */
private async drawMarkers( private async drawMarkers(
drawOn: CanvasRenderingContext2D, drawOn: CanvasRenderingContext2D,
@ -322,6 +347,7 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
} }
const container = map.getContainer() const container = map.getContainer()
const pixelRatio = map.getPixelRatio()
function isDisplayed(el: Element) { function isDisplayed(el: Element) {
const r1 = el.getBoundingClientRect() const r1 = el.getBoundingClientRect()
@ -337,44 +363,24 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
const markers = Array.from(container.getElementsByClassName("marker")) const markers = Array.from(container.getElementsByClassName("marker"))
for (let i = 0; i < markers.length; i++) { for (let i = 0; i < markers.length; i++) {
const marker = <HTMLElement>markers[i] const marker = <HTMLElement>markers[i]
if (!isDisplayed(marker)) { const labels = Array.from(marker.getElementsByClassName("marker-label"))
continue
}
const pixelRatio = map.getPixelRatio()
let x = marker.getBoundingClientRect().x
let y = marker.getBoundingClientRect().y
const style = marker.style.transform const style = marker.style.transform
marker.style.transform = ""
const offset = style.match(/translate\(([-0-9]+)%, ?([-0-9]+)%\)/)
console.log("MARKER", marker) if (isDisplayed(marker)) {
const w = marker.style.width await this.drawElement(drawOn, marker, rescaleIcons, pixelRatio)
// Force a wider view for icon badges
marker.style.width = marker.getBoundingClientRect().width * 4 + "px"
const svgSource = await htmltoimage.toSvg(marker)
const img = await MapLibreAdaptor.createImage(svgSource)
marker.style.width = w
if (offset && rescaleIcons !== 1) {
const [_, relXStr, relYStr] = offset
const relX = Number(relXStr)
const relY = Number(relYStr)
console.log("Moving icon with", relX, relY, img.width, img.height, x, y)
// x += img.width * (relX / 100)
y += img.height * (relY / 100)
} }
x *= pixelRatio for (const label of labels) {
y *= pixelRatio if (isDisplayed(label)) {
console.log("Exporting label", label)
await this.drawElement(drawOn, <HTMLElement>label, rescaleIcons, pixelRatio)
}
}
if (progress) { if (progress) {
progress.setData({ current: i, total: markers.length }) progress.setData({ current: i, total: markers.length })
} }
try {
drawOn.drawImage(img, x, y, img.width * rescaleIcons, img.height * rescaleIcons)
} catch (e) {
console.log("Could not draw image because of", e)
}
marker.style.transform = style marker.style.transform = style
} }
} }