From ca613b5b110c418f67cb253d1f92228033b410cb Mon Sep 17 00:00:00 2001 From: RogueM Date: Wed, 2 Nov 2016 16:53:42 +0000 Subject: [PATCH] added Schematic to details view --- generate-html.py | 5 +++++ src/es/settings.yaml | 2 ++ src/fr/settings.yaml | 2 ++ src/it/settings.yaml | 2 ++ src/tr/settings.yaml | 2 ++ 5 files changed, 13 insertions(+) diff --git a/generate-html.py b/generate-html.py index 13b0a6a..98f8367 100755 --- a/generate-html.py +++ b/generate-html.py @@ -40,6 +40,7 @@ default_strings = { 'wiring_pi_pin': 'Wiring Pi pin {}', 'more_information': 'More Information', 'github_repository': 'GitHub Repository', + 'board_schematic': 'Schematic', 'buy_now': 'Buy Now', 'translate_msg': 'This page needs translating, can you help?

', 'browse_addons': 'Browse more HATs, pHATs and add-ons', @@ -206,6 +207,10 @@ def load_overlay(overlay): if 'github' in loaded: details.append('[{text}]({url})'.format(text=strings['github_repository'], url=loaded['github'])) + # A URL referencing the add-on board schematic + if 'schematic' in loaded: + details.append('[{text}]({url})'.format(text=strings['board_schematic'], url=loaded['schematic'])) + # A URL to a preferred place to buy the add-on board if 'buy' in loaded: details.append('[{text}]({url})'.format(text=strings['buy_now'], url=loaded['buy'])) diff --git a/src/es/settings.yaml b/src/es/settings.yaml index b8cbb8a..fd0fbbe 100644 --- a/src/es/settings.yaml +++ b/src/es/settings.yaml @@ -10,6 +10,8 @@ url_suffix: urls: GND: tierra strings: +- home: 'Home' +- boards: 'Boards' - details: 'Details' - group_other: 'otro' - form_undefined: 'Otro' diff --git a/src/fr/settings.yaml b/src/fr/settings.yaml index fa2fd89..7ee33ce 100644 --- a/src/fr/settings.yaml +++ b/src/fr/settings.yaml @@ -10,6 +10,8 @@ url_suffix: urls: GND: masse strings: +- home: 'Accueil' +- boards: 'Cartes' - details: 'Détails' - group_other: 'autre' - form_undefined: 'Autre' diff --git a/src/it/settings.yaml b/src/it/settings.yaml index 4c07a0e..a550663 100644 --- a/src/it/settings.yaml +++ b/src/it/settings.yaml @@ -10,6 +10,8 @@ url_suffix: urls: GND: massa strings: +- home: 'Home' +- boards: 'Boards' - details: 'Details' - group_other: 'Tutti' - form_undefined: 'Altro' diff --git a/src/tr/settings.yaml b/src/tr/settings.yaml index 16d4235..91ff1a6 100644 --- a/src/tr/settings.yaml +++ b/src/tr/settings.yaml @@ -10,6 +10,8 @@ url_suffix: '' urls: GND: toprak strings: +- home: 'Home' +- boards: 'Boards' - details: 'Details' - group_other: 'hepsi' - form_undefined: 'diğer'