added Schematic to details view

This commit is contained in:
RogueM 2016-11-02 16:53:42 +00:00
parent 16e8d6dffa
commit ca613b5b11
5 changed files with 13 additions and 0 deletions

View File

@ -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': '<a href="https://github.com/gadgetoid/Pinout.xyz">This page needs translating, can you help?</a><br><br>',
'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']))

View File

@ -10,6 +10,8 @@ url_suffix:
urls:
GND: tierra
strings:
- home: 'Home'
- boards: 'Boards'
- details: 'Details'
- group_other: 'otro'
- form_undefined: 'Otro'

View File

@ -10,6 +10,8 @@ url_suffix:
urls:
GND: masse
strings:
- home: 'Accueil'
- boards: 'Cartes'
- details: 'Détails'
- group_other: 'autre'
- form_undefined: 'Autre'

View File

@ -10,6 +10,8 @@ url_suffix:
urls:
GND: massa
strings:
- home: 'Home'
- boards: 'Boards'
- details: 'Details'
- group_other: 'Tutti'
- form_undefined: 'Altro'

View File

@ -10,6 +10,8 @@ url_suffix: ''
urls:
GND: toprak
strings:
- home: 'Home'
- boards: 'Boards'
- details: 'Details'
- group_other: 'hepsi'
- form_undefined: 'diğer'