enable language support
This commit is contained in:
parent
b839858273
commit
9cec47b10b
8 changed files with 60 additions and 54 deletions
10
_config.yml
10
_config.yml
|
@ -146,15 +146,17 @@ exclude: [
|
||||||
_pages/en_PT,
|
_pages/en_PT,
|
||||||
# _pages/en_US,
|
# _pages/en_US,
|
||||||
_pages/es_EM,
|
_pages/es_EM,
|
||||||
_pages/es_ES,
|
# _pages/es_ES,
|
||||||
_pages/fi_FL,
|
_pages/fi_FL,
|
||||||
_pages/fr_FR,
|
# _pages/fr_FR,
|
||||||
_pages/he_IL,
|
_pages/he_IL,
|
||||||
_pages/hu_HU,
|
_pages/hu_HU,
|
||||||
_pages/it_IT,
|
# _pages/it_IT,
|
||||||
_pages/ja_JP,
|
_pages/ja_JP,
|
||||||
_pages/ko_KR,
|
_pages/ko_KR,
|
||||||
|
_pages/ms_MY,
|
||||||
_pages/no_NO,
|
_pages/no_NO,
|
||||||
|
_pages/nl_NL,
|
||||||
_pages/pl_PL,
|
_pages/pl_PL,
|
||||||
_pages/pt_BR,
|
_pages/pt_BR,
|
||||||
_pages/pt_PT,
|
_pages/pt_PT,
|
||||||
|
@ -166,7 +168,7 @@ exclude: [
|
||||||
_pages/uk_UA,
|
_pages/uk_UA,
|
||||||
_pages/vi_VN,
|
_pages/vi_VN,
|
||||||
_pages/zh_CN,
|
_pages/zh_CN,
|
||||||
_pages/zh_TW,
|
# _pages/zh_TW,
|
||||||
]
|
]
|
||||||
|
|
||||||
keep_files:
|
keep_files:
|
||||||
|
|
|
@ -3,9 +3,13 @@
|
||||||
<div class="masthead__menu">
|
<div class="masthead__menu">
|
||||||
<nav id="site-nav" class="greedy-nav">
|
<nav id="site-nav" class="greedy-nav">
|
||||||
<ul class="visible-links">
|
<ul class="visible-links">
|
||||||
<li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ '/' | absolute_url }}">{{ site.title }}</a></li>
|
|
||||||
{% assign split_path = page.path | split: "/" %}
|
{% assign split_path = page.path | split: "/" %}
|
||||||
{% assign locale = split_path[1] %}
|
{% assign locale = split_path[1] %}
|
||||||
|
{% if locale == 'en_US' %}
|
||||||
|
<li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ site.url }}/">{{ site.title }}</a></li>
|
||||||
|
{% else %}
|
||||||
|
<li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ site.url }}/{{ locale }}/">{{ site.title }}</a></li>
|
||||||
|
{% endif %}
|
||||||
{% for link in site.data.navigation[locale].main %}
|
{% for link in site.data.navigation[locale].main %}
|
||||||
{% if link.url contains 'http' %}
|
{% if link.url contains 'http' %}
|
||||||
{% assign domain = '' %}
|
{% assign domain = '' %}
|
||||||
|
@ -16,43 +20,47 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="hidden-links links-menu hidden"></ul>
|
<ul class="hidden-links links-menu hidden"></ul>
|
||||||
<!-- LANG_TODO
|
|
||||||
<ul class="hidden-links lang-menu hidden">
|
<ul class="hidden-links lang-menu hidden">
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}{{ page.url }}">English</a></li>
|
{% assign split_url = page.url | split: "/" %}
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/es_ES{{ page.url }}">Español</a></li>
|
{% if split_url.size == 3 %}
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/de_DE{{ page.url }}">Deutsch</a></li>
|
{% assign langless_url = split_url[2] %}
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/fr_FR{{ page.url }}">français</a></li>
|
{% else %}
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/it_IT{{ page.url }}">italiano</a></li>
|
{% assign langless_url = split_url[1] %}
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/nl_NL{{ page.url }}">Nederlands</a></li>
|
{% endif %}
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/pt_BR{{ page.url }}">Português do Brasil</a></li>
|
<li class="masthead__menu-item"><a href="{{ site.url }}/{{ langless_url }}">English</a></li>
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/pt_PT{{ page.url }}">Português (Portugal)</a></li>
|
<li class="masthead__menu-item"><a href="{{ site.url }}/es_ES/{{ langless_url }}">Español</a></li>
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ru_RU{{ page.url }}">Русский</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/de_DE/{{ langless_url }}">Deutsch</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/zh_CN{{ page.url }}">汉语</a></li>
|
<li class="masthead__menu-item"><a href="{{ site.url }}/fr_FR/{{ langless_url }}">français</a></li>
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/zh_TW{{ page.url }}">漢語</a></li>
|
<li class="masthead__menu-item"><a href="{{ site.url }}/it_IT/{{ langless_url }}">italiano</a></li>
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/pl_PL{{ page.url }}">polski</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/nl_NL/{{ langless_url }}">Nederlands</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/tr_TR{{ page.url }}">Türkçe</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/pt_BR/{{ langless_url }}">Português do Brasil</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/vi_VN{{ page.url }}">Tiếng Việt</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/pt_PT/{{ langless_url }}">Português (Portugal)</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ca_ES{{ page.url }}">Català</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ru_RU/{{ langless_url }}">Русский</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/el_GR{{ page.url }}">Ελληνικά</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/zh_CN/{{ langless_url }}">汉语</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/he_IL{{ page.url }}">עברית</a></li>
|
<li class="masthead__menu-item"><a href="{{ site.url }}/zh_TW/{{ langless_url }}">漢語</a></li>
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/sv_SE{{ page.url }}">Svenska</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/pl_PL/{{ langless_url }}">polski</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ko_KR{{ page.url }}">한국어</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/tr_TR/{{ langless_url }}">Türkçe</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/no_NO{{ page.url }}">Norsk</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/vi_VN/{{ langless_url }}">Tiếng Việt</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ja_JP{{ page.url }}">日本語</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ca_ES/{{ langless_url }}">Català</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ar_SA{{ page.url }}">اللغة العربية</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/el_GR/{{ langless_url }}">Ελληνικά</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/hu_HU{{ page.url }}">Magyar</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/he_IL/{{ langless_url }}">עברית</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ro_RO{{ page.url }}">Română</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/sv_SE/{{ langless_url }}">Svenska</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/sr_SP{{ page.url }}">Српски</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ko_KR/{{ langless_url }}">한국어</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/af_ZA{{ page.url }}">Afrikaans</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/no_NO/{{ langless_url }}">Norsk</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/ms_MY{{ page.url }}">Bahasa melayu</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ja_JP/{{ langless_url }}">日本語</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/fi_FI{{ page.url }}">Suomi</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ar_SA/{{ langless_url }}">اللغة العربية</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/da_DK{{ page.url }}">Dansk</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/hu_HU/{{ langless_url }}">Magyar</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/uk_UA{{ page.url }}">Українська</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ro_RO/{{ langless_url }}">Română</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/cs_CZ{{ page.url }}">Čeština</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/sr_SP/{{ langless_url }}">Српски</a></li> -->
|
||||||
<li class="masthead__menu-item"><a href="{{ site.url }}/en_PT{{ page.url }}">Pirate English</a></li>
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/af_ZA/{{ langless_url }}">Afrikaans</a></li> -->
|
||||||
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/ms_MY/{{ langless_url }}">Bahasa melayu</a></li> -->
|
||||||
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/fi_FI/{{ langless_url }}">Suomi</a></li> -->
|
||||||
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/da_DK/{{ langless_url }}">Dansk</a></li> -->
|
||||||
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/uk_UA/{{ langless_url }}">Українська</a></li> -->
|
||||||
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/cs_CZ/{{ langless_url }}">Čeština</a></li> -->
|
||||||
|
<!-- <li class="masthead__menu-item"><a href="{{ site.url }}/en_PT/{{ langless_url }}">Pirate English</a></li> -->
|
||||||
</ul>
|
</ul>
|
||||||
<button class="lang-selector"><div class="langicon"><i class="fa fa-language fa-lg" aria-hidden="true"></i></div></button>
|
<button class="lang-selector"><div class="langicon"><i class="fa fa-language fa-lg" aria-hidden="true"></i></div></button>
|
||||||
-->
|
|
||||||
<button class="nav-selector" id="toggle-nav"><div class="navicon"></div></button>
|
<button class="nav-selector" id="toggle-nav"><div class="navicon"></div></button>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,7 +8,7 @@ header:
|
||||||
cta_label: "Get Started" #
|
cta_label: "Get Started" #
|
||||||
cta_url: "get-started" #
|
cta_url: "get-started" #
|
||||||
caption:
|
caption:
|
||||||
excerpt: 'A complete guide to 3DS custom firmware, <br /> from stock to arm9loaderhax.<br />' #
|
excerpt: "A complete guide to 3DS custom firmware, <br /> from stock to arm9loaderhax.<br />" #
|
||||||
lang: en
|
lang: en
|
||||||
permalink: /index.html
|
permalink: /index.html
|
||||||
---
|
---
|
||||||
|
|
|
@ -8,7 +8,7 @@ header:
|
||||||
cta_label: "Bien Démarrer" #
|
cta_label: "Bien Démarrer" #
|
||||||
cta_url: "/fr_FR/get-started" #
|
cta_url: "/fr_FR/get-started" #
|
||||||
caption:
|
caption:
|
||||||
excerpt: 'Un guide complet sur l'obtention d'un Custom Firmware pour 3DS, <br /> du firmware d'origine à arm9loaderhax.<br />' #
|
excerpt: "Un guide complet sur l'obtention d'un Custom Firmware pour 3DS, <br /> du firmware d'origine à arm9loaderhax.<br />" #
|
||||||
lang: fr
|
lang: fr
|
||||||
permalink: /fr_FR/index.html
|
permalink: /fr_FR/index.html
|
||||||
---
|
---
|
||||||
|
@ -76,4 +76,4 @@ Les bénéfices d'arm9loaderhax sur les autres méthodes de lancement de Custom
|
||||||
+ **Assurez-vous que votre console reste branchée et chargée pendant l’intégralité du processus pour éviter la perte de données ou les dommages causés par une extinction inattendue!**
|
+ **Assurez-vous que votre console reste branchée et chargée pendant l’intégralité du processus pour éviter la perte de données ou les dommages causés par une extinction inattendue!**
|
||||||
+ Votre carte SD doit être en [MBR, pas GTP](http://www.howtogeek.com/245610/) (la carte SD fournie avec la console est en MBR par défaut).
|
+ Votre carte SD doit être en [MBR, pas GTP](http://www.howtogeek.com/245610/) (la carte SD fournie avec la console est en MBR par défaut).
|
||||||
+ Si vous devez formater une carte SD neuve, vous pouvez utiliser [`guiformat`](http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm) en définissant "Allocation Unit Size" sur 32K.
|
+ Si vous devez formater une carte SD neuve, vous pouvez utiliser [`guiformat`](http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm) en définissant "Allocation Unit Size" sur 32K.
|
||||||
+ La 2DS est quasiment identique à une Old (Ancienne) 3DS en termes de logiciel, donc toutes les étapes qui s'appliquent à l’Ancienne (Old) 3DS s'appliquent aussi à la 2DS.
|
+ La 2DS est quasiment identique à une Old (Ancienne) 3DS en termes de logiciel, donc toutes les étapes qui s'appliquent à l’Ancienne (Old) 3DS s'appliquent aussi à la 2DS.
|
||||||
|
|
|
@ -8,7 +8,7 @@ header:
|
||||||
cta_label: "Cominciamo!" #
|
cta_label: "Cominciamo!" #
|
||||||
cta_url: "/it_IT/get-started" #
|
cta_url: "/it_IT/get-started" #
|
||||||
caption:
|
caption:
|
||||||
excerpt: 'La guida omnicomprensiva per installare un custom firmware su 3DS, <br /> da zero all'arm9loaderhax.<br />' #
|
excerpt: "La guida omnicomprensiva per installare un custom firmware su 3DS, <br /> da zero all'arm9loaderhax.<br />" #
|
||||||
lang: it
|
lang: it
|
||||||
permalink: /it_IT/index.html
|
permalink: /it_IT/index.html
|
||||||
---
|
---
|
||||||
|
@ -76,4 +76,4 @@ L'uso dell'arm9loaderhax rispetto metodi preesistenti per l'avvio di un Custom F
|
||||||
+**Mantieni sempre la console in carica per evitare la perdita di dati o danni derivanti dall'improvviso spegnimento della console!**
|
+**Mantieni sempre la console in carica per evitare la perdita di dati o danni derivanti dall'improvviso spegnimento della console!**
|
||||||
+ La tua scheda SD dovrebbe essere [MBR e non GPT](http://www.howtogeek.com/245610/) (la scheda SD preconfezionata con la console è MBR di default).
|
+ La tua scheda SD dovrebbe essere [MBR e non GPT](http://www.howtogeek.com/245610/) (la scheda SD preconfezionata con la console è MBR di default).
|
||||||
+ Se devi formattare una nuova scheda SD, puoi usare [`guiformat`](http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm) e impostare Allocation Unit Size a 32K.
|
+ Se devi formattare una nuova scheda SD, puoi usare [`guiformat`](http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm) e impostare Allocation Unit Size a 32K.
|
||||||
+ Il 2DS è essenzialmente identico a un Old 3DS in termini di software, per cui tutti i passi della guida che fanno riferimento a un "Old 3DS" si applicano anche ai 2DS.
|
+ Il 2DS è essenzialmente identico a un Old 3DS in termini di software, per cui tutti i passi della guida che fanno riferimento a un "Old 3DS" si applicano anche ai 2DS.
|
||||||
|
|
|
@ -202,11 +202,9 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LANG_TODO
|
|
||||||
.nav-selector {
|
.nav-selector {
|
||||||
right: 3rem;
|
right: 3rem;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
.visible-links {
|
.visible-links {
|
||||||
display: table;
|
display: table;
|
||||||
|
@ -256,11 +254,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LANG_TODO
|
|
||||||
.links-menu {
|
.links-menu {
|
||||||
right: 3rem !important;
|
right: 3rem !important;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
.hidden-links {
|
.hidden-links {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
10
assets/js/main.min.js
vendored
10
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -14,7 +14,7 @@ var breaks = [];
|
||||||
|
|
||||||
function updateNav() {
|
function updateNav() {
|
||||||
|
|
||||||
var availableSpace = $btn.hasClass('hidden') ? $nav.width() : $nav.width() /* LANG_TODO - $btn.width() */ - 80;
|
var availableSpace = $btn.hasClass('hidden') ? $nav.width() : $nav.width() - $btn.width() - 80;
|
||||||
|
|
||||||
// The visible list is overflowing the nav
|
// The visible list is overflowing the nav
|
||||||
if($vlinks.width() > availableSpace) {
|
if($vlinks.width() > availableSpace) {
|
||||||
|
|
Loading…
Reference in a new issue