Skip to content

Commit

Permalink
[montreal_ca] Updating to support different sectors (#3372)
Browse files Browse the repository at this point in the history
* Updating to support different sectors

Signed-off-by: fortinm <[email protected]>

* reformatting + fixing typhint + fixing 2 typos

* French not yet supported

Signed-off-by: fortinm <[email protected]>

* comment out Frensh HOW_TO_GET_ARGUMENTS_DESCRIPTION for now

* ./update_docu_links.py

---------

Signed-off-by: fortinm <[email protected]>
Co-authored-by: 5ila5 <[email protected]>
  • Loading branch information
mfortin and 5ila5 authored Jan 15, 2025
1 parent ffa7cc2 commit dd3a7c7
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 151 deletions.
12 changes: 10 additions & 2 deletions custom_components/waste_collection_schedule/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2566,9 +2566,13 @@
},
"args_montreal_ca": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. Mehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md",
"description": "Konfiguriere deinen Service Provider. \n\nDownload on your computer a &lt;a href=\"https://donnees.montreal.ca/dataset/2df0fa28-7a7b-46c6-912f-93b215bd201e/resource/5f3fb372-64e8-45f2-a406-f1614930305c/download/collecte-des-ordures-menageres.geojson\"&gt;Montreal GeoJSON file&lt;/a&gt;&lt;br/&gt;Visit https://geojson.io/&lt;br/&gt;Click on *Open* and select the Montreal GeoJSON file&lt;br/&gt;Find your sector on the map.\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md",
"data": {
"calendar_title": "Kalender Titel",
"bulky": "Bulky",
"food": "Food",
"green": "Green",
"recycling": "Recycling",
"sector": "Sector"
},
"data_description": {
Expand All @@ -2577,9 +2581,13 @@
},
"reconfigure_montreal_ca": {
"title": "Quelle Neu Konfigurieren",
"description": "Konfiguriere deinen Service Provider. Mehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md",
"description": "Konfiguriere deinen Service Provider. \n\nDownload on your computer a &lt;a href=\"https://donnees.montreal.ca/dataset/2df0fa28-7a7b-46c6-912f-93b215bd201e/resource/5f3fb372-64e8-45f2-a406-f1614930305c/download/collecte-des-ordures-menageres.geojson\"&gt;Montreal GeoJSON file&lt;/a&gt;&lt;br/&gt;Visit https://geojson.io/&lt;br/&gt;Click on *Open* and select the Montreal GeoJSON file&lt;br/&gt;Find your sector on the map.\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md",
"data": {
"calendar_title": "Kalender Titel",
"bulky": "Bulky",
"food": "Food",
"green": "Green",
"recycling": "Recycling",
"sector": "Sector"
},
"data_description": {}
Expand Down
31 changes: 25 additions & 6 deletions custom_components/waste_collection_schedule/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2587,23 +2587,42 @@
},
"args_montreal_ca": {
"title": "Configure Source",
"description": "Configure your service provider. More details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"description": "Configure your service provider. \n\nDownload on your computer a &lt;a href=\"https://donnees.montreal.ca/dataset/2df0fa28-7a7b-46c6-912f-93b215bd201e/resource/5f3fb372-64e8-45f2-a406-f1614930305c/download/collecte-des-ordures-menageres.geojson\"&gt;Montreal GeoJSON file&lt;/a&gt;&lt;br/&gt;Visit https://geojson.io/&lt;br/&gt;Click on *Open* and select the Montreal GeoJSON file&lt;br/&gt;Find your sector on the map.\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"data": {
"calendar_title": "Calendar Title",
"sector": "Sector"
"bulky": "Bulky items sector",
"food": "Food waste sector",
"green": "Greens and leafs sector",
"recycling": "Recycling sector",
"sector": "Waste sector"
},
"data_description": {
"calendar_title": "A more readable, or user-friendly, name for the waste calendar. If nothing is provided, the name returned by the source will be used."
"calendar_title": "A more readable, or user-friendly, name for the waste calendar. If nothing is provided, the name returned by the source will be used.",
"bulky": "If value is different from waste sector.",
"food": "If value is different from waste sector.",
"green": "If value is different from waste sector.",
"recycling": "If value is different from waste sector.",
"sector": "This is the default sector."
}
},
"reconfigure_montreal_ca": {
"title": "Reconfigure Source",
"description": "Configure your service provider. More details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"description": "Configure your service provider. \n\nDownload on your computer a &lt;a href=\"https://donnees.montreal.ca/dataset/2df0fa28-7a7b-46c6-912f-93b215bd201e/resource/5f3fb372-64e8-45f2-a406-f1614930305c/download/collecte-des-ordures-menageres.geojson\"&gt;Montreal GeoJSON file&lt;/a&gt;&lt;br/&gt;Visit https://geojson.io/&lt;br/&gt;Click on *Open* and select the Montreal GeoJSON file&lt;br/&gt;Find your sector on the map.\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"data": {
"calendar_title": "Calendar Title",
"sector": "Sector"
"bulky": "Bulky items sector",
"food": "Food waste sector",
"green": "Greens and leafs sector",
"recycling": "Recycling sector",
"sector": "Waste sector"
},
"data_description": {}
"data_description": {
"bulky": "If value is different from waste sector.",
"food": "If value is different from waste sector.",
"green": "If value is different from waste sector.",
"recycling": "If value is different from waste sector.",
"sector": "This is the default sector."
}
},
"args_publidata_ca": {
"title": "Configure Source",
Expand Down
12 changes: 10 additions & 2 deletions custom_components/waste_collection_schedule/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -2545,9 +2545,13 @@
},
"args_montreal_ca": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. Maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\nDownload on your computer a &lt;a href=\"https://donnees.montreal.ca/dataset/2df0fa28-7a7b-46c6-912f-93b215bd201e/resource/5f3fb372-64e8-45f2-a406-f1614930305c/download/collecte-des-ordures-menageres.geojson\"&gt;Montreal GeoJSON file&lt;/a&gt;&lt;br/&gt;Visit https://geojson.io/&lt;br/&gt;Click on *Open* and select the Montreal GeoJSON file&lt;br/&gt;Find your sector on the map.\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"data": {
"calendar_title": "Nome Calendario",
"bulky": "Bulky",
"food": "Food",
"green": "Green",
"recycling": "Recycling",
"sector": "Settore"
},
"data_description": {
Expand All @@ -2556,9 +2560,13 @@
},
"reconfigure_montreal_ca": {
"title": "Riconfigurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. Per maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\nDownload on your computer a &lt;a href=\"https://donnees.montreal.ca/dataset/2df0fa28-7a7b-46c6-912f-93b215bd201e/resource/5f3fb372-64e8-45f2-a406-f1614930305c/download/collecte-des-ordures-menageres.geojson\"&gt;Montreal GeoJSON file&lt;/a&gt;&lt;br/&gt;Visit https://geojson.io/&lt;br/&gt;Click on *Open* and select the Montreal GeoJSON file&lt;br/&gt;Find your sector on the map.\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/montreal_ca.md.",
"data": {
"calendar_title": "Nome Calendario",
"bulky": "Bulky",
"food": "Food",
"green": "Green",
"recycling": "Recycling",
"sector": "Settore"
},
"data_description": {}
Expand Down
Loading

0 comments on commit dd3a7c7

Please sign in to comment.