|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html>
|
| 3 | + {% if page.lang %} |
| 4 | + {% assign language = page.lang %} |
| 5 | + {% else %} |
| 6 | + {% assign language = "en" %} |
| 7 | + {% endif %} |
3 | 8 | <head>
|
4 | 9 | <script type="text/javascript" async="" src="../js/playfield.js"></script>
|
5 | 10 | <script type="text/javascript" async="" src="../js/quiz.js"></script>
|
|
33 | 38 | {% assign topic = page.path | split: "-" | first %}
|
34 | 39 | {% assign p_topic = p.path | split: "-" | first %}
|
35 | 40 | --><!--
|
36 |
| - {% if tutorial == "steps" and p.lang == page.lang %} |
| 41 | + {% if tutorial == "steps" and p.lang == language %} |
37 | 42 | {% if p_topic == topic and same_topic_started == false %}
|
38 | 43 | --><span class="same-topic"><!--
|
39 | 44 | {% assign same_topic_started = true %}
|
@@ -67,23 +72,23 @@ <h2>{{ page.title | escape }}</h2>
|
67 | 72 | </div>
|
68 | 73 | <footer>
|
69 | 74 | <div class="links">
|
70 |
| - <a href="{{ site.sourcecode.edit }}/{{ page.path }}">Seite verbessern</a> |
71 |
| - <a href="{{ site.sourcecode.newissue }}">Problem melden</a> |
72 |
| - <a href="javascript:deleteCookies()">Zustand löschen</a> |
73 |
| - <a href="{{ site.sourcecode.view }}/{{ page.path }}">Quelltext anzeigen</a> |
| 75 | + <a href="{{ site.sourcecode.edit }}/{{ page.path }}">{{ site.data.footer.edit[language] }}</a> |
| 76 | + <a href="{{ site.sourcecode.newissue }}">{{ site.data.footer.newissue[language] }}</a> |
| 77 | + <a href="javascript:deleteCookies()">{{ site.data.footer.deletecookies[language] }}</a> |
| 78 | + <a href="{{ site.sourcecode.view }}/{{ page.path }}">{{ site.data.footer.view[language] }}</a> |
74 | 79 | </div>
|
75 | 80 | <div class="license">
|
76 | 81 | <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="../assets/cc-by-sa.png" /></a>
|
77 |
| - {% if page.lang == "de" %} |
| 82 | + {% if language == "de" %} |
78 | 83 | <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" property="dct:title" rel="dct:type">Regex-Tutorial</span> von <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Nicco Kunzmann</span> ist lizenziert unter einer <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Namensnennung - Weitergabe unter gleichen Bedingungen 4.0 International Lizenz</a>.
|
79 |
| - {% else %} |
| 84 | + {% elsif language == "en" %} |
80 | 85 | <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Regex Tutorial</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Nicco Kunzmann</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
|
81 | 86 | {% endif %}
|
82 | 87 | {% assign lowercase_content = content | downcase %}
|
83 | 88 | {% if lowercase_content contains "<img" %}
|
84 |
| - {% if page.lang == "de" %} |
| 89 | + {% if language == "de" %} |
85 | 90 | Bilder, die eine andere Lizenz haben, können angeklickt werden, um zu dem Erklärungstext oder der Quelle zu gelangen.
|
86 |
| - {% else %} |
| 91 | + {% elsif language == "en" %} |
87 | 92 | Pictures with a different license can be clicked to reach the source or an explanation.
|
88 | 93 | {% endif %}
|
89 | 94 | {% endif %}
|
|
0 commit comments