Chore: updates and generated resources

This commit is contained in:
Pieter Vander Vennet 2023-11-09 16:31:23 +01:00
parent 85801d9bf1
commit 3439e88d38
10 changed files with 176 additions and 106 deletions

16
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "mapcomplete", "name": "mapcomplete",
"version": "0.34.0", "version": "0.34.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mapcomplete", "name": "mapcomplete",
"version": "0.34.0", "version": "0.34.4",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"dependencies": { "dependencies": {
"@rgossiaux/svelte-headlessui": "^1.0.2", "@rgossiaux/svelte-headlessui": "^1.0.2",
@ -4982,9 +4982,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001549", "version": "1.0.30001561",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001549.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001561.tgz",
"integrity": "sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA==", "integrity": "sha512-NTt0DNoKe958Q0BE0j0c1V9jbUzhBxHIEJy7asmGrpE0yG63KTV7PLHPnK2E1O9RsQrQ081I3NLuXGS6zht3cw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@ -17055,9 +17055,9 @@
"integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001549", "version": "1.0.30001561",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001549.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001561.tgz",
"integrity": "sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA==", "integrity": "sha512-NTt0DNoKe958Q0BE0j0c1V9jbUzhBxHIEJy7asmGrpE0yG63KTV7PLHPnK2E1O9RsQrQ081I3NLuXGS6zht3cw==",
"dev": true "dev": true
}, },
"canvg": { "canvg": {

View file

@ -127,8 +127,8 @@
"libphonenumber-js": "^1.10.8", "libphonenumber-js": "^1.10.8",
"lz-string": "^1.4.4", "lz-string": "^1.4.4",
"mangrove-reviews-typescript": "^1.1.0", "mangrove-reviews-typescript": "^1.1.0",
"nano-markdown": "^1.2.2",
"maplibre-gl": "^3.5.0", "maplibre-gl": "^3.5.0",
"nano-markdown": "^1.2.2",
"opening_hours": "^3.6.0", "opening_hours": "^3.6.0",
"osm-auth": "^2.2.0", "osm-auth": "^2.2.0",
"osmtogeojson": "^3.0.0-beta.5", "osmtogeojson": "^3.0.0-beta.5",

View file

@ -4,11 +4,39 @@ export class ThemeMetaTagging {
public static readonly themeName = "usersettings" public static readonly themeName = "usersettings"
public metaTaggging_for_usersettings(feat: { properties: Record<string, string> }) { 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, "_mastodon_candidate_md", () =>
Utils.AddLazyProperty(feat.properties, '_d', () => feat.properties._description?.replace(/&lt;/g,'<')?.replace(/&gt;/g,'>') ?? '' ) feat.properties._description
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) ) .match(/\[[^\]]*\]\((.*(mastodon|en.osm.town).*)\).*/)
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) ) ?.at(1)
Utils.AddLazyProperty(feat.properties, '_mastodon_candidate', () => feat.properties._mastodon_candidate_md ?? feat.properties._mastodon_candidate_a ) )
feat.properties['__current_backgroun'] = 'initial_value' Utils.AddLazyProperty(
feat.properties,
"_d",
() => feat.properties._description?.replace(/&lt;/g, "<")?.replace(/&gt;/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"
} }
} }

View file

@ -1,11 +1,11 @@
{ {
"contributors": [ "contributors": [
{ {
"commits": 6178, "commits": 6315,
"contributor": "Pieter Vander Vennet" "contributor": "Pieter Vander Vennet"
}, },
{ {
"commits": 417, "commits": 421,
"contributor": "Robin van der Linde" "contributor": "Robin van der Linde"
}, },
{ {
@ -232,6 +232,10 @@
"commits": 2, "commits": 2,
"contributor": "Stanislas Gueniffey" "contributor": "Stanislas Gueniffey"
}, },
{
"commits": 1,
"contributor": "Roman Zhukov"
},
{ {
"commits": 1, "commits": 1,
"contributor": "Ciprian" "contributor": "Ciprian"

View file

@ -502,6 +502,12 @@
"ur", "ur",
"en" "en"
], ],
"PL": [
"pl",
"be",
"pl",
"be"
],
"PS": [ "PS": [
"ar" "ar"
], ],

View file

@ -12,7 +12,7 @@
"gl": "lingua galega", "gl": "lingua galega",
"he": "עברית", "he": "עברית",
"hu": "magyar", "hu": "magyar",
"id": "Indonesia", "id": "bahasa Indonesia",
"it": "italiano", "it": "italiano",
"ja": "日本語", "ja": "日本語",
"nb_NO": "bokmål", "nb_NO": "bokmål",
@ -23,5 +23,6 @@
"ru": "русский язык", "ru": "русский язык",
"sl": "slovenščina", "sl": "slovenščina",
"sv": "svenska", "sv": "svenska",
"zh_Hant": "簡體中文" "zh_Hans": "简体中文",
"zh_Hant": "繁體中文"
} }

View file

@ -146,7 +146,7 @@
"gl": "Lingua adigue", "gl": "Lingua adigue",
"he": "אדיגית", "he": "אדיגית",
"hu": "adigei", "hu": "adigei",
"id": "Adyghe", "id": "bahasa Adyghe",
"it": "adighè", "it": "adighè",
"ja": "アディゲ語", "ja": "アディゲ語",
"nb_NO": "adygeisk", "nb_NO": "adygeisk",
@ -603,7 +603,7 @@
"gl": "árabe", "gl": "árabe",
"he": "ערבית", "he": "ערבית",
"hu": "arab", "hu": "arab",
"id": "Arab", "id": "bahasa Arab",
"it": "arabo", "it": "arabo",
"ja": "アラビア語", "ja": "アラビア語",
"nb_NO": "arabisk", "nb_NO": "arabisk",
@ -929,7 +929,7 @@
"fi": "Awadhin kieli", "fi": "Awadhin kieli",
"fr": "awadhi", "fr": "awadhi",
"gl": "Lingua awadhi", "gl": "Lingua awadhi",
"he": "אוודית", "he": "אוודהית",
"id": "Bahasa Awadhi", "id": "Bahasa Awadhi",
"it": "awadhi", "it": "awadhi",
"ja": "アワディー語", "ja": "アワディー語",
@ -1603,7 +1603,7 @@
"gl": "lingua bretoa", "gl": "lingua bretoa",
"he": "ברטונית", "he": "ברטונית",
"hu": "breton", "hu": "breton",
"id": "Breton", "id": "Bahasa Breton",
"it": "bretone", "it": "bretone",
"ja": "ブルトン語", "ja": "ブルトン語",
"nb_NO": "bretonsk", "nb_NO": "bretonsk",
@ -1772,7 +1772,7 @@
"gl": "Lingua buriata", "gl": "Lingua buriata",
"he": "בוריאטית", "he": "בוריאטית",
"hu": "burját", "hu": "burját",
"id": "Buryat", "id": "bahasa Buryat",
"it": "buriato", "it": "buriato",
"ja": "ブリヤート語", "ja": "ブリヤート語",
"nb_NO": "burjatisk", "nb_NO": "burjatisk",
@ -2316,7 +2316,7 @@
"gl": "Lingua tártara de Crimea", "gl": "Lingua tártara de Crimea",
"he": "טטרית של קרים", "he": "טטרית של קרים",
"hu": "krími tatár", "hu": "krími tatár",
"id": "Tatar Krimea", "id": "Bahasa Tatar Krimea",
"it": "tataro di Crimea", "it": "tataro di Crimea",
"ja": "クリミア・タタール語", "ja": "クリミア・タタール語",
"nb_NO": "krimtatarisk", "nb_NO": "krimtatarisk",
@ -2442,7 +2442,6 @@
"id": "Bahasa Chittagonia", "id": "Bahasa Chittagonia",
"it": "lingua chittagonian", "it": "lingua chittagonian",
"ja": "チッタゴン語", "ja": "チッタゴン語",
"nb_NO": "Chittagong",
"pl": "Język chatgaya", "pl": "Język chatgaya",
"pt": "Língua chittagong", "pt": "Língua chittagong",
"pt_BR": "Língua chittagong", "pt_BR": "Língua chittagong",
@ -2533,7 +2532,7 @@
"gl": "lingua dinamarquesa", "gl": "lingua dinamarquesa",
"he": "דנית", "he": "דנית",
"hu": "dán", "hu": "dán",
"id": "Denmark", "id": "bahasa Denmark",
"it": "danese", "it": "danese",
"ja": "デンマーク語", "ja": "デンマーク語",
"nb_NO": "dansk", "nb_NO": "dansk",
@ -2596,7 +2595,7 @@
"gl": "lingua alemá", "gl": "lingua alemá",
"he": "גרמנית", "he": "גרמנית",
"hu": "német", "hu": "német",
"id": "Jerman", "id": "bahasa Jerman",
"it": "tedesco", "it": "tedesco",
"ja": "ドイツ語", "ja": "ドイツ語",
"nb_NO": "tysk", "nb_NO": "tysk",
@ -2967,8 +2966,8 @@
"ru": "новогреческий язык", "ru": "новогреческий язык",
"sl": "novogrščina", "sl": "novogrščina",
"sv": "nygrekiska", "sv": "nygrekiska",
"zh_Hans": "现代希腊语", "zh_Hans": "希腊语",
"zh_Hant": "現代希臘語", "zh_Hant": "希臘語",
"_meta": { "_meta": {
"countries": [ "countries": [
"CY", "CY",
@ -3584,7 +3583,7 @@
"gl": "lingua feroesa", "gl": "lingua feroesa",
"he": "פארואזית", "he": "פארואזית",
"hu": "feröeri", "hu": "feröeri",
"id": "Faroe", "id": "bahasa Faroe",
"it": "faroese", "it": "faroese",
"ja": "フェロー語", "ja": "フェロー語",
"nb_NO": "færøysk", "nb_NO": "færøysk",
@ -4872,7 +4871,7 @@
"gl": "lingua indonesia", "gl": "lingua indonesia",
"he": "אינדונזית", "he": "אינדונזית",
"hu": "indonéz", "hu": "indonéz",
"id": "Indonesia", "id": "bahasa Indonesia",
"it": "indonesiano", "it": "indonesiano",
"ja": "インドネシア語", "ja": "インドネシア語",
"nb_NO": "indonesisk", "nb_NO": "indonesisk",
@ -5019,7 +5018,7 @@
"gl": "lingua islandesa", "gl": "lingua islandesa",
"he": "איסלנדית", "he": "איסלנדית",
"hu": "izlandi", "hu": "izlandi",
"id": "Islandia", "id": "bahasa Islandia",
"it": "islandese", "it": "islandese",
"ja": "アイスランド語", "ja": "アイスランド語",
"nb_NO": "islandsk", "nb_NO": "islandsk",
@ -5055,7 +5054,7 @@
"gl": "lingua italiana", "gl": "lingua italiana",
"he": "איטלקית", "he": "איטלקית",
"hu": "olasz", "hu": "olasz",
"id": "Italia", "id": "bahasa Italia",
"it": "italiano", "it": "italiano",
"ja": "イタリア語", "ja": "イタリア語",
"nb_NO": "italiensk", "nb_NO": "italiensk",
@ -5127,7 +5126,7 @@
"gl": "lingua xaponesa", "gl": "lingua xaponesa",
"he": "יפנית", "he": "יפנית",
"hu": "japán", "hu": "japán",
"id": "Jepang", "id": "bahasa Jepang",
"it": "giapponese", "it": "giapponese",
"ja": "日本語", "ja": "日本語",
"nb_NO": "japansk", "nb_NO": "japansk",
@ -5210,7 +5209,7 @@
"gl": "Lingua xavanesa", "gl": "Lingua xavanesa",
"he": "ג'אווה", "he": "ג'אווה",
"hu": "jávai", "hu": "jávai",
"id": "Jawa", "id": "bahasa Jawa",
"it": "giavanese", "it": "giavanese",
"ja": "ジャワ語", "ja": "ジャワ語",
"nb_NO": "javanesisk", "nb_NO": "javanesisk",
@ -5247,7 +5246,7 @@
"gl": "lingua xeorxiana", "gl": "lingua xeorxiana",
"he": "גאורגית", "he": "גאורגית",
"hu": "grúz", "hu": "grúz",
"id": "Georgia", "id": "Bahasa Georgia",
"it": "georgiano", "it": "georgiano",
"ja": "ジョージア語", "ja": "ジョージア語",
"nb_NO": "georgisk", "nb_NO": "georgisk",
@ -5282,7 +5281,7 @@
"gl": "Lingua karakalpak", "gl": "Lingua karakalpak",
"he": "קראקלפקית", "he": "קראקלפקית",
"hu": "karakalpak", "hu": "karakalpak",
"id": "Karakalpak", "id": "Bahasa Karakalpak",
"it": "karakalpako", "it": "karakalpako",
"ja": "カラカルパク語", "ja": "カラカルパク語",
"nl": "Karakalpaks", "nl": "Karakalpaks",
@ -5466,7 +5465,6 @@
"ja": "カインガング語", "ja": "カインガング語",
"nb_NO": "Kaingang", "nb_NO": "Kaingang",
"nl": "Kaingang", "nl": "Kaingang",
"pl": "Języki caingang",
"pt": "Língua caingangue", "pt": "Língua caingangue",
"pt_BR": "Língua kaingáng", "pt_BR": "Língua kaingáng",
"ru": "Каинганг", "ru": "Каинганг",
@ -5637,7 +5635,7 @@
"gl": "Lingua casaca", "gl": "Lingua casaca",
"he": "קזחית", "he": "קזחית",
"hu": "kazak", "hu": "kazak",
"id": "Kazakh", "id": "bahasa Kazakh",
"it": "kazako", "it": "kazako",
"ja": "カザフ語", "ja": "カザフ語",
"nb_NO": "kasakhisk", "nb_NO": "kasakhisk",
@ -5674,7 +5672,7 @@
"gl": "Lingua grenlandesa", "gl": "Lingua grenlandesa",
"he": "גרינלנדית", "he": "גרינלנדית",
"hu": "grönlandi", "hu": "grönlandi",
"id": "Greenland", "id": "bahasa Greenland",
"it": "groenlandese", "it": "groenlandese",
"ja": "グリーンランド語", "ja": "グリーンランド語",
"nb_NO": "grønlandsk", "nb_NO": "grønlandsk",
@ -5706,7 +5704,7 @@
"gl": "Lingua khmer", "gl": "Lingua khmer",
"he": "קמרית", "he": "קמרית",
"hu": "khmer", "hu": "khmer",
"id": "Khmer", "id": "bahasa Khmer",
"it": "khmer", "it": "khmer",
"ja": "クメール語", "ja": "クメール語",
"nb_NO": "khmer", "nb_NO": "khmer",
@ -5817,7 +5815,6 @@
"pl": "język komi-permiacki", "pl": "język komi-permiacki",
"pt": "Língua komi-permyak", "pt": "Língua komi-permyak",
"ru": "коми-пермяцкий язык", "ru": "коми-пермяцкий язык",
"sl": "permjaščina",
"sv": "komi-permjakiska", "sv": "komi-permjakiska",
"zh_Hans": "彼尔姆科米语", "zh_Hans": "彼尔姆科米语",
"zh_Hant": "彼爾姆科米語", "zh_Hant": "彼爾姆科米語",
@ -6027,32 +6024,32 @@
} }
}, },
"ku": { "ku": {
"ca": "kurd", "ca": "kurd del nord",
"cs": "kurdština", "cs": "kurmándží",
"da": "kurdisk", "da": "Kurmanji",
"de": "Kurdisch", "de": "Kurmandschi",
"en": "Kurdish", "en": "Kurmanji",
"eo": "kurda lingvo", "eo": "kurmanĝa lingvo",
"es": "kurdo", "es": "kurmanji",
"eu": "kurduera", "eu": "Kurmanji",
"fi": "kurdi", "fi": "Kurmandži",
"fr": "kurde", "fr": "kurmandji",
"gl": "lingua kurda", "gl": "lingua kurda",
"he": "כורדית", "he": "כורמנג'ית",
"hu": "kurd", "hu": "kurmandzsi",
"id": "Bahasa Kurdi", "id": "Kurmanji",
"it": "curdo", "it": "kurmanji",
"ja": "クルド語", "ja": "クルマンジー",
"nb_NO": "kurdisk", "nb_NO": "kurdisk",
"nl": "Koerdisch", "nl": "Kurmançi",
"pl": "język kurdyjski", "pl": "język kurmandżi",
"pt": "língua curda", "pt": "curmânji",
"pt_BR": "língua curda", "pt_BR": "Curmânji",
"ru": "курдские языки", "ru": "курманджи",
"sl": "kurdščina", "sl": "kurmandži",
"sv": "kurdiska", "sv": "nordkurdiska",
"zh_Hans": "库尔德语", "zh_Hans": "库尔德语",
"zh_Hant": "庫德語", "zh_Hant": "庫德語",
"_meta": { "_meta": {
"countries": [ "countries": [
"IQ" "IQ"
@ -6129,7 +6126,7 @@
"gl": "lingua komi", "gl": "lingua komi",
"he": "קומי", "he": "קומי",
"hu": "komi", "hu": "komi",
"id": "Komi", "id": "Bahasa Komi",
"it": "comi", "it": "comi",
"ja": "コミ語", "ja": "コミ語",
"nb_NO": "syrjensk", "nb_NO": "syrjensk",
@ -6137,7 +6134,6 @@
"pl": "język komi", "pl": "język komi",
"pt": "língua komi", "pt": "língua komi",
"ru": "коми язык", "ru": "коми язык",
"sl": "komijščina",
"sv": "komi", "sv": "komi",
"_meta": { "_meta": {
"dir": [ "dir": [
@ -6220,7 +6216,7 @@
"gl": "kirguiz", "gl": "kirguiz",
"he": "קירגיזית", "he": "קירגיזית",
"hu": "kirgiz", "hu": "kirgiz",
"id": "Kirgiz", "id": "bahasa Kirgiz",
"it": "kirghiso", "it": "kirghiso",
"ja": "キルギス語", "ja": "キルギス語",
"nb_NO": "kirgisisk", "nb_NO": "kirgisisk",
@ -6306,7 +6302,7 @@
"gl": "Lingua luxemburguesa", "gl": "Lingua luxemburguesa",
"he": "לוקסמבורגית", "he": "לוקסמבורגית",
"hu": "luxemburgi", "hu": "luxemburgi",
"id": "Luksemburg", "id": "bahasa Luksemburg",
"it": "lussemburghese", "it": "lussemburghese",
"ja": "ルクセンブルク語", "ja": "ルクセンブルク語",
"nb_NO": "luxembourgsk", "nb_NO": "luxembourgsk",
@ -6546,7 +6542,7 @@
"gl": "Lingua lombarda", "gl": "Lingua lombarda",
"he": "לומברד (שפה)", "he": "לומברד (שפה)",
"hu": "lombard", "hu": "lombard",
"id": "Lombard", "id": "bahasa Lombard",
"it": "lingua lombarda", "it": "lingua lombarda",
"ja": "ロンバルド語", "ja": "ロンバルド語",
"nb_NO": "lombardisk", "nb_NO": "lombardisk",
@ -6606,7 +6602,7 @@
"gl": "Lingua laosiana", "gl": "Lingua laosiana",
"he": "לאית", "he": "לאית",
"hu": "lao", "hu": "lao",
"id": "Lao", "id": "bahasa Lao",
"it": "lao", "it": "lao",
"ja": "ラーオ語", "ja": "ラーオ語",
"nb_NO": "laotisk", "nb_NO": "laotisk",
@ -6976,7 +6972,7 @@
"gl": "Lingua malgaxe", "gl": "Lingua malgaxe",
"he": "מלגשית", "he": "מלגשית",
"hu": "malgas", "hu": "malgas",
"id": "Malagasi", "id": "Bahasa Malagasi",
"it": "malgascio", "it": "malgascio",
"ja": "マダガスカル語", "ja": "マダガスカル語",
"nb_NO": "gassisk", "nb_NO": "gassisk",
@ -7162,7 +7158,7 @@
"gl": "Lingua macedonia", "gl": "Lingua macedonia",
"he": "מקדונית", "he": "מקדונית",
"hu": "macedón", "hu": "macedón",
"id": "Makedonia", "id": "bahasa Makedonia",
"it": "macedone", "it": "macedone",
"ja": "マケドニア語", "ja": "マケドニア語",
"nb_NO": "makedonsk", "nb_NO": "makedonsk",
@ -7230,7 +7226,7 @@
"gl": "Lingua mongol", "gl": "Lingua mongol",
"he": "מונגולית", "he": "מונגולית",
"hu": "mongol", "hu": "mongol",
"id": "Mongol", "id": "bahasa Mongol",
"it": "mongolo", "it": "mongolo",
"ja": "モンゴル語", "ja": "モンゴル語",
"nb_NO": "mongolsk", "nb_NO": "mongolsk",
@ -7471,7 +7467,7 @@
"gl": "lingua malaia", "gl": "lingua malaia",
"he": "מלאית", "he": "מלאית",
"hu": "maláj", "hu": "maláj",
"id": "Melayu", "id": "bahasa Melayu",
"it": "malese", "it": "malese",
"ja": "マレー語", "ja": "マレー語",
"nb_NO": "malayisk", "nb_NO": "malayisk",
@ -7649,7 +7645,7 @@
"gl": "birmano", "gl": "birmano",
"he": "בורמזית", "he": "בורמזית",
"hu": "burmai", "hu": "burmai",
"id": "Burma", "id": "bahasa Burma",
"it": "birmano", "it": "birmano",
"ja": "ビルマ語", "ja": "ビルマ語",
"nb_NO": "burmesisk", "nb_NO": "burmesisk",
@ -8111,7 +8107,7 @@
"gl": "lingua norueguesa", "gl": "lingua norueguesa",
"he": "נורווגית", "he": "נורווגית",
"hu": "norvég", "hu": "norvég",
"id": "Norwegia", "id": "bahasa Norwegia",
"it": "norvegese", "it": "norvegese",
"ja": "ノルウェー語", "ja": "ノルウェー語",
"nb_NO": "norsk", "nb_NO": "norsk",
@ -8438,12 +8434,12 @@
"eo": "olonec-karela lingvo", "eo": "olonec-karela lingvo",
"fi": "livvinkarjala", "fi": "livvinkarjala",
"fr": "olonetsien", "fr": "olonetsien",
"gl": "lingua livvi", "gl": "Lingua livvi",
"it": "lingua livvi", "it": "lingua livvi",
"ja": "リッヴィ語", "ja": "リッヴィ語",
"nb_NO": "livvisk", "nb_NO": "livvisk",
"nl": "Olonetsisch", "nl": "Olonetsisch",
"pl": "dialekt ołoniecki", "pl": "Dialekt ołoniecki",
"ru": "ливвиковское наречие", "ru": "ливвиковское наречие",
"sv": "livvi", "sv": "livvi",
"zh_Hant": "利維卡累利阿語", "zh_Hant": "利維卡累利阿語",
@ -8548,7 +8544,7 @@
"gl": "Lingua oseta", "gl": "Lingua oseta",
"he": "אוסטית", "he": "אוסטית",
"hu": "oszét", "hu": "oszét",
"id": "Ossetia", "id": "bahasa Ossetia",
"it": "osseto", "it": "osseto",
"ja": "オセット語", "ja": "オセット語",
"nb_NO": "ossetisk", "nb_NO": "ossetisk",
@ -8624,7 +8620,7 @@
"gl": "lingua punjabi (Shahmukhi)", "gl": "lingua punjabi (Shahmukhi)",
"he": "פנג'אבי (אלפבית שאהמוקי)", "he": "פנג'אבי (אלפבית שאהמוקי)",
"hu": "pandzsábi (Shahmukhi)", "hu": "pandzsábi (Shahmukhi)",
"id": "Punjab (Abjad Shahmukhi)", "id": "Bahasa Punjab (Abjad Shahmukhi)",
"it": "punjabi (Shahmukhī)", "it": "punjabi (Shahmukhī)",
"ja": "パンジャーブ語 (シャームキー文字)", "ja": "パンジャーブ語 (シャームキー文字)",
"nb_NO": "panjabi (Shahmukhi)", "nb_NO": "panjabi (Shahmukhi)",
@ -8849,7 +8845,6 @@
"pl": "Język neosalomoński", "pl": "Język neosalomoński",
"pt": "Língua pijin", "pt": "Língua pijin",
"ru": "Пиджин Соломоновых Островов", "ru": "Пиджин Соломоновых Островов",
"sl": "salomonski pidžin",
"sv": "pijin", "sv": "pijin",
"_meta": { "_meta": {
"dir": [ "dir": [
@ -8904,6 +8899,9 @@
"zh_Hans": "波兰语", "zh_Hans": "波兰语",
"zh_Hant": "波蘭語", "zh_Hant": "波蘭語",
"_meta": { "_meta": {
"countries": [
"PL"
],
"dir": [ "dir": [
"left-to-right" "left-to-right"
] ]
@ -9044,7 +9042,7 @@
"gl": "lingua portuguesa", "gl": "lingua portuguesa",
"he": "פורטוגזית", "he": "פורטוגזית",
"hu": "portugál", "hu": "portugál",
"id": "Portugis", "id": "bahasa Portugis",
"it": "portoghese", "it": "portoghese",
"ja": "ポルトガル語", "ja": "ポルトガル語",
"nb_NO": "portugisisk", "nb_NO": "portugisisk",
@ -9254,7 +9252,7 @@
"en": "Rakhine", "en": "Rakhine",
"fr": "arakanais", "fr": "arakanais",
"gl": "Lingua arakanesa", "gl": "Lingua arakanesa",
"id": "Rakhine", "id": "bahasa Rakhine",
"ja": "ラカイン語", "ja": "ラカイン語",
"nl": "Arakanees", "nl": "Arakanees",
"pl": "Język arakański", "pl": "Język arakański",
@ -9502,7 +9500,7 @@
"gl": "Lingua arromanesa", "gl": "Lingua arromanesa",
"he": "ארומנית", "he": "ארומנית",
"hu": "aromán", "hu": "aromán",
"id": "Arumania", "id": "Bahasa Arumania",
"it": "arumeno", "it": "arumeno",
"ja": "アルーマニア語", "ja": "アルーマニア語",
"nb_NO": "arumensk", "nb_NO": "arumensk",
@ -9897,7 +9895,7 @@
"ca": "taixelhit", "ca": "taixelhit",
"cs": "tašelhit", "cs": "tašelhit",
"de": "Taschelhit", "de": "Taschelhit",
"en": "Tachelhit", "en": "Shilha",
"eo": "ŝelha lingvo", "eo": "ŝelha lingvo",
"es": "chilha", "es": "chilha",
"fi": "Tašelhit", "fi": "Tašelhit",
@ -9997,7 +9995,7 @@
"pt": "Língua cingalesa", "pt": "Língua cingalesa",
"pt_BR": "Língua cingalesa", "pt_BR": "Língua cingalesa",
"ru": "сингальский язык", "ru": "сингальский язык",
"sl": "singalščina", "sl": "sinhalščina",
"sv": "singalesiska", "sv": "singalesiska",
"zh_Hant": "僧伽羅語", "zh_Hant": "僧伽羅語",
"_meta": { "_meta": {
@ -10457,7 +10455,7 @@
"gl": "Lingua albanesa", "gl": "Lingua albanesa",
"he": "אלבנית", "he": "אלבנית",
"hu": "albán", "hu": "albán",
"id": "Albania", "id": "Bahasa Albania",
"it": "albanese", "it": "albanese",
"ja": "アルバニア語", "ja": "アルバニア語",
"nb_NO": "albansk", "nb_NO": "albansk",
@ -10700,7 +10698,7 @@
"gl": "lingua sueca", "gl": "lingua sueca",
"he": "שוודית", "he": "שוודית",
"hu": "svéd", "hu": "svéd",
"id": "Swedia", "id": "bahasa Swedia",
"it": "svedese", "it": "svedese",
"ja": "スウェーデン語", "ja": "スウェーデン語",
"nb_NO": "svensk", "nb_NO": "svensk",
@ -10799,7 +10797,7 @@
"gl": "Lingua silesiana", "gl": "Lingua silesiana",
"he": "שלזית", "he": "שלזית",
"hu": "sziléziai", "hu": "sziléziai",
"id": "Silesia", "id": "bahasa Silesia",
"it": "slesiano", "it": "slesiano",
"ja": "シレジア語", "ja": "シレジア語",
"nb_NO": "schlesisk", "nb_NO": "schlesisk",
@ -10848,7 +10846,7 @@
"gl": "Lingua támil", "gl": "Lingua támil",
"he": "טמילית", "he": "טמילית",
"hu": "tamil", "hu": "tamil",
"id": "Tamil", "id": "Bahasa Tamil",
"it": "tamil", "it": "tamil",
"ja": "タミル語", "ja": "タミル語",
"nb_NO": "tamilsk", "nb_NO": "tamilsk",
@ -11035,7 +11033,7 @@
"gl": "lingua tailandesa", "gl": "lingua tailandesa",
"he": "תאית", "he": "תאית",
"hu": "thai", "hu": "thai",
"id": "Thai", "id": "bahasa Thai",
"it": "thailandese", "it": "thailandese",
"ja": "タイ語", "ja": "タイ語",
"nb_NO": "thai", "nb_NO": "thai",
@ -11105,7 +11103,7 @@
"gl": "Lingua turcomá", "gl": "Lingua turcomá",
"he": "טורקמנית", "he": "טורקמנית",
"hu": "türkmén", "hu": "türkmén",
"id": "Turkmen", "id": "bahasa Turkmen",
"it": "Turkmeno", "it": "Turkmeno",
"ja": "トルクメン語", "ja": "トルクメン語",
"nb_NO": "turkmensk", "nb_NO": "turkmensk",
@ -11633,7 +11631,7 @@
"gl": "Lingua uigur", "gl": "Lingua uigur",
"he": "אויגורית", "he": "אויגורית",
"hu": "ujgur", "hu": "ujgur",
"id": "Uighur", "id": "bahasa Uyghur",
"it": "uiguro", "it": "uiguro",
"ja": "ウイグル語", "ja": "ウイグル語",
"nb_NO": "uigurisk", "nb_NO": "uigurisk",
@ -11703,7 +11701,7 @@
"gl": "Lingua usbeka", "gl": "Lingua usbeka",
"he": "אוזבקית", "he": "אוזבקית",
"hu": "üzbég", "hu": "üzbég",
"id": "Uzbek", "id": "bahasa Uzbek",
"it": "uzbeco", "it": "uzbeco",
"ja": "ウズベク語", "ja": "ウズベク語",
"nb_NO": "usbekisk", "nb_NO": "usbekisk",
@ -12592,7 +12590,7 @@
"gl": "lingua chinesa", "gl": "lingua chinesa",
"he": "סינית", "he": "סינית",
"hu": "kínai", "hu": "kínai",
"id": "Tionghoa", "id": "bahasa Tionghoa",
"it": "cinese", "it": "cinese",
"ja": "中国語", "ja": "中国語",
"nb_NO": "kinesisk", "nb_NO": "kinesisk",
@ -12648,7 +12646,7 @@
] ]
} }
}, },
"zh_Hant": { "zh_Hans": {
"ca": "xinès simplificat", "ca": "xinès simplificat",
"cs": "zjednodušená čínština", "cs": "zjednodušená čínština",
"da": "forenklet kinesisk", "da": "forenklet kinesisk",
@ -12657,7 +12655,6 @@
"eo": "simpligita ĉina skribsistemo", "eo": "simpligita ĉina skribsistemo",
"es": "chino simplificado", "es": "chino simplificado",
"eu": "Txinera sinplifikatua", "eu": "Txinera sinplifikatua",
"fi": "perinteinen kiina",
"fr": "chinois simplifié", "fr": "chinois simplifié",
"gl": "chinés simplificado", "gl": "chinés simplificado",
"he": "סינית מפושטת", "he": "סינית מפושטת",
@ -12680,6 +12677,36 @@
] ]
} }
}, },
"zh_Hant": {
"ca": "xinès tradicional",
"cs": "čínština (tradiční)",
"da": "traditionel kinesisk",
"de": "traditionelles Chinesisch",
"en": "Traditional Chinese",
"eo": "ĉina lingvo de tradicia ortografio",
"es": "chino tradicional",
"eu": "Txinera tradizional",
"fi": "perinteinen kiina",
"fr": "chinois traditionnel",
"gl": "chinés tradicional",
"he": "סינית מסורתית",
"it": "cinese tradizionale",
"ja": "繁体字中国語",
"nb_NO": "tradisjonell kinesisk",
"nl": "traditioneel Chinees",
"pl": "język chiński tradycyjny",
"pt": "chinês tradicional",
"ru": "традиционный китайский",
"sl": "tradicionalna kitajščina",
"sv": "traditionell kinesiska",
"zh_Hans": "繁体中文",
"zh_Hant": "繁體中文",
"_meta": {
"dir": [
"left-to-right"
]
}
},
"zu": { "zu": {
"ca": "zulu", "ca": "zulu",
"cs": "zuluština", "cs": "zuluština",

View file

@ -1 +1 @@
{"sections":["# How to work with TagRenderings\n\nThe information box shows various attributes of the selected feature in a human friendly way.\n\nThis is done by a **tagRendering** which converts attributes into text.\n\nThis can be done by using **predefined options** (mappings) or with a **render**-string\n","# Predefined options\n\nA predefined option states that, `if` a certain tag is present, `then` a certain text should be shown.\n\nFor example, a playground may be lit or not.\nIn OpenStreetMap, this is encoded with the tag `lit=yes` or `lit=no`. We might want to show `This playground is lit at night` and `This playground is not lit at night` to users of MapComplete.\n\nThis is what this will look like in the interface:\n\n<img src=\"./assets/docs/PredefinedOption.png\"/>\n","# Substituting attributes\n\nIf none of the predefined options match, the string given in the `render`-field is used (under the question _\"What text should be rendered?\"_).\n\nA special property about all shown texts is that, **if the name of a key appears between braces, this will be replaced by the corresponding value**.\n\nFor example, if the object has tags `min_age=3` and the text to display is `Accessible to kids older than {min_age} years`, then this will be displayed to the user as **Accessible to kids older than 3 years**\n\nNote that this also works withing predifined options\n","# Special values\n\nSpecial components can be summoned by calling them. For example, the relevant wikipedia will be displayed by entering the text `{wikipedia()}`. A table with opening hours is displayed with `{opening_hours()}`. For a full reference, [see the documentation](../SpecialRenderings.md).\n","# Requesting data with predefined options\n\nThese renderings can be turned into a way to contribute data easily. If a **question** is provided, then these renderings will be asked if unknown or gain the pencil to make changes. \n\nA predefined option will show up as an option that can be picked.\n<img src=\"./assets/docs/QuestionPredefinedOptions.png\"/>\n","# Requesting data with an input field\n\nIt is also possible to have a text field. For this, the **key** to write into must be given (_What is the name of the attribute that should be written to?_), in this case `max_age`.\n<img src=\"./assets/docs/QuestionTextField.png\"/>\n","# Combining predefined options and freeform text\n\nA text field and predefined options can be combined. The contributor can then choose between a predefined option or filling out something.\n<img src=\"./assets/docs/QuestionCombined.png\"/>\n","# Selecting multiple values\n\nOne can set a question to allow multiple answers. This works with predefined options or a freeform text field.\n\n<img src=\"./assets/docs/QuestionMulti.png\"/>\n\nNote that these will be rendered as a list:\n\n<img src=\"./assets/docs/RenderMulti.png\"/>\n"]} {"sections":["# How to work with TagRenderings\n\nThe information box shows various attributes of the selected feature in a human friendly way.\n\nThis is done by a **tagRendering** which converts attributes into text.\n\nThis can be done by using **predefined options** (mappings) or with a **render**-string\n","# Predefined options\n\nA predefined option states that, `if` a certain tag is present, `then` a certain text should be shown.\n\nFor example, a playground may be lit or not.\nIn OpenStreetMap, this is encoded with the tag `lit=yes` or `lit=no`. We might want to show `This playground is lit at night` and `This playground is not lit at night` to users of MapComplete.\n\nThis is what this will look like in the interface:\n\n<img class=\"w-1/2\" src=\"./assets/docs/PredefinedOption.png\"/>\n","# Substituting attributes\n\nIf none of the predefined options match, the string given in the `render`-field is used (under the question _\"What text should be rendered?\"_).\n\nA special property about all shown texts is that, **if the name of a key appears between braces, this will be replaced by the corresponding value**.\n\nFor example, if the object has tags `min_age=3` and the text to display is `Accessible to kids older than {min_age} years`, then this will be displayed to the user as **Accessible to kids older than 3 years**\n\nNote that this also works withing predifined options\n","# Special values\n\nSpecial components can be summoned by calling them. For example, the relevant wikipedia will be displayed by entering the text `{wikipedia()}`. A table with opening hours is displayed with `{opening_hours()}`. For a full reference, [see the documentation](../SpecialRenderings.md).\n","# Requesting data with predefined options\n\nThese renderings can be turned into a way to contribute data easily. If a **question** is provided, then these renderings will be asked if unknown or gain the pencil to make changes. \n\nA predefined option will show up as an option that can be picked.\n<img class=\"w-1/2\" src=\"./assets/docs/QuestionPredefinedOptions.png\"/>\n","# Requesting data with an input field\n\nIt is also possible to have a text field. For this, the **key** to write into must be given (_What is the name of the attribute that should be written to?_), in this case `max_age`.\n<img class=\"w-1/2\" src=\"./assets/docs/QuestionTextField.png\"/>\n","# Combining predefined options and freeform text\n\nA text field and predefined options can be combined. The contributor can then choose between a predefined option or filling out something.\n<img class=\"w-1/2\" src=\"./assets/docs/QuestionCombined.png\"/>\n","# Selecting multiple values\n\nOne can set a question to allow multiple answers. This works with predefined options or a freeform text field.\n\n<img class=\"w-1/2\" src=\"./assets/docs/QuestionMulti.png\"/>\n\nNote that these will be rendered as a list:\n\n<img class=\"w-1/2\" src=\"./assets/docs/RenderMulti.png\"/>\n"]}

View file

@ -5,7 +5,7 @@
"contributor": "kjon" "contributor": "kjon"
}, },
{ {
"commits": 293, "commits": 294,
"contributor": "Pieter Vander Vennet" "contributor": "Pieter Vander Vennet"
}, },
{ {
@ -456,6 +456,10 @@
"commits": 2, "commits": 2,
"contributor": "Leo Alcaraz" "contributor": "Leo Alcaraz"
}, },
{
"commits": 1,
"contributor": "Henry00572"
},
{ {
"commits": 1, "commits": 1,
"contributor": "Julio Salas" "contributor": "Julio Salas"