Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Jul 9, 2019
1 parent 93c7cb9 commit f5934f5
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion mobileapp/package.json
Expand Up @@ -21,7 +21,7 @@
"cordova-support-android-plugin": "^0.3.7",
"cordova-support-google-services": "^1.1.0",
"cordova-universal-links-plugin": "^1.2.1",
"ejs": "^2.6.1",
"ejs": "^2.6.2",
"i18n": "^0.8.3"
},
"repository": {
Expand Down
7 changes: 2 additions & 5 deletions utils/config.py
Expand Up @@ -15,17 +15,14 @@ def relative_path(script_reference_path, rel_path):
# Read parser import list from config jsons
ZONES_CONFIG = json.load(open(relative_path(
__file__, '../config/zones.json')))
EXCHANGES_CONFIG = json.load(open(relative_path(
__file__, '../config/exchanges.json')))

# Read all zones
for zone_id, zone_config in ZONES_CONFIG.items():
if 'bounding_box' in zone_config:
ZONE_BOUNDING_BOXES[zone_id] = zone_config['bounding_box']

# Read parser import list from config jsons
ZONES_CONFIG = json.load(open(relative_path(
__file__, '../config/zones.json')))
EXCHANGES_CONFIG = json.load(open(relative_path(
__file__, '../config/exchanges.json')))
ZONE_NEIGHBOURS = {}
for k, v in EXCHANGES_CONFIG.items():
zone_names = k.split('->')
Expand Down
2 changes: 1 addition & 1 deletion web/locales/cs.json
Expand Up @@ -183,7 +183,7 @@
"whoAreYou-question": "Kdo jste?",
"whoAreYou-answer": "ElectricityMap je vyvíjená a udržována společností <a href=\"https://www.tmrow.com/\" target=\"_blank\">Tomorrow</a>, malým dánsko-francouzským startupem. Naším cílem je pomoci lidstvu dosáhnout udržitelný stav pomocí kvantifikace dopadů a podpory rozhodování s velkými dopady na klima v našem každodenním životě.",
"feedback-question": "Můžu vám nechat zpětnou vazbu?",
"feedback-answer": "Prosím, udělejte to! Můžete vyplnit <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">náš formulář</a> nebo <a href=\"mailto:hello@tmrow.com\">nám poslat email!</a>",
"feedback-answer": "Prosím, udělejte to! Můžete vyplnit <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">náš formulář</a> nebo <a href=\"mailto:electricitymap@tmrow.com\">nám poslat email!</a>",
"contribute-question": "Můžu se zapojit do vašeho projektu?",
"contribute-answer": "Ano! ElectricityMap je open-source projekt. To znamená, že funguje díky našim dobrovolným přispěvatelům. Když chcete pomoci při vývoji mapy - přidáváním datových zdrojů pro nové oblasti, přidáváním nových funkcionalit, nebo opravováním chyb, přidejte se na náš <a href=\"https://github.com/corradio/electricitymap/\" target=\"_blank\">github</a>.",
"workTogether-question": "Můžeme pracovat společně?",
Expand Down
2 changes: 1 addition & 1 deletion web/locales/de.json
Expand Up @@ -184,7 +184,7 @@
"whoAreYou-question": "Wer sind Sie?",
"whoAreYou-answer": "Die electricityMap wird entwickelt und gepflegt von <a href=\"https://www.tmrow.com/\" target=\"_blank\">Tomorrow</a>, einem dänisch/französischen Start-up-Unternehmen. Unser Ziel ist es, der Menschheit zu helfen, einen nachhaltigen Existenzzustand zu erreichen, indem wir die Klimaauswirkungen unserer täglichen Entscheidungen quantifizieren und allgemein zugänglich machen.",
"feedback-question": "Kann ich Ihnen Feedback geben?",
"feedback-answer": "Bitte tun Sie das! Bitte füllen Sie <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">unser Feedback-Formular</a> aus oder <a href=\"mailto:hello@tmrow.com\">senden Sie uns eine E-Mail!</a>",
"feedback-answer": "Bitte tun Sie das! Bitte füllen Sie <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">unser Feedback-Formular</a> aus oder <a href=\"mailto:hello@electricitymap.com\">senden Sie uns eine E-Mail!</a>",
"contribute-question": "Kann ich zu Ihrem Projekt beitragen?",
"contribute-answer": "Ja, gerne! Die electricityMap ist ein Open-Source-Projekt, das von unseren ehrenamtlichen Mitwirkenden ermöglicht wird. Wenn Sie bei der Entwicklung der Karte helfen wollen, indem Sie entweder Datenquellen für neue Bereiche hinzufügen, neue Funktionen hinzufügen oder Fehler beheben, können Sie sich uns gerne unserem <a href=\"https://github.com/corradio/electricitymap/\" target=\"_blank\">Github</a> anschließen.",
"workTogether-question": "Können wir zusammenarbeiten?",
Expand Down
2 changes: 1 addition & 1 deletion web/locales/en.json
Expand Up @@ -186,7 +186,7 @@
"whoAreYou-question": "Who are you?",
"whoAreYou-answer": "The Electricity Map is developed and maintained by <a href=\"https://www.tmrow.com/\" target=\"_blank\">Tomorrow</a>, a small Danish/French start-up company. Our goal is to help humanity reach a sustainable state of existence by quantifying, and making widely accessible, the climate impact of the daily choices we make.",
"feedback-question": "Can I give you some feedback?",
"feedback-answer": "Please do! Please fill out <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">our feedback form</a> or <a href=\"mailto:hello@tmrow.com\">send us an email!</a>",
"feedback-answer": "Please do! Please fill out <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">our feedback form</a> or <a href=\"mailto:hello@electricity.com\">send us an email!</a>",
"contribute-question": "Can I contribute to your project?",
"contribute-answer": " Yes! The Electricity Map is an open-source project, made possible by our volunteer contributors. If you want to help develop the map, either by adding data sources for new areas, adding new features or fixing bugs, feel free to join us in our <a href=\"https://github.com/corradio/electricitymap/\" target=\"_blank\">github</a>.",
"workTogether-question": "Can we work together?",
Expand Down
2 changes: 1 addition & 1 deletion web/locales/fr.json
Expand Up @@ -177,7 +177,7 @@
"whoAreYou-question": "Qui êtes-vous ?",
"whoAreYou-answer": "La carte de l’électricité est développée et gérée par <a href=\"https://www.tmrow.com/\" target=\"_blank\">Tomorrow</a>, une petite entreprise franco-danoise. Notre objectif est d'aider l'humanité à atteindre un état d'existence durable en quantifiant et en rendant largement accessible l'impact sur le climat des choix quotidiens que nous faisons.",
"feedback-question": "Puis-je vous faire des commentaire ?",
"feedback-answer": "Faites donc ! Remplissez <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">notre formulaire de réponse</a> ou <a href=\"mailto:hello@tmrow.com\">envoyez-nous un email</a> !",
"feedback-answer": "Faites donc ! Remplissez <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">notre formulaire de réponse</a> ou <a href=\"mailto:electricitymap@tmrow.com\">envoyez-nous un email</a> !",
"contribute-question": "Puis-je contribuer à votre projet ?",
"contribute-answer": "Bien sûr ! Electricity Map est un projet open-source, rendu possible par nos contributeurs bénévoles. Si vous souhaitez contribuer au développement de la carte, en ajoutant des sources de données pour de nouvelles zones, en ajoutant de nouvelles fonctionnalités ou en corrigeant des bugs, n'hésitez pas à nous rejoindre sur notre <a href=\"https://github.com/corradio/electricitymap/\" target=\"_ blank\"> github </a>.",
"workTogether-question": "Pouvons-nous travailler ensemble ?",
Expand Down
2 changes: 1 addition & 1 deletion web/locales/it.json
Expand Up @@ -186,7 +186,7 @@
"whoAreYou-question": "Chi siete?",
"whoAreYou-answer": "Electricity Map è sviluppata e mantenuta da <a href=\"https://www.tmrow.com/\" target=\"_blank\">Tomorrow</a>, una piccola start-up francodanese. Il nostro obiettivo è aiutare l'umanità a raggiungere uno stato di esistenza sostenibile quantificando, e rendendo largamente accessibile l'accesso alla visione dell'impatto climatico che hanno le nostre scelte di tutti i giorni.",
"feedback-question": "Posso darvi un parere?",
"feedback-answer": "Certamente! Riempi il <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">nostro modello</a> o <a href=\"mailto:hello@tmrow.com\">mandaci una email!</a>",
"feedback-answer": "Certamente! Riempi il <a href=\"https://docs.google.com/forms/d/e/1FAIpQLSc-_sRr3mmhe0bifigGxfAzgh97-pJFcwpwWZGLFc6vvu8laA/viewform?c=0&w=1\" target=\"_blank\">nostro modello</a> o <a href=\"mailto:hello@electricitymap.com\">mandaci una email!</a>",
"contribute-question": "Posso contribuire al progetto?",
"contribute-answer": "Sì! Electricity Map è un progetto open-source, reso possibile dai nostri contributori volontari. Se vuoi aiutarci a sviluppare la mappa, sia aggiungendo fonti per nuove aree, sia aggiungendo nuove funzioni o risolvendo bug, sentiti libero di unirti al nostro <a href=\"https://github.com/corradio/electricitymap/\" target=\"_blank\">github</a>.",
"workTogether-question": "Possiamo lavorare insieme?",
Expand Down
2 changes: 1 addition & 1 deletion web/locales/sk.json
Expand Up @@ -183,7 +183,7 @@
"contribute-question": "Možem sa zapojiť do vášho projektu?",
"contribute-answer": "Áno! ElectricityMap je open-source projekt, to znamená, že funguje vďaka našim dobrovoľným prispievateľom. Ak chcete pomôcť pri vývoji mapy - pridávaním dátových zdrojov pre nové oblasti, pridávaním nových funkcionalít alebo opravovaním bugov, pridajte sa na náš <a href=\"https://github.com/corradio/electricitymap/\" target=\"_blank\">github</a>.",
"workTogether-question": "Môžeme pracovať spoločne?",
"workTogether-answer": "Aktívne hľadáme nové príležitosti k spolupráci. <a href=\"mailto:hello@tmrow.com\">Pošlite nám email!</a>",
"workTogether-answer": "Aktívne hľadáme nové príležitosti k spolupráci. <a href=\"mailto:hello@electricitymap.com\">Pošlite nám email!</a>",
"disclaimer-question": "Oznámenie",
"disclaimer-answer": "<a href=\"https://www.tmrow.com/\" target=\"_blank\">Tomorrow</a> publikuje dáta a obrázky na <a href=\"https://www.electricitymap.org/\" target=\"_blank\">electricityMap</a> pre informačné účely. Nezaručuje správnosť ani žiadnu formu záruky a vyhradzuje si právo kedykoľvek zmeniť obsah alebo odstrániť časti bez toho, že by o tom musel informovať. Tomorrow nepreberá žiadnu zodpovednosť za akékoľvek škody alebo výdavky, ktoré by mohli vzniknúť v dôsledku nepresnosti, neúplnosti, neopatrnosti alebo zastaranosti electricityMap alebo informácií ziskýnych z nej. Nie je dovolené zahrnúť túto webovú stránku alebo jej jednotlivé prvky do inej webovej stránky bez formálneho predchádzajúceho písomného súhlasu.<br><br> Všetky práva duševného vlastníctva patria oprávneným majiteľom a poskytovateľom licencií. Kopírovanie, distribúcia a akýkoľvek iné použitie týchto materiálov, najmä energetických údajov, nie je povolené bez písomného súhlasu Tomorrow, s výnimkou prípadov, ktoré sú ustanovené inak v predpisoch povinného práva (ako je právo citovať), pokiaľ nie je pre konkrétne materiály uvedené inak. <br><br> Toto vylúčenie zodpovednosti môže byť z času na čas aktualizované."
},
Expand Down
4 changes: 2 additions & 2 deletions web/topogen.sh
Expand Up @@ -14,13 +14,13 @@ mkdir -p build

