forked from MapComplete/MapComplete
Fix: remove ghost bike translations from translation files and resync them, should fix the build
This commit is contained in:
parent
10e0e27778
commit
0487497e17
37 changed files with 1454 additions and 436 deletions
File diff suppressed because it is too large
Load diff
|
@ -130,7 +130,10 @@
|
|||
},
|
||||
"freeform": {
|
||||
"key": "subject",
|
||||
"addExtraTags": ["noname=","name="]
|
||||
"addExtraTags": [
|
||||
"noname=",
|
||||
"name="
|
||||
]
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
|
@ -155,7 +158,10 @@
|
|||
"fr": "Aucun nom n'est marqué sur le vélo",
|
||||
"ca": "No hi ha cap nom marcat a la bicicleta"
|
||||
},
|
||||
"addExtraTags": ["name=","subject="]
|
||||
"addExtraTags": [
|
||||
"name=",
|
||||
"subject="
|
||||
]
|
||||
}
|
||||
],
|
||||
"id": "ghost_bike-name",
|
||||
|
|
|
@ -3152,7 +3152,7 @@
|
|||
},
|
||||
"ghost_bike-name": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"1": {
|
||||
"then": "No hi ha cap nom marcat a la bicicleta"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5047,12 +5047,15 @@
|
|||
"ghost_bike-name": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Im Gedenken an {name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Am Fahrrad ist kein Name angegeben"
|
||||
}
|
||||
},
|
||||
"question": "An wen erinnert dieses Geisterrad?",
|
||||
"questionHint": "Bitte respektieren Sie die Privatsphäre - geben Sie den Namen nur an, wenn er weit verbreitet oder auf dem Fahrrad markiert ist. Den Familiennamen können Sie weglassen.",
|
||||
"render": "Im Gedenken an {name}"
|
||||
"render": "Im Gedenken an {subject}"
|
||||
},
|
||||
"ghost_bike-source": {
|
||||
"question": "Auf welcher Webseite kann man mehr Informationen über das Geisterrad oder den Unfall finden?",
|
||||
|
@ -5066,6 +5069,9 @@
|
|||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Geisterrad im Gedenken an {subject}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Geisterrad im Gedenken an {name}"
|
||||
}
|
||||
},
|
||||
|
@ -5624,6 +5630,23 @@
|
|||
},
|
||||
"question": "Auf welchen Daten basiert diese Karte?",
|
||||
"render": "Diese Karte basiert auf {map_source}"
|
||||
},
|
||||
"map_size": {
|
||||
"mappings": {
|
||||
"1": {
|
||||
"then": "Örtlichkeit (z.B. Burg)"
|
||||
},
|
||||
"3": {
|
||||
"then": "Stadt"
|
||||
},
|
||||
"4": {
|
||||
"then": "Region"
|
||||
}
|
||||
},
|
||||
"question": "Was wird von der Fläche abgedeckt?"
|
||||
},
|
||||
"map_type": {
|
||||
"question": "Was für eine Karte ist das?"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
|
|
|
@ -5047,12 +5047,15 @@
|
|||
"ghost_bike-name": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "In remembrance of {name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "No name is marked on the bike"
|
||||
}
|
||||
},
|
||||
"question": "Whom is remembered by this ghost bike?",
|
||||
"questionHint": "Please respect privacy - only fill out the name if it is widely published or marked on the cycle. Opt to leave out the family name.",
|
||||
"render": "In remembrance of {name}"
|
||||
"render": "In remembrance of {subject}"
|
||||
},
|
||||
"ghost_bike-source": {
|
||||
"question": "On what webpage can one find more info about the ghost bike or the accident?",
|
||||
|
@ -5066,6 +5069,9 @@
|
|||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Ghost bike in the remembrance of {subject}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Ghost bike in the remembrance of {name}"
|
||||
}
|
||||
},
|
||||
|
@ -5624,6 +5630,43 @@
|
|||
},
|
||||
"question": "On which data is this map based?",
|
||||
"render": "This map is based on {map_source}"
|
||||
},
|
||||
"map_size": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "A map of the romms within a building"
|
||||
},
|
||||
"1": {
|
||||
"then": "A map of special site, like of a historical castle, a park, a campus, a forest, ...."
|
||||
},
|
||||
"2": {
|
||||
"then": "A map showing the village or town"
|
||||
},
|
||||
"3": {
|
||||
"then": " A map of a city."
|
||||
},
|
||||
"4": {
|
||||
"then": "The map of an entire region, showing multiple cities and villages"
|
||||
}
|
||||
},
|
||||
"question": "What is the size of the shown area on the map?"
|
||||
},
|
||||
"map_type": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Topographical map <p class='subtle'>The map contains contour lines. </p>"
|
||||
},
|
||||
"1": {
|
||||
"then": "A map with all streets or ways of an area. <p class='subtle'>The streets are mostly named; the angles, distances etc. are accurate</p>"
|
||||
},
|
||||
"2": {
|
||||
"then": "This is a schematic map. <p class='subtle'>A sketched map with only important ways and POIs. The angles, distances etc. are merely illustrative, not accurate.</p> "
|
||||
},
|
||||
"3": {
|
||||
"then": "This is a toposcope. <p class='subtle'>A marker erected on high places which indicates the direction to notable landscape features which can be seen from that point<p>"
|
||||
}
|
||||
},
|
||||
"question": "What type of map is shown?"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
|
@ -5843,6 +5886,17 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"memorial": {
|
||||
"tagRenderings": {
|
||||
"inscription": {
|
||||
"question": "What is the inscription of this plaque?",
|
||||
"render": "The inscription on this plaque reads: <p><i>{inscription}<i></p>"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"render": "Memorial plaque"
|
||||
}
|
||||
},
|
||||
"nature_reserve": {
|
||||
"description": "A nature reserve is an area where nature can take its course",
|
||||
"filter": {
|
||||
|
@ -6842,10 +6896,30 @@
|
|||
"public_bookcase": {
|
||||
"description": "A streetside cabinet with books, accessible to anyone",
|
||||
"filter": {
|
||||
"0": {
|
||||
"options": {
|
||||
"0": {
|
||||
"question": "Has children books"
|
||||
}
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"options": {
|
||||
"0": {
|
||||
"question": "Has books for adults"
|
||||
}
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"options": {
|
||||
"0": {
|
||||
"question": "Indoor or outdoor"
|
||||
},
|
||||
"1": {
|
||||
"question": "Located indoors"
|
||||
},
|
||||
"2": {
|
||||
"question": "Located outdoors"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3533,12 +3533,15 @@
|
|||
"ghost_bike-name": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "En souvenir de {name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Aucun nom n'est marqué sur le vélo"
|
||||
}
|
||||
},
|
||||
"question": "À qui est dédié ce vélo fantôme ?",
|
||||
"questionHint": "Veuillez respecter la vie privée – ajoutez le nom seulement s'il est largement publié ou marqué sur le vélo. Choisissez de ne pas indiquer le nom de famille ",
|
||||
"render": "En souvenir de {name}"
|
||||
"render": "En souvenir de {subject}"
|
||||
},
|
||||
"ghost_bike-source": {
|
||||
"question": "Sur quelle page web peut-on trouver plus d'informations sur le Vélo fantôme ou l'accident ?",
|
||||
|
@ -3552,6 +3555,9 @@
|
|||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Vélo fantôme en souvenir de {subject}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Vélo fantôme en souvenir de {name}"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1332,12 +1332,15 @@
|
|||
"ghost_bike-name": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "In ricordo di {name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Nessun nome scritto sulla bici"
|
||||
}
|
||||
},
|
||||
"question": "A chi è dedicata questa bici fantasma?",
|
||||
"questionHint": "Rispetta la privacy (compila solo il nome se questo è stato ampiamente pubblicato o se è scritto sulla bici). Decidi se è il caso di non inserire il cognome.",
|
||||
"render": "In ricordo di {name}"
|
||||
"render": "In ricordo di {subject}"
|
||||
},
|
||||
"ghost_bike-source": {
|
||||
"question": "In quale pagina web si possono trovare informazioni sulla bici fantasma o l’incidente?",
|
||||
|
@ -1351,6 +1354,9 @@
|
|||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Bici fantasma in ricordo di {subject}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Bici fantasma in ricordo di {name}"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -4823,12 +4823,15 @@
|
|||
"ghost_bike-name": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Ter nagedachtenis van {name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "De naam is niet aangeduid op de fiets"
|
||||
}
|
||||
},
|
||||
"question": "Aan wie is deze witte fiets een eerbetoon?",
|
||||
"questionHint": "Respecteer privacy - voeg enkel een naam toe indien die op de fiets staat of gepubliceerd is. Eventueel voeg je enkel de voornaam toe.",
|
||||
"render": "Ter nagedachtenis van {name}"
|
||||
"render": "Ter nagedachtenis van {subject}"
|
||||
},
|
||||
"ghost_bike-source": {
|
||||
"question": "Op welke website kan men meer informatie vinden over de Witte fiets of over het ongeval?",
|
||||
|
@ -4842,6 +4845,9 @@
|
|||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Witte fiets ter nagedachtenis van {subject}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Witte fiets ter nagedachtenis van {name}"
|
||||
}
|
||||
},
|
||||
|
@ -6518,10 +6524,30 @@
|
|||
"public_bookcase": {
|
||||
"description": "Een straatkastje met boeken voor iedereen",
|
||||
"filter": {
|
||||
"0": {
|
||||
"options": {
|
||||
"0": {
|
||||
"question": "Kinderboeken aanwezig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"options": {
|
||||
"0": {
|
||||
"question": "Boeken voor volwassenen aanwezig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"options": {
|
||||
"0": {
|
||||
"question": "Binnen of buiten"
|
||||
},
|
||||
"1": {
|
||||
"question": "Bevindt zich binnen"
|
||||
},
|
||||
"2": {
|
||||
"question": "Bevindt zich buiten"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -988,7 +988,12 @@
|
|||
"render": "<i>{inscription}</i>"
|
||||
},
|
||||
"ghost_bike-name": {
|
||||
"render": "В знак памяти о {name}"
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "В знак памяти о {name}"
|
||||
}
|
||||
},
|
||||
"render": "В знак памяти о {subject}"
|
||||
},
|
||||
"ghost_bike-source": {
|
||||
"render": "<a href='{source}' target='_blank'>Доступна более подробная информация</a>"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Er der stadig noget relevant, du ikke kunne give i de foregående spørgsmål? Tilføj det her.",
|
||||
"questionHint": "Gentag ikke allerede nævnte fakta"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"dog-access": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Mayroon pa bang mga bagay na nau-ugnay at hindi mo maibigay sa mga nakaraang tanong? Idagdag dito.",
|
||||
"questionHint": "Huwag ulitin ang mga nai-saad na"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"website": {
|
||||
"question": "Cal é a páxina web de {title()}?"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Van-e még valami lényeges, amit nem tudott megadni az előző kérdésekben? Itt megteheti.",
|
||||
"questionHint": "Ne ismételjen meg már megadott tényeket"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "C'è ancora qualche informazione importante che non è stato possibile fornire nelle domande precedenti? Aggiungila qui.",
|
||||
"questionHint": "Non ripetere informazioni già fornite"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "前の質問で伝えきれなかった関連事項がまだありますか?ここに追加してください。",
|
||||
"questionHint": "今後表示しない"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"dog-access": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"denominations-coins": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Ainda há algo de relevante que não tenha podido dar nas perguntas anteriores? Adicione-o aqui.",
|
||||
"questionHint": "Não repita factos já declarados"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Ainda há algo de relevante que não pôde dar nas perguntas anteriores? Adicione aqui.",
|
||||
"questionHint": " Não repita fatos já declarados"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Есть ли ещё что-то важное, о чём вы не смогли рассказать в предыдущих вопросах? Добавьте это здесь.",
|
||||
"questionHint": "Не повторяйте уже изложенные факты"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Ali je še kaj pomembnega, česar niste mogli povedati v prejšnjih vprašanjih? Dopišite tukaj.",
|
||||
"questionHint": "Ne ponavljajte že navedenih dejstev"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "Finns det fortfarande någonting relevant som du inte kunde ge i de föregående frågorna? Lägg till det här.",
|
||||
"questionHint": "Repetera inte redan angivna fakta"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"dog-access": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"shared_questions": {
|
||||
"questions": {
|
||||
"description": {
|
||||
"question": "有什麼相關的資訊你無法在先前的問題回應的嗎?請加在這邊吧。",
|
||||
"questionHint": "不要重覆答覆已經知道的事情"
|
||||
|
|
|
@ -408,6 +408,45 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"override": {
|
||||
"+tagRenderings": {
|
||||
"0": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "This shop repairs climbing shoes"
|
||||
},
|
||||
"1": {
|
||||
"then": "This shop does not repair climbing shoes"
|
||||
}
|
||||
},
|
||||
"question": "Does this shoe repair shop repair climbing shoes?"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"override": {
|
||||
"+tagRenderings": {
|
||||
"0": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "This shop repairs climbing shoes"
|
||||
},
|
||||
"1": {
|
||||
"then": "This shop does not repair climbing shoes"
|
||||
}
|
||||
},
|
||||
"question": "Does this shoe repair shop also repair clibming shoes?"
|
||||
}
|
||||
},
|
||||
"=presets": {
|
||||
"0": {
|
||||
"title": "a shoe repair shop"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "Climbing gyms, clubs and spots"
|
||||
|
|
|
@ -3,15 +3,30 @@ import { Utils } from "../Utils"
|
|||
import * as fs from "fs"
|
||||
|
||||
async function main(args: string[]) {
|
||||
let directory = "./langs"
|
||||
|
||||
{
|
||||
const dirs = ["layers", "themes", "shared-questions"]
|
||||
for (const dir of dirs) {
|
||||
const layerIndex = args.findIndex((s) => s === "--" + dir)
|
||||
if (layerIndex >= 0) {
|
||||
directory = "./langs/" + dir
|
||||
args.splice(layerIndex, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (args.length !== 1) {
|
||||
console.log(
|
||||
"Usage: first argument is the fully qualified key of the string to remove. Only removes translations in the core translations"
|
||||
"Usage: first argument is the fully qualified key of the string to remove. Removes translations in the core translations, unless '--layers' or '--themes' is given"
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
// Path within the JSON which will be removed - not the path in the filesystem!
|
||||
const path = args[0].split(".")
|
||||
console.log("Removing translation string ", path, "from the general translations")
|
||||
const files = ScriptUtils.readDirRecSync("./langs", 1).filter((f) => f.endsWith(".json"))
|
||||
const files = ScriptUtils.readDirRecSync(directory, 1).filter((f) => f.endsWith(".json"))
|
||||
for (const file of files) {
|
||||
const json = JSON.parse(fs.readFileSync(file, { encoding: "utf-8" }))
|
||||
Utils.WalkPath(path, json, (_) => undefined)
|
||||
|
|
Loading…
Reference in a new issue