Skip to content

Commit

Permalink
Add country flags / globe in locale selector
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Sep 10, 2019
1 parent cd0de80 commit 49f189b
Show file tree
Hide file tree
Showing 59 changed files with 81 additions and 25 deletions.
10 changes: 5 additions & 5 deletions _includes/main_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
{% if page.lang %}
<div class="dropdown mobile-language-selector more-info-desktop">
<button class="btn btn-sm dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ page.language }}
{{ page.language }} {{ page.flag }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
{% assign pages = site.pages | where:"ref", page.ref | sort: 'language' %}
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }} {{ page.flag }}</a>
</div>
</div>
{% endfor %}
Expand Down Expand Up @@ -91,16 +91,16 @@

<!-- Language selector -->
{% if page.lang %}
<li class="downloads-desktop nav-item dropdown more-info-desktop">
<li class="downloads-desktop nav-item dropdown more-info-desktop language-selector">
<a class="nav-link dropdown-toggle visible-language" href='#' id="languageSelectorDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ page.language }}
{{ page.language }} {{ page.flag }}
</a>
<div class="dropdown-menu" aria-labelledby="languageSelectorDropdown">
{% assign pages = site.pages | where:"ref", page.ref | sort: 'language' %}
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }} {{ page.flag }}</a>
</div>
</div>
{% endfor %}
Expand Down
10 changes: 5 additions & 5 deletions _includes/main_nav_tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
{% if page.lang %}
<div class="dropdown mobile-language-selector more-info-desktop">
<button class="btn btn-sm dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ page.language }}
{{ page.language }} {{ page.flag }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
{% assign pages = site.pages | where:"ref", page.ref | sort: 'language' %}
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }} {{ page.flag }}</a>
</div>
</div>
{% endfor %}
Expand Down Expand Up @@ -93,16 +93,16 @@

<!-- Language selector -->
{% if page.lang %}
<li class="downloads-desktop nav-item dropdown more-info-desktop">
<li class="downloads-desktop nav-item dropdown more-info-desktop language-selector">
<a class="nav-link dropdown-toggle visible-language" href='#' id="languageSelectorDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ page.language }}
{{ page.language }} {{ page.flag }}
</a>
<div class="dropdown-menu" aria-labelledby="languageSelectorDropdown">
{% assign pages = site.pages | where:"ref", page.ref | sort: 'language' %}
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }} {{ page.flag }}</a>
</div>
</div>
{% endfor %}
Expand Down
1 change: 1 addition & 0 deletions community.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Community &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: community
lang: en
flag: 🌐
language: English
---
# Community
Expand Down
14 changes: 7 additions & 7 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ footer, footer ul li {
background-color: #fff !important;
padding: 0 1rem;
height: 70px;
white-space: nowrap;
}

.nav-link {
Expand All @@ -508,10 +509,6 @@ footer, footer ul li {
padding: 23px 1rem;
}

.nav-link.visible-language, .dropdown.mobile-language-selector button {
text-transform: uppercase;
}

.navbar-light .navbar-nav .nav-item .nav-link {
border-bottom: #EBEBEB 1px solid;
font-weight: 400;
Expand All @@ -522,9 +519,12 @@ footer, footer ul li {
border-bottom: #25B135 1px solid;
}

.navbar-brand {
margin-right: 0.65rem;
}
.navbar-expand-lg .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.4rem;
padding-left: 0.4rem;
}

nav .mobile-language-selector {
Expand Down Expand Up @@ -873,7 +873,7 @@ front page

/****************/

@media (max-width: 990px) {
@media (max-width: 991px) {

.accordion-toggle {
padding-right: 0;
Expand Down
1 change: 1 addition & 0 deletions dao.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: The DAO &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: dao
lang: en
flag: 🌐
language: English
---

Expand Down
1 change: 1 addition & 0 deletions de/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Community &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: community
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/dao.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: The DAO &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: dao
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Downloads &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: downloads
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: FAQ &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: faq
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Bisq - The decentralized Bitcoin exchange
banner: /images/bitsquare-home2.jpg
ref: index
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/markets.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Markets &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: markets
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Network Stats &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: stats
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions de/vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Vision &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: vision
lang: de
flag: 🇩🇪
language: Deutsch
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Downloads &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: downloads
lang: en
flag: 🌐
language: English
---
<h1>Bisq Downloads</h1>
Expand Down
1 change: 1 addition & 0 deletions es/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Comunidad &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: community
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/dao.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: The DAO &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: dao
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Downloads &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: downloads
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: FAQ &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: faq
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Bisq - The decentralized Bitcoin exchange
banner: /images/bitsquare-home2.jpg
ref: index
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/markets.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Markets &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: markets
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Network Stats &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: stats
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions es/vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Vision &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: vision
lang: es
flag: 🇪🇸
language: Español
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: FAQ &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: faq
lang: en
flag: 🌐
language: English
---

Expand Down
1 change: 1 addition & 0 deletions fr/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Community &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: community
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/dao.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: The DAO &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: dao
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Downloads &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: downloads
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: FAQ &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: faq
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Bisq - The decentralized Bitcoin exchange
banner: /images/bitsquare-home2.jpg
ref: index
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/markets.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Markets &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: markets
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Network Stats &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: stats
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions fr/vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Vision &lsaquo; Bisq - La plateforme d'échange décentralisée Bitcoin
ref: vision
lang: fr
flag: 🇫🇷
language: Français
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Bisq - The decentralized Bitcoin exchange
banner: /images/bitsquare-home2.jpg
ref: index
lang: en
flag: 🌐
language: English
---

Expand Down
1 change: 1 addition & 0 deletions ja/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
title: Community &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: community
lang: ja
flag: 🇯🇵
language: 日本語
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions ja/dao.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: The DAO &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: dao
lang: ja
flag: 🇯🇵
language: 日本語
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions ja/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Downloads &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: downloads
lang: ja
flag: 🇯🇵
language: 日本語
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions ja/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: FAQ &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: faq
lang: ja
flag: 🇯🇵
language: 日本語
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions ja/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Bisq - The decentralized Bitcoin exchange
banner: /images/bitsquare-home2.jpg
ref: index
lang: ja
flag: 🇯🇵
language: 日本語
outdated_translation: false
---
Expand Down
1 change: 1 addition & 0 deletions ja/markets.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: Bisq Markets &lsaquo; Bisq - The decentralized Bitcoin exchange
ref: markets
lang: ja
flag: 🇯🇵
language: 日本語
outdated_translation: false
---
Expand Down
Loading

0 comments on commit 49f189b

Please sign in to comment.