if [ ! -e "build/${COUNTRIES_FILENAME}.zip" ]; then
echo "Downloading ${COUNTRIES_FILENAME}.zip"
curl -z build/${COUNTRIES_FILENAME}.zip -o build/${COUNTRIES_FILENAME}.zip http://naciscdn.org/naturalearth/${RESOLUTION}/cultural/${COUNTRIES_FILENAME}.zip
curl -z build/${COUNTRIES_FILENAME}.zip -o build/${COUNTRIES_FILENAME}.zip https://naciscdn.org/naturalearth/${RESOLUTION}/cultural/${COUNTRIES_FILENAME}.zip
fi
unzip -od build build/${COUNTRIES_FILENAME}.zip

if [ ! -e "build/${STATES_FILENAME}.zip" ]; then
echo "Downloading ${STATES_FILENAME}.zip"
curl -z build/${STATES_FILENAME}.zip -o build/${STATES_FILENAME}.zip http://naciscdn.org/naturalearth/${RESOLUTION}/cultural/${STATES_FILENAME}.zip
curl -z build/${STATES_FILENAME}.zip -o build/${STATES_FILENAME}.zip https://naciscdn.org/naturalearth/${RESOLUTION}/cultural/${STATES_FILENAME}.zip
fi
unzip -od build build/${STATES_FILENAME}.zip

Expand Down

0 comments on commit f5934f5

Please sign in to comment.