8000 First (hack) draft at an internationalised micro:bit editor. · python/pythonineducation.org@97fa460 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97fa460

Browse files
committed
First (hack) draft at an internationalised micro:bit editor.
1 parent a1873e2 commit 97fa460

File tree

20 files changed

+1957
-327
lines changed

20 files changed

+1957
-327
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@ help:
44
@echo 'Makefile for pythonineducation.org'
55
@echo ''
66
@echo 'Usage:'
7+
@echo ' make sass build the static CSS files from sass'
78
@echo ' make build build the site into the output directory'
89
@echo ' make serve build the site and serve on port 8000, watching for changes'
910
@echo ' make test test that site builds, has no broken links, and spells the conference name correctly'
1011
@echo ' make deploy deploy site'
1112
@echo ''
1213

13-
build:
14+
sass:
15+
sassc media/scss/main.scss media/css/main.css
16+
sassc media/scss/bootstrap.scss media/css/bootstrap.css
17+
sassc media/scss/bootstrap-extended.scss media/css/bootstrap-extended.css
18+
19+
build: sass
1420
wok
1521

16-
serve:
22+
serve: sass
1723
wok --serve
1824

1925
test:

content/de/microbit/editor/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
type: editor
2+
slug: editor
3+
url: /de/microbit/editor/index.html
4+
title: Code Editor
5+
---
6+
<script>
7+
var translate = {
8+
'my_scripts-label': 'Meine Scripts',
9+
'my_scripts-title': 'Speichern und kehren Sie zu Ihrer Skripte',
10+
'download-label': 'Herunterladen',
11+
'download-title': 'Laden Sie eine Hex-Datei zu blinken auf Ihre micro:bit',
12+
'snippets-label': 'Snippets',
13+
'snippets-title': 'Klicken Sie auf ein Snippet (Code Abkürzung) zu wählen',
14+
'help-label': 'Hilfe',
15+
'help-title': 'Hilfe für diesen Editor in einem neuen Tab',
16+
'zoom_in-title': 'Hineinzoomen',
17+
'zoom_out-title': 'Rauszoomen',
18+
'log-title': "Lesen Sie ein Protokoll (in englischer Sprache) aller Dinge, die Sie waren bis zu",
19+
'code_snippets': {
20+
'title': 'Code Snippets',
21+
'description': "Code snippets sind kurze Codeblöcke in Ihre eigenen Programme wieder zu verwenden. Es gibt Schnipsel für die häufigsten Dinge, die Sie wollen, werden mit MicroPython zu tun.",
22+
'instructions': "Wählen Sie eine der Snippets unten, oder geben Sie sie Snippets auslösen und tippen Sie auf die TAB-Taste.",
23+
'trigger_heading': 'Auslöser',
24+
'description_heading': 'Beschreibung',
25+
'docs': 'ein Kommentar schreiben Ihren Code zu beschreiben',
26+
'wh': 'während einige Bedingung True ist, halten einige Code Schleifen über',
27+
'with': 'tun ein paar Sachen mit etwas einem Namen zugeordnet',
28+
'cl': 'eine neue Klasse zu erstellen, die das Verhalten einer neuen Art von Objekt definiert',
29+
'def': 'definieren eine benannte Funktion, die einige Argumente und optional eine Beschreibung hinzufügen nimmt',
30+
'if': 'wenn eine bestimmte Bedingung True ist, etwas zu tun',
31+
'ei': 'enn sonst eine andere Bedingung True ist, etwas zu tun',
32+
'el': 'anderes tun, eine andere Sache,',
33+
'for': 'für jedes Element in einer Sammlung von Gegenständen etwas tun, mit jedem Element',
34+
'try': 'versuchen, etwas zu tun, und behandeln Exception (Fehler)',
35+
}
36+
};
37+
var default_name = "Ein kleines Python-Skript";
38+
var default_description = 'Ein MicroPython Skript';
39+
</script>

content/de/microbit/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
type: microbit_de
2+
slug: microbit
3+
url: /de/microbit/index.html
4+
title: Startseite
5+
---
6+
<section>
7+
<div class="container-fluid">
8+
<div class="row">
9+
<div class="col-xs-12">
10+
<h1>Dies ist eine Demo-Content-Seite</h1>
11+
<p></p>
12+
</div>
13+
</div>
14+
</div>
15+
</section>

content/en/content_demo.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

content/en/microbit/editor/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
type: editor
2+
slug: editor
3+
url: /en/microbit/editor/index.html
4+
title: Code Editor
5+
---
6+
<script>
7+
var translate = {
8+
'my_scripts-label': 'My Scripts',
9+
'my_scripts-title': 'Save and return to your scripts',
10+
'download-label': 'Download',
11+
'download-title': 'Download a hex file to flash onto your micro:bit',
12+
'snippets-label': 'Snippets',
13+
'snippets-title': 'Click to select a snippet (code shortcut)',
14+
'help-label': 'Help',
15+
'help-title': 'Open help for this editor in a new tab',
16+
'zoom_in-title': 'Zoom in',
17+
'zoom_out-title': 'Zoom out',
18+
'log-title': "Read a log (in English) of all the things you've been up to",
19+
'code_snippets': {
20+
'title': 'Code Snippets',
21+
'description': "Code snippets are short blocks of code to re-use in your own programs. There are snippets for most common things you'll want to do using MicroPython.",
22+
'instructions': "Select one of the snippets below, or type the snippet's trigger then tap the TAB key.",
23+
'trigger_heading': 'trigger',
24+
'description_heading': 'description',
25+
'docs': 'create a comment to describe your code',
26+
'wh': 'while some condition is True, keep looping over some code',
27+
'with': 'do some stuff with something assigned to a name',
28+
'cl': 'create a new class that defines the behaviour of a new type of object',
29+
'def': 'define a named function that takes some arguments and optionally add a description',
30+
'if': 'if some condition is True, do something',
31+
'ei': 'else if some other condition is True, do something',
32+
'el': 'else do some other thing',
33+
'for': 'for each item in a collection of items do something with each item',
34+
'try': 'try doing something and handle exceptions (errors)'
35+
}
36+
};
37+
var default_name = 'main';
38+
var default_description = 'A MicroPython script';
39+
</script>

content/en/microbit/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type: microbit_en
2+
slug: microbit
3+
url: /en/microbit/index.html
4+
title: Home
5+
---
6+
<section>
7+
<div class="container-fluid">
8+
<div class="row">
9+
<div class="col-xs-12">
10+
<h1>This is a demo content page</h1>
11+
<p class="summary"></p>
12+
<p></p>
13+
</div>
14+
</div>
15+
</div>
16+
</section>

content/en/microbit/index.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0