[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Use localized menus
commit 1346ab22bffc21b2c9bfc7a4cb721725f0a963cb
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Fri Aug 23 14:16:04 2019 +0200
Use localized menus
---
databags/menu+bn-BD.ini | 19 +++++++++++++++++++
databags/menu+de.ini | 19 +++++++++++++++++++
databags/menu+es.ini | 19 +++++++++++++++++++
databags/menu+fr.ini | 19 +++++++++++++++++++
databags/menu+id.ini | 19 +++++++++++++++++++
databags/menu+is.ini | 19 +++++++++++++++++++
databags/menu+it.ini | 19 +++++++++++++++++++
databags/menu+ka.ini | 19 +++++++++++++++++++
databags/menu+ko.ini | 19 +++++++++++++++++++
databags/menu+pt-BR.ini | 19 +++++++++++++++++++
databags/menu+ru.ini | 19 +++++++++++++++++++
databags/menu+tr.ini | 19 +++++++++++++++++++
databags/menu+zh-CN.ini | 19 +++++++++++++++++++
databags/menu_footer+bn-BD.ini | 1 +
databags/menu_footer+de.ini | 1 +
databags/menu_footer+es.ini | 1 +
databags/menu_footer+fr.ini | 1 +
databags/menu_footer+id.ini | 1 +
databags/menu_footer+is.ini | 1 +
databags/menu_footer+it.ini | 1 +
databags/menu_footer+ka.ini | 1 +
databags/menu_footer+ko.ini | 1 +
databags/menu_footer+pt-BR.ini | 1 +
databags/menu_footer+ru.ini | 1 +
databags/menu_footer+tr.ini | 1 +
databags/menu_footer+zh-CN.ini | 1 +
templates/footer.html | 2 --
templates/navbar.html | 4 +---
28 files changed, 261 insertions(+), 5 deletions(-)
diff --git a/databags/menu+bn-BD.ini b/databags/menu+bn-BD.ini
new file mode 100644
index 0000000..9f5fff0
--- /dev/null
+++ b/databags/menu+bn-BD.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = �তিহাস
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = ড��ম�ন���শন
+
+[support]
+path = https://support.torproject.org/bn-BD/
+label = সমর�থন
+
+[blog]
+path = https://blog.torproject.org
+label = ব�ল�
+
+[donate]
+path = https://donate.torproject.org
+label = ডন�� �র�ন
diff --git a/databags/menu+de.ini b/databags/menu+de.ini
new file mode 100644
index 0000000..463b5b2
--- /dev/null
+++ b/databags/menu+de.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/de/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/de/
+label = Donate
diff --git a/databags/menu+es.ini b/databags/menu+es.ini
new file mode 100644
index 0000000..57b0146
--- /dev/null
+++ b/databags/menu+es.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/es/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/es
+label = Donate
diff --git a/databags/menu+fr.ini b/databags/menu+fr.ini
new file mode 100644
index 0000000..d078638
--- /dev/null
+++ b/databags/menu+fr.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/fr/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/fr/
+label = Donate
diff --git a/databags/menu+id.ini b/databags/menu+id.ini
new file mode 100644
index 0000000..5c7d032
--- /dev/null
+++ b/databags/menu+id.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = Tentang
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Dokumentasi
+
+[support]
+path = https://support.torproject.org/id/
+label = Dukungan
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org
+label = Donasi
diff --git a/databags/menu+is.ini b/databags/menu+is.ini
new file mode 100644
index 0000000..d77e346
--- /dev/null
+++ b/databags/menu+is.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org
+label = Donate
diff --git a/databags/menu+it.ini b/databags/menu+it.ini
new file mode 100644
index 0000000..9dcc41b
--- /dev/null
+++ b/databags/menu+it.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/it/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/it/
+label = Donate
diff --git a/databags/menu+ka.ini b/databags/menu+ka.ini
new file mode 100644
index 0000000..e3357ba
--- /dev/null
+++ b/databags/menu+ka.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/ka
+label = Donate
diff --git a/databags/menu+ko.ini b/databags/menu+ko.ini
new file mode 100644
index 0000000..d77e346
--- /dev/null
+++ b/databags/menu+ko.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org
+label = Donate
diff --git a/databags/menu+pt-BR.ini b/databags/menu+pt-BR.ini
new file mode 100644
index 0000000..89cf72f
--- /dev/null
+++ b/databags/menu+pt-BR.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/pt-BR/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/pt_BR/
+label = Donate
diff --git a/databags/menu+ru.ini b/databags/menu+ru.ini
new file mode 100644
index 0000000..d77e346
--- /dev/null
+++ b/databags/menu+ru.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org
+label = Donate
diff --git a/databags/menu+tr.ini b/databags/menu+tr.ini
new file mode 100644
index 0000000..1b78e8d
--- /dev/null
+++ b/databags/menu+tr.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/tr/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/tr/
+label = Donate
diff --git a/databags/menu+zh-CN.ini b/databags/menu+zh-CN.ini
new file mode 100644
index 0000000..773af15
--- /dev/null
+++ b/databags/menu+zh-CN.ini
@@ -0,0 +1,19 @@
+[about]
+path = /about/history
+label = About
+
+[documentation]
+path = https://2019.www.torproject.org/docs/documentation.html.en
+label = Documentation
+
+[support]
+path = https://support.torproject.org/zh-CN/
+label = Support
+
+[blog]
+path = https://blog.torproject.org
+label = Blog
+
+[donate]
+path = https://donate.torproject.org/zh_CN
+label = Donate
diff --git a/databags/menu_footer+bn-BD.ini b/databags/menu_footer+bn-BD.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+bn-BD.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+de.ini b/databags/menu_footer+de.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+de.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+es.ini b/databags/menu_footer+es.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+es.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+fr.ini b/databags/menu_footer+fr.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+fr.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+id.ini b/databags/menu_footer+id.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+id.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+is.ini b/databags/menu_footer+is.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+is.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+it.ini b/databags/menu_footer+it.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+it.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+ka.ini b/databags/menu_footer+ka.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+ka.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+ko.ini b/databags/menu_footer+ko.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+ko.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+pt-BR.ini b/databags/menu_footer+pt-BR.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+pt-BR.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+ru.ini b/databags/menu_footer+ru.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+ru.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+tr.ini b/databags/menu_footer+tr.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+tr.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/databags/menu_footer+zh-CN.ini b/databags/menu_footer+zh-CN.ini
new file mode 120000
index 0000000..a3178a1
--- /dev/null
+++ b/databags/menu_footer+zh-CN.ini
@@ -0,0 +1 @@
+menu_footer+en.ini
\ No newline at end of file
diff --git a/templates/footer.html b/templates/footer.html
index 6168ca4..e6b4537 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -35,8 +35,6 @@
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link text-light" href="{{ item.path|url(alt=this.alt) }}">
- {% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
- <a class="nav-link text-light" href="{{ item.path }}">
{% else %}
<a class="nav-link text-light" href="{{ item.path }}{{ this.alt }}">
{% endif %}
diff --git a/templates/navbar.html b/templates/navbar.html
index db78178..7600885 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -28,10 +28,8 @@
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link" href="{{ item.path|url(alt=this.alt) }}">
- {% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
- <a class="nav-link" href="{{ item.path }}">
{% else %}
- <a class="nav-link" href="{{ item.path }}{{ this.alt }}">
+ <a class="nav-link" href="{{ item.path }}">
{% endif %}
{{ _(item.label) }}
{% if this.path == item.path %}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits