From f84805fb7d7a44d0853f399b5a0844688489d923 Mon Sep 17 00:00:00 2001 From: rdmueller Date: Wed, 11 Nov 2015 21:01:19 +0100 Subject: [PATCH 01/14] next batch of translations: overlays --- src/de-DE/overlay/dots.md | 22 ++++++++++++---------- src/de-DE/overlay/explorer-hat-pro.md | 2 +- src/de-DE/overlay/i2c.md | 13 +++++++------ src/de-DE/overlay/pibrella.md | 9 +++++---- src/de-DE/overlay/piglow.md | 2 +- src/de-DE/overlay/unicorn-hat.md | 14 +++++++------- 6 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/de-DE/overlay/dots.md b/src/de-DE/overlay/dots.md index e577c39..6ccdf25 100644 --- a/src/de-DE/overlay/dots.md +++ b/src/de-DE/overlay/dots.md @@ -1,12 +1,12 @@ #Raspberry Pi Dots -###Dots is a Dot to Dot HAT board for the Raspberry Pi that lets you join-the-dots with BARE Conductive Paint! +###Dots ist eine verbinde die Punkte HAT Platine für den Raspberry Pi, auf dem Du Punkte mit leitender Farbe verbindest! -Every Dot on the Dots board is a "floating" metal contact just waiting to be pulled down to ground with a dab of paint. +Jeder Punkt auf der Dots-Platine ist ein offener Metallkontakt der darauf wartet mit der Farbe kontaktiert zu werden. + + +Um einen Punkt auszulesen setze den dazugehörigen Anschluss als Eingang und checke, ob der Kontakt hergestellt ist: -To read a Dot you should set its corresponding pin as an INPUT and make sure it's pulled up like so: ```python import RPi.GPIO as GPIO @@ -105,8 +107,8 @@ GPIO.setup(dot_pin, GPIO.IN, GPIO.PUD_UP) state = GPIO.input(dot_pin) ``` -It's good practise to only turn on the PULLUP when you actually want to read the Dot, so a method like -this is recommended for reading: +Es ist gute Praxis den Eingang nur auf PULLUP zu schalten, wenn Du den Kontakt auch lesen möchtest. +Somit ist folgender Code empfohlen: ```python def is_dot_connected(dot_pin): diff --git a/src/de-DE/overlay/explorer-hat-pro.md b/src/de-DE/overlay/explorer-hat-pro.md index b2ac149..5be19e8 100644 --- a/src/de-DE/overlay/explorer-hat-pro.md +++ b/src/de-DE/overlay/explorer-hat-pro.md @@ -108,7 +108,7 @@ sudo apt-get install python-pip sudo pip install explorer-hat ``` -Anschliessend die Libraries in Dein Python-Skript importieren und basteln: +Anschliessend die Libraries in Dein Python-Skript importieren und anfangen zu basteln: ```bash import explorerhat diff --git a/src/de-DE/overlay/i2c.md b/src/de-DE/overlay/i2c.md index 5e9e0ee..d5f5ff6 100644 --- a/src/de-DE/overlay/i2c.md +++ b/src/de-DE/overlay/i2c.md @@ -1,7 +1,7 @@ -#I2C - Inter Integrated Circuit +#I2C - Inter Integrated Circuit -The Raspberry Pi's I2C pins are an extremely useful way to talk to many different types of external peripheral; from the MCP23017 digital IO expander, to a connected ATmega. +Der I2C-Bus des Raspberry Pi ist sehr praktisch um mit vielen unterschiedlichen Bausteinen +zu kommunizieren - egal ob z.B. ein MCP23017 als digitale I/O-Erweiterung oder sogar ein ATmega. -You can verify the address of connected I2C peripherals with a simple one-liner: +Die Adresse einen angeschlossenen I2C-Bausteins kann mit einem einfachen Einzeiler überprüft werden: ```bash sudo apt-get install i2c-tools sudo i2cdetect -y 1 ``` -You can access i2c from Python using the smbus library: +Den I2C-Bus kann man von Python aus über die smbus-Library ansteuern: ```bash sudo apt-get install python-smbus ``` -And then in Python: +...und dann in Python: ```python import smbus diff --git a/src/de-DE/overlay/pibrella.md b/src/de-DE/overlay/pibrella.md index 3e2abfd..ee27a1e 100644 --- a/src/de-DE/overlay/pibrella.md +++ b/src/de-DE/overlay/pibrella.md @@ -3,7 +3,7 @@ name: Pibrella manufacturer: Pimoroni Vs Cyntech url: https://github.com/pimoroni/pibrella -description: An all-in-one light, sound, input and output add-on board. +description: eine "Alles-in-Einem" Licht, Ton, Ein- und Ausgabe Erweiterungsplatine. pincount: 26 pin: '7': @@ -61,16 +61,17 @@ pin: --> #Pibrella -The all-in-one light, sound, input and output add-on board from Pimoroni vs Cyntech uses lots of IO on the Pi but leaves both Serial and I2C free leaving plenty of room for expansion if you get creative. +Die "Alles-in-Einem" Licht, Ton, Ein- und Ausgabe Erweiterungsplatine von Pimoroni vs Cyntech +benutzt jede Menge I/O Anschlüsse des Pi aber lässt die serielle Schnittstelle und den I2C-Bus noch frei und somit viel Raum für creative Erweiterungen! -Pibrella is easy to use, first you should install the module using LXTerminal/Command Line: +Pibrella is einfach zu benutzen - einfach das entsprechende Modul über die Kommandozeile installieren: ```bash sudo apt-get install python-pip sudo pip install pibrella ``` -Then import it into your Python script and start tinkering: +... dann die Library in Dein Python-Skript importieren und anfangen zu basteln: ```bash import pibrella diff --git a/src/de-DE/overlay/piglow.md b/src/de-DE/overlay/piglow.md index 3344b8c..5936ac3 100644 --- a/src/de-DE/overlay/piglow.md +++ b/src/de-DE/overlay/piglow.md @@ -5,7 +5,7 @@ manufacturer: Pimoroni url: https://github.com/pimoroni/piglow github: https://github.com/pimoroni/piglow buy: http://shop.pimoroni.com/products/piglow -description: Simply 18 LEDs in a spiral pattern controllable in Python. +description: 18 einfache LEDs als Spirale angeordnet und über Python ansteuerbar. pincount: 26 pin: '1': {} diff --git a/src/de-DE/overlay/unicorn-hat.md b/src/de-DE/overlay/unicorn-hat.md index c3c4013..aee4e37 100644 --- a/src/de-DE/overlay/unicorn-hat.md +++ b/src/de-DE/overlay/unicorn-hat.md @@ -4,7 +4,7 @@ name: Unicorn HAT manufacturer: Pimoroni url: http://shop.pimoroni.com/products/unicorn-hat buy: http://shop.pimoroni.com/products/unicorn-hat -description: 64 blindingly bright RGB LEDs on a single HAT +description: 64 blendend helle RGB LEDs auf einem HAT github: https://github.com/pimoroni/unicornhat install: 'apt': @@ -26,19 +26,19 @@ pin: --> #Unicorn HAT -64 blindingly bright LEDs packed into a HAT and driven with an ultra-fast, C library that you can talk to -from Python make Unicorn HAT PiGlow's bigger, brighter brother. +64 blendend helle LEDs auf einem HAT, die über eine super schnelle C-Library angesteuert werden. +Die C-Library lässt sich auch über Python ansteuern. Der Unicorn HAT ist quasi der grössere und hellere Bruder der PiGlow. -Note: Unicorn HAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound -through the audio jack ( analog audio ) so you can't use both at the same time! +Hinweis: der Unicorn HAT trickst ein wenig mit dem PWM-Ausgang - der gleichen Hardware, mit der Dein Pi Sounds über den +analogen Audio-Ausgang erzeugen kann. Somit kannst Du nicht beides gleichzeitig nutzen! -Setup is easy, just: +Die Einrichtung des HATs ist einfach: ```bash curl get.pimoroni.com/unicornhat | bash ``` -Then import it into your Python script and start tinkering: +Dann musst Du die Library nur noch in Dein Python-Skript importieren und kannst anfangen zu experimentieren: ```bash import unicornhat From cead81e33913158ebae12f67ef45fa743f513861 Mon Sep 17 00:00:00 2001 From: rdmueller Date: Wed, 11 Nov 2015 21:15:25 +0100 Subject: [PATCH 02/14] ...and another batch of translations --- src/de-DE/overlay/display-o-tron-hat.md | 10 +++++----- src/de-DE/overlay/display-o-tron.md | 16 ++++++++-------- src/de-DE/overlay/piano-hat.md | 10 +++++----- src/de-DE/overlay/skywriter-hat.md | 8 ++++---- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/de-DE/overlay/display-o-tron-hat.md b/src/de-DE/overlay/display-o-tron-hat.md index c875db2..110cce0 100644 --- a/src/de-DE/overlay/display-o-tron-hat.md +++ b/src/de-DE/overlay/display-o-tron-hat.md @@ -3,7 +3,7 @@ name: Display-o-Tron HAT manufacturer: Pimoroni url: https://github.com/pimoroni/dot3k -description: A 3-line character LCD with a 6-zone RGB backlight and 6 touch buttons +description: Ein 3-zeiliges LCD mit einer 6-Zonen RGB Hintergrundbeleuchtung und 6 Tasten pincount: 40 pin: 3: @@ -32,13 +32,13 @@ pin: --> #Display-o-Tron HAT -Display-o-Tron HAT uses both SPI and I2c to drive the LCD display, backlight and touch. -However both of these busses can be shared with other devices. +Der Display-o-Tron HAT benutzt den SPI- und I2C-Bus um das LC-Display, die Hintergrundbeleuchtung und die Tasten zu steuern bzw. abzufragen. +Beide Busse können aber weiterhin noch mit anderen Komponenten genutzt werden. -You can use the one-line product installer to get Display-o-Tron HAT set up and ready to go, just: +Mit diesem Einzeiler installierst Du den Display-o-Tron HAT: ```bash curl get.pimoroni.com/dot3k | bash ``` -And follow the instructions! +...den Rest findest Du in der Anleitung auf Github :-) diff --git a/src/de-DE/overlay/display-o-tron.md b/src/de-DE/overlay/display-o-tron.md index b0fbac9..c16f313 100644 --- a/src/de-DE/overlay/display-o-tron.md +++ b/src/de-DE/overlay/display-o-tron.md @@ -4,7 +4,7 @@ name: Display-o-Tron 3000 manufacturer: Pimoroni github: https://github.com/pimoroni/dot3k url: https://github.com/pimoroni/dot3k -description: A 3-line character LCD with an RGB backlight and joystick +description: Ein 3-zeiliges LCD mit RGB Hintergrundbeleuchtung und Joystick install: 'devices': - 'i2c' @@ -24,25 +24,25 @@ pin: 5: mode: i2c 7: - name: Joystick Button + name: Joystick Taste mode: input active: low 11: - name: Joystick Left + name: Joystick links mode: input active: low 13: - name: Joystick Up + name: Joystick oben mode: input active: low 15: - name: Joystick Right + name: Joystick rechts mode: input active: low 19: mode: spi 21: - name: Joystick Down + name: Joystick unten mode: input active: low 22: @@ -54,10 +54,10 @@ pin: --> #Display-o-Tron 3000 -You can use the one-line product installer to get Display-o-Tron 3000 set up and ready to go, just: +Mit diesem Einzeiler installierst Du das Display-o-Tron 3000: ```bash curl get.pimoroni.com/dot3k | bash ``` -And follow the instructions! +...den Rest findest Du in der Anleitung auf Github :-) diff --git a/src/de-DE/overlay/piano-hat.md b/src/de-DE/overlay/piano-hat.md index 2e274a8..6892a0e 100644 --- a/src/de-DE/overlay/piano-hat.md +++ b/src/de-DE/overlay/piano-hat.md @@ -3,7 +3,7 @@ name: Piano HAT manufacturer: Pimoroni url: https://github.com/pimoroni/piano-hat -description: A tiny Pi piano with 16 touch-sensitive buttons +description: Ein kleines Pi Piano mit 16 berührungsempfindlichen Tasten pincount: 40 i2c: '0x28': @@ -34,14 +34,14 @@ pin: --> #Piano HAT -Piano HAT has 16 touch-sensitive buttons. 13 of these are a single Piano octave, the rest give you octave up/down and instrument select functionality. +Piano HAT hat 16 berührungsempfindliche Tasten. 13 dieser Tasten bilden eine Piano-Oktave, die anderen lassen die die Oktave hoch oder runter schalten und Instrumente auswählen. -It uses two Microchip CAP1188 chips with the i2c addresses 0x28 and 0x2b. +Der HAT benutzt zwei Microchip CAP1188 ICs mit den I2C Adressen 0x28 und 0x2b. -You can use the one-line product installer to get Piano HAT set up and ready to go, just: +Mit folgendem Einzeiler installierst Du die nötige Software: ```bash curl get.pimoroni.com/pianohat | bash ``` -And follow the instructions! +Den Rest findest Du in der Anleitung! diff --git a/src/de-DE/overlay/skywriter-hat.md b/src/de-DE/overlay/skywriter-hat.md index f6f3e7d..666371a 100644 --- a/src/de-DE/overlay/skywriter-hat.md +++ b/src/de-DE/overlay/skywriter-hat.md @@ -5,7 +5,7 @@ manufacturer: Pimoroni url: https://github.com/pimoroni/skywriter-hat github: https://github.com/pimoroni/skywriter-hat buy: http://shop.pimoroni.com/products/skywriter-hat -description: A 3D positional and gesture sensor. +description: Ein 3D Positions- und Gesten-Sensor. install: 'apt': - 'python-smbus' @@ -28,7 +28,7 @@ pin: --> #Skywriter HAT -Skywriter HAT senses your finger's position above it in 3 dimensions, outputting an X, Y, Z axis -which you can use in your Python scripts. +Skywriter HAT spürt die Position Deines Fingers über ihm in drei Dimensionen und gibt die somit die X-, Y- und Z-Koordinaten, welche Du in Deinen Python-Skripten verarbeiten kannst. + +Er erkennt auch Gesten wie z.B. wischen und andere. -It also recognises gestures, including swipes and more. From baba955fd6b9a569e40db8088d2aa74370507bf3 Mon Sep 17 00:00:00 2001 From: RogueM Date: Wed, 11 Nov 2015 20:18:40 +0000 Subject: [PATCH 03/14] symlink for pins in de-DE + couple retro-fit in es-ES pins --- src/de-DE/pin/pin-14.md | 0 src/de-DE/pin/pin-17.md | 1 + src/de-DE/pin/pin-20.md | 0 src/de-DE/pin/pin-25.md | 0 src/de-DE/pin/pin-27.md | 2 -- src/de-DE/pin/pin-28.md | 0 src/de-DE/pin/pin-30.md | 0 src/de-DE/pin/pin-34.md | 0 src/de-DE/pin/pin-39.md | 0 src/de-DE/pin/pin-4.md | 0 src/de-DE/pin/pin-5.md | 11 ----------- src/de-DE/pin/pin-9.md | 0 src/es-ES/pin/pin-27.md | 2 -- src/es-ES/pin/pin-5.md | 11 ----------- 14 files changed, 1 insertion(+), 26 deletions(-) mode change 100644 => 120000 src/de-DE/pin/pin-14.md create mode 120000 src/de-DE/pin/pin-17.md mode change 100644 => 120000 src/de-DE/pin/pin-20.md mode change 100644 => 120000 src/de-DE/pin/pin-25.md mode change 100644 => 120000 src/de-DE/pin/pin-28.md mode change 100644 => 120000 src/de-DE/pin/pin-30.md mode change 100644 => 120000 src/de-DE/pin/pin-34.md mode change 100644 => 120000 src/de-DE/pin/pin-39.md mode change 100644 => 120000 src/de-DE/pin/pin-4.md mode change 100644 => 120000 src/de-DE/pin/pin-9.md diff --git a/src/de-DE/pin/pin-14.md b/src/de-DE/pin/pin-14.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-14.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-14.md b/src/de-DE/pin/pin-14.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-14.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-17.md b/src/de-DE/pin/pin-17.md new file mode 120000 index 0000000..5fc74dd --- /dev/null +++ b/src/de-DE/pin/pin-17.md @@ -0,0 +1 @@ +./pin-1.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-20.md b/src/de-DE/pin/pin-20.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-20.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-20.md b/src/de-DE/pin/pin-20.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-20.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-25.md b/src/de-DE/pin/pin-25.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-25.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-25.md b/src/de-DE/pin/pin-25.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-25.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-27.md b/src/de-DE/pin/pin-27.md index b5b304f..1fb25ee 100644 --- a/src/de-DE/pin/pin-27.md +++ b/src/de-DE/pin/pin-27.md @@ -1,4 +1,2 @@ -# HAT EEPROM Anschlüsse ID_SC und ID_SD - Diese Anschlüsse sind für die HAT genannten Erweiterungsplatinen des Pi. Über diese wird das EEPROM der Erweiterung per I2C angesprochen. diff --git a/src/de-DE/pin/pin-28.md b/src/de-DE/pin/pin-28.md deleted file mode 100644 index 70eec8c..0000000 --- a/src/de-DE/pin/pin-28.md +++ /dev/null @@ -1 +0,0 @@ -pin-27.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-28.md b/src/de-DE/pin/pin-28.md new file mode 120000 index 0000000..70eec8c --- /dev/null +++ b/src/de-DE/pin/pin-28.md @@ -0,0 +1 @@ +pin-27.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-30.md b/src/de-DE/pin/pin-30.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-30.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-30.md b/src/de-DE/pin/pin-30.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-30.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-34.md b/src/de-DE/pin/pin-34.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-34.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-34.md b/src/de-DE/pin/pin-34.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-34.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-39.md b/src/de-DE/pin/pin-39.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-39.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-39.md b/src/de-DE/pin/pin-39.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-39.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-4.md b/src/de-DE/pin/pin-4.md deleted file mode 100644 index 253c8f3..0000000 --- a/src/de-DE/pin/pin-4.md +++ /dev/null @@ -1 +0,0 @@ -pin-2.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-4.md b/src/de-DE/pin/pin-4.md new file mode 120000 index 0000000..253c8f3 --- /dev/null +++ b/src/de-DE/pin/pin-4.md @@ -0,0 +1 @@ +pin-2.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-5.md b/src/de-DE/pin/pin-5.md index 171ee27..a760297 100644 --- a/src/de-DE/pin/pin-5.md +++ b/src/de-DE/pin/pin-5.md @@ -1,12 +1 @@ SCL ist der Clock oder Tackt Anschluss des I2C-Bus des Pi. [mehr über I2C](/pinout/i2c). - -```python -require 'wiringpi2' -HIGH = 1 -LOW = 0 -OUTPUT = 1 -INPUT = 0 -io = WiringPi::GPIO.new -io.pin_mode(9,OUTPUT) -io.digital_write(9,HIGH) -``` \ No newline at end of file diff --git a/src/de-DE/pin/pin-9.md b/src/de-DE/pin/pin-9.md deleted file mode 100644 index d0abe28..0000000 --- a/src/de-DE/pin/pin-9.md +++ /dev/null @@ -1 +0,0 @@ -pin-6.md \ No newline at end of file diff --git a/src/de-DE/pin/pin-9.md b/src/de-DE/pin/pin-9.md new file mode 120000 index 0000000..d0abe28 --- /dev/null +++ b/src/de-DE/pin/pin-9.md @@ -0,0 +1 @@ +pin-6.md \ No newline at end of file diff --git a/src/es-ES/pin/pin-27.md b/src/es-ES/pin/pin-27.md index e2be4ac..873ea70 100644 --- a/src/es-ES/pin/pin-27.md +++ b/src/es-ES/pin/pin-27.md @@ -1,3 +1 @@ -# Pines ID_SC e ID_SD del HAT EEPROM - Estos pines están generalmente reservados para la comunicación i2c con un HAT EEPROM. diff --git a/src/es-ES/pin/pin-5.md b/src/es-ES/pin/pin-5.md index 69a07c3..89319f0 100644 --- a/src/es-ES/pin/pin-5.md +++ b/src/es-ES/pin/pin-5.md @@ -1,12 +1 @@ SCL es uno de los pines i2c en la Pi, [aprende más sobre i2c](/pinout/i2c). - -```python -require 'wiringpi2' -HIGH = 1 -LOW = 0 -OUTPUT = 1 -INPUT = 0 -io = WiringPi::GPIO.new -io.pin_mode(9,OUTPUT) -io.digital_write(9,HIGH) -``` From 3b56d05db901d84174511a41b2e692b792be4aa3 Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Wed, 11 Nov 2015 21:33:06 +0000 Subject: [PATCH 04/14] Set mystery undocumented ground URL fudge --- src/de-DE/settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de-DE/settings.yaml b/src/de-DE/settings.yaml index 67038a4..3581d55 100644 --- a/src/de-DE/settings.yaml +++ b/src/de-DE/settings.yaml @@ -8,7 +8,7 @@ resource_url: /resources/ domain: de.pinout.xyz url_suffix: urls: - GND: ground + GND: masse_ground strings: - made_by: '* Made by {manufacturer}' - type_hat: '* HAT form-factor' From b835332205e6f0d74d2449c38fa77194ef8a2b6b Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 00:30:49 +0000 Subject: [PATCH 05/14] Prevent 'make clean' run twice in a row printing an error --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 36a9666..aeb165d 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ all: cp -r resources output/$(LANG)/ clean: - rm -r output/$(LANG)/* + rm -rf output/$(LANG)/* serve: all ./serve.py $(LANG) From ea481e18785ecbce7afe6926e97c882e10fdbc26 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 00:52:29 +0000 Subject: [PATCH 06/14] Fix header-level Make it consistent with all the other languages --- src/fr-FR/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr-FR/index.md b/src/fr-FR/index.md index c8270b5..3c81f71 100644 --- a/src/fr-FR/index.md +++ b/src/fr-FR/index.md @@ -1,6 +1,6 @@ #Pinout! -##Le guide complet des broches GPIO de la Raspberry Pi, modèles B+ et Raspberry Pi 2 inclus! +###Le guide complet des broches GPIO de la Raspberry Pi, modèles B+ et Raspberry Pi 2 inclus! Ce document n'est pas destiné à l'impression, c'est à la fois un outil de référence rapide et un guide complet des broches GPIO de la Raspberry Pi. @@ -24,4 +24,4 @@ Veuillez notez que la séparation des 14 broches du B+ dans leur présentation P L'auteur principal de ce guide est Phil Howard (@Gadgetoid). Les contributeurs sont renseignés dans les notes des commits du projet Github parent (https://github.com/Gadgetoid/Pinout2)! -Traduction: @RogueHAL13 \ No newline at end of file +Traduction: @RogueHAL13 From e8b6141edf6adb1af2e4020cfcf9e2fddc2a9933 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 02:07:46 +0000 Subject: [PATCH 07/14] Remove unused python imports from urlmapper.py --- urlmapper.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/urlmapper.py b/urlmapper.py index f268891..27b7092 100755 --- a/urlmapper.py +++ b/urlmapper.py @@ -1,12 +1,8 @@ #!/usr/bin/env python -import json import unicodedata import re -import os -import time import sys import pinout -import yaml import markjaml import glob From 59fbb3776e6a02eff2e119853374b7fdb39d1f2d Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 02:10:00 +0000 Subject: [PATCH 08/14] Remove unused python imports from serve.py --- serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serve.py b/serve.py index 08b6a93..67b5367 100755 --- a/serve.py +++ b/serve.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from flask import Flask, redirect, send_from_directory +from flask import Flask, send_from_directory import sys app = Flask(__name__) From dac59c2bd8b195b319be2035edc80616904db0ff Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 02:10:37 +0000 Subject: [PATCH 09/14] Remove unused python imports from pinout.py --- pinout.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pinout.py b/pinout.py index 3e9d02e..5b9b11a 100644 --- a/pinout.py +++ b/pinout.py @@ -1,7 +1,6 @@ import json import yaml import time -import markdown DB_FILE = 'pi-pinout.yaml' SETTINGS_FILE = 'settings.yaml' From 0489d049f726766d2bdbfd58992b1829098c5400 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 02:11:36 +0000 Subject: [PATCH 10/14] Remove unused python imports from generate-json.py --- generate-json.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/generate-json.py b/generate-json.py index 3f4e8a6..4929c68 100755 --- a/generate-json.py +++ b/generate-json.py @@ -3,11 +3,8 @@ import json import markdown import unicodedata import re -import os -import time import sys import pinout -import yaml import markjaml reload(sys) @@ -121,4 +118,4 @@ def load_md(filename): overlays = map(load_overlay,overlays) -print(json.dumps(overlays)) \ No newline at end of file +print(json.dumps(overlays)) From f620d8820261054e9693692655ca9115c6c92487 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 12 Nov 2015 02:13:00 +0000 Subject: [PATCH 11/14] Remove unused python imports from generate-html.py --- generate-html.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/generate-html.py b/generate-html.py index 3701fc3..2d8a147 100755 --- a/generate-html.py +++ b/generate-html.py @@ -1,13 +1,10 @@ #!/usr/bin/env python -import json import markdown import unicodedata import re import os -import time import sys import pinout -import yaml import markjaml import urlmapper From ac218ee37f8fbb34f955e999e56d3cb8ceacf727 Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Thu, 12 Nov 2015 15:53:45 +0000 Subject: [PATCH 12/14] Updated analytics tracking ID --- src/it-IT/template/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/it-IT/template/layout.html b/src/it-IT/template/layout.html index 97a30e0..ff98b2d 100755 --- a/src/it-IT/template/layout.html +++ b/src/it-IT/template/layout.html @@ -17,7 +17,7 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - ga('create', 'UA-69846516-1', 'auto'); + ga('create', 'UA-69846516-6', 'auto'); ga('send', 'pageview'); From 57cd5d4f1435e928e63d35488df36f3b78870671 Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Thu, 12 Nov 2015 15:54:11 +0000 Subject: [PATCH 13/14] Updated domain --- src/it-IT/settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/it-IT/settings.yaml b/src/it-IT/settings.yaml index d9720dc..27b7405 100644 --- a/src/it-IT/settings.yaml +++ b/src/it-IT/settings.yaml @@ -5,7 +5,7 @@ default_title: Assegnazione pin GPIO del Raspberry Pi - Pi 1, B+, Pi 2 title_suffix: " - Assegnazione pin GPIO del Raspberry Pi" base_url: /pinout/ resource_url: /resources/ -domain: pinout.xyz +domain: it.pinout.xyz url_suffix: urls: GND: ground From 5481ecc4ba5afd980c97a9e7baaa5a625f43563f Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Thu, 12 Nov 2015 16:07:02 +0000 Subject: [PATCH 14/14] Fixed hreflang tags --- generate-html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-html.py b/generate-html.py index eb88973..8549f56 100755 --- a/generate-html.py +++ b/generate-html.py @@ -297,7 +297,7 @@ def get_hreflang_urls(src): for lang in alternate_urls: if src in alternate_urls[lang]: url = alternate_urls[lang][src] - hreflang.append(''.format( + hreflang.append(''.format( lang=lang, url=url ))