Attempt to add missing langs
This commit is contained in:
parent
d1a779749d
commit
ec774b7a52
|
@ -11722,6 +11722,12 @@ body {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle {
|
||||||
|
padding: 0.375rem 0.75rem;
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
|
||||||
|
}
|
||||||
.dropdown-toggle::after {
|
.dropdown-toggle::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0;
|
width: 0;
|
||||||
|
@ -11824,3 +11830,9 @@ body {
|
||||||
color: #848E97;
|
color: #848E97;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown:hover .dropdown-menu {
|
||||||
|
display: block;
|
||||||
|
overflow-y: scroll;
|
||||||
|
max-height: 350px;
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
content = en
|
content = en
|
||||||
translations = fr,pl,id
|
translations = de,es,es_419,fr,id,pl,pt,pt_BR,ru
|
||||||
i18npath = i18n
|
i18npath = i18n
|
||||||
translate_paragraphwise = False
|
translate_paragraphwise = False
|
||||||
url_prefix = https://queerscriptors.org/
|
url_prefix = https://queerscriptors.org/
|
||||||
|
|
39
databags/alternatives.ini
Normal file
39
databags/alternatives.ini
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
[en]
|
||||||
|
url = /
|
||||||
|
language = English (en)
|
||||||
|
|
||||||
|
[de]
|
||||||
|
url = /de/
|
||||||
|
language = Deutsch (de)
|
||||||
|
|
||||||
|
[es]
|
||||||
|
url = /es/
|
||||||
|
language = Español (es)
|
||||||
|
|
||||||
|
[es_419]
|
||||||
|
url = /es_419/
|
||||||
|
language = Español de América (es_419)
|
||||||
|
|
||||||
|
[fr]
|
||||||
|
language = Français (fr)
|
||||||
|
url = /fr/
|
||||||
|
|
||||||
|
[id]
|
||||||
|
language = Bahasa Indonesia (id)
|
||||||
|
url = /id/
|
||||||
|
|
||||||
|
[pl]
|
||||||
|
language = Polski (pl)
|
||||||
|
url = /pl/
|
||||||
|
|
||||||
|
[pt]
|
||||||
|
language = Português (pt)
|
||||||
|
url = /pt/
|
||||||
|
|
||||||
|
[pt-BR]
|
||||||
|
language = Português Brasil (pt-BR)
|
||||||
|
url = /pt_BR/
|
||||||
|
|
||||||
|
[ru]
|
||||||
|
language = Русский (ru)
|
||||||
|
url = /ru/
|
|
@ -1,12 +1,12 @@
|
||||||
{% set alts = get_alts() %}
|
{% set alts = bag('alternatives').items() %}
|
||||||
<div class="btn-group dropdown pull-right">
|
<div class="btn-group dropdown pull-right">
|
||||||
<button type="button" class="btn btn-dark bg-dark dropdown-toggle btn-block my-3 my-sm-0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button type="button" class="btn btn-dark bg-dark dropdown-toggle btn-block my-3 my-sm-0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
{{ this.alt }}
|
{{ bag('alternatives', this.alt, 'language') }}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
{% for alt in alts %}
|
{% for id, item in bag('alternatives').items() %}
|
||||||
{% if this.alt != alt %}
|
{% if this.alt != id %}
|
||||||
<a class="dropdown-item" href="{{ this.path|url(alt=alt) }}">{{ alt }}</a>
|
<a class="dropdown-item" href="{{ this.path|url(alt=id) }}">{{ item.language }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,17 +10,48 @@ primary = yes
|
||||||
url_prefix = /
|
url_prefix = /
|
||||||
locale = en
|
locale = en
|
||||||
|
|
||||||
|
[alternatives.de]
|
||||||
|
name = German
|
||||||
|
url_prefix = /de/
|
||||||
|
locale = de
|
||||||
|
|
||||||
|
[alternatives.es]
|
||||||
|
name = Spanish
|
||||||
|
url_prefix = /es/
|
||||||
|
locale = es
|
||||||
|
|
||||||
|
[alternatives.es_419]
|
||||||
|
name = LatAmSpanish
|
||||||
|
url_prefix = /es_419/
|
||||||
|
locale = es_419
|
||||||
|
|
||||||
[alternatives.fr]
|
[alternatives.fr]
|
||||||
name = French
|
name = French
|
||||||
url_prefix = /fr/
|
url_prefix = /fr/
|
||||||
locale = fr
|
locale = fr
|
||||||
|
|
||||||
|
[alternatives.id]
|
||||||
|
name = Indonesian
|
||||||
|
url_prefix = /id/
|
||||||
|
locale = id
|
||||||
|
|
||||||
[alternatives.pl]
|
[alternatives.pl]
|
||||||
name = Polish
|
name = Polish
|
||||||
url_prefix = /pl/
|
url_prefix = /pl/
|
||||||
locale = pl
|
locale = pl
|
||||||
|
|
||||||
[alternatives.id]
|
[alternatives.pt]
|
||||||
name = Indonesian
|
name = Portuguese
|
||||||
url_prefix = /id/
|
url_prefix = /pt/
|
||||||
locale = id
|
locale = pt
|
||||||
|
|
||||||
|
[alternatives.pt_BR]
|
||||||
|
name = Portuguese Brazil
|
||||||
|
url_prefix = /pt_BR/
|
||||||
|
locale = pt_BR
|
||||||
|
|
||||||
|
[alternatives.ru]
|
||||||
|
name = Russian
|
||||||
|
url_prefix = /ru/
|
||||||
|
locale = ru
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue