forked from MapComplete/MapComplete
Chore: translation fix
This commit is contained in:
parent
252a2d8398
commit
5dbeba17da
3 changed files with 33 additions and 65 deletions
|
@ -206,7 +206,7 @@
|
|||
"fr": "Cette voie fait {canonical(climbing:length)} de long",
|
||||
"cs": "Tato trasa je {canonical(climbing:length)} dlouhá",
|
||||
"es": "Esta vía mide {canonical(climbing:length)} de largo",
|
||||
"ca": "Aquesta ruta és {canonical(escalada: longitud)} llarga"
|
||||
"ca": "Aquesta ruta és {canonical(climbing:length)} llarga"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "climbing:length",
|
||||
|
|
|
@ -790,7 +790,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"id": "platform",
|
||||
"id": "added-image",
|
||||
"options": [
|
||||
{
|
||||
"question": {
|
||||
|
@ -800,27 +800,16 @@
|
|||
"es": "El conjunto de cambios agregó al menos una imagen",
|
||||
"ko": "주요 변경사항에 최소 하나의 이미지가 추가 되었습니다",
|
||||
"nl": "Changeset voegde minstens één afbeelding toe"
|
||||
}
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "Made with Android"
|
||||
},
|
||||
"osmTags": "android=yes"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "Made on the web"
|
||||
},
|
||||
"osmTags": "android="
|
||||
"osmTags": "add-image>0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "added-image",
|
||||
"id": "exclude_grb",
|
||||
"options": [
|
||||
{
|
||||
"osmTags": "add-image>0",
|
||||
"osmTags": "theme!=grb",
|
||||
"question": {
|
||||
"en": "Exclude GRB theme",
|
||||
"de": "GRB-Thema ausschließen",
|
||||
|
@ -833,10 +822,10 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"id": "exclude_grb",
|
||||
"id": "exclude_etymology",
|
||||
"options": [
|
||||
{
|
||||
"osmTags": "theme!=grb",
|
||||
"osmTags": "theme!=etymology",
|
||||
"question": {
|
||||
"en": "Exclude etymology theme",
|
||||
"de": "Etymologie-Thema ausschließen",
|
||||
|
@ -849,18 +838,25 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"id": "exclude_etymology",
|
||||
"id": "platform",
|
||||
"options": [
|
||||
{
|
||||
"osmTags": "theme!=etymology",
|
||||
"question": {
|
||||
"en": "Exclude etymology theme",
|
||||
"de": "Etymologie-Thema ausschließen",
|
||||
"es": "Excluir el tema de etimología",
|
||||
"cs": "Vyloučit etymologii tématu",
|
||||
"nl": "Thema etymologie uitsluiten",
|
||||
"ko": "어원 테마 제외"
|
||||
}
|
||||
"en": "All platforms"
|
||||
},
|
||||
"quesiton": "All platforms"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "Made with Android"
|
||||
},
|
||||
"osmTags": "android=yes"
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "Made on the web"
|
||||
},
|
||||
"osmTags": "android="
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,42 +1,14 @@
|
|||
import { Utils } from "../../Utils"
|
||||
/** This code is autogenerated - do not edit. Edit ./assets/layers/usersettings/usersettings.json instead */
|
||||
export class ThemeMetaTagging {
|
||||
public static readonly themeName = "usersettings"
|
||||
public static readonly themeName = "usersettings"
|
||||
|
||||
public metaTaggging_for_usersettings(feat: { properties: Record<string, string> }) {
|
||||
Utils.AddLazyProperty(feat.properties, "_mastodon_candidate_md", () =>
|
||||
feat.properties._description
|
||||
.match(/\[[^\]]*\]\((.*(mastodon|en.osm.town).*)\).*/)
|
||||
?.at(1)
|
||||
)
|
||||
Utils.AddLazyProperty(
|
||||
feat.properties,
|
||||
"_d",
|
||||
() => feat.properties._description?.replace(/</g, "<")?.replace(/>/g, ">") ?? ""
|
||||
)
|
||||
Utils.AddLazyProperty(feat.properties, "_mastodon_candidate_a", () =>
|
||||
((feat) => {
|
||||
const e = document.createElement("div")
|
||||
e.innerHTML = feat.properties._d
|
||||
return Array.from(e.getElementsByTagName("a")).filter(
|
||||
(a) => a.href.match(/mastodon|en.osm.town/) !== null
|
||||
)[0]?.href
|
||||
})(feat)
|
||||
)
|
||||
Utils.AddLazyProperty(feat.properties, "_mastodon_link", () =>
|
||||
((feat) => {
|
||||
const e = document.createElement("div")
|
||||
e.innerHTML = feat.properties._d
|
||||
return Array.from(e.getElementsByTagName("a")).filter(
|
||||
(a) => a.getAttribute("rel")?.indexOf("me") >= 0
|
||||
)[0]?.href
|
||||
})(feat)
|
||||
)
|
||||
Utils.AddLazyProperty(
|
||||
feat.properties,
|
||||
"_mastodon_candidate",
|
||||
() => feat.properties._mastodon_candidate_md ?? feat.properties._mastodon_candidate_a
|
||||
)
|
||||
feat.properties["__current_backgroun"] = "initial_value"
|
||||
}
|
||||
}
|
||||
public metaTaggging_for_usersettings(feat: {properties: Record<string, string>}) {
|
||||
Utils.AddLazyProperty(feat.properties, '_mastodon_candidate_md', () => feat.properties._description.match(/\[[^\]]*\]\((.*(mastodon|en.osm.town).*)\).*/)?.at(1) )
|
||||
Utils.AddLazyProperty(feat.properties, '_d', () => feat.properties._description?.replace(/</g,'<')?.replace(/>/g,'>') ?? '' )
|
||||
Utils.AddLazyProperty(feat.properties, '_mastodon_candidate_a', () => (feat => {const e = document.createElement('div');e.innerHTML = feat.properties._d;return Array.from(e.getElementsByTagName("a")).filter(a => a.href.match(/mastodon|en.osm.town/) !== null)[0]?.href }) (feat) )
|
||||
Utils.AddLazyProperty(feat.properties, '_mastodon_link', () => (feat => {const e = document.createElement('div');e.innerHTML = feat.properties._d;return Array.from(e.getElementsByTagName("a")).filter(a => a.getAttribute("rel")?.indexOf('me') >= 0)[0]?.href})(feat) )
|
||||
Utils.AddLazyProperty(feat.properties, '_mastodon_candidate', () => feat.properties._mastodon_candidate_md ?? feat.properties._mastodon_candidate_a )
|
||||
feat.properties['__current_backgroun'] = 'initial_value'
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue