Attempt to add missing langs
This commit is contained in:
parent
d1a779749d
commit
ec774b7a52
|
@ -11722,6 +11722,12 @@ body {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.dropdown-toggle {
|
||||
padding: 0.375rem 0.75rem;
|
||||
background-color: white;
|
||||
color: black;
|
||||
|
||||
}
|
||||
.dropdown-toggle::after {
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
|
@ -11824,3 +11830,9 @@ body {
|
|||
color: #848E97;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dropdown:hover .dropdown-menu {
|
||||
display: block;
|
||||
overflow-y: scroll;
|
||||
max-height: 350px;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
content = en
|
||||
translations = fr,pl,id
|
||||
translations = de,es,es_419,fr,id,pl,pt,pt_BR,ru
|
||||
i18npath = i18n
|
||||
translate_paragraphwise = False
|
||||
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">
|
||||
<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>
|
||||
<div class="dropdown-menu">
|
||||
{% for alt in alts %}
|
||||
{% if this.alt != alt %}
|
||||
<a class="dropdown-item" href="{{ this.path|url(alt=alt) }}">{{ alt }}</a>
|
||||
{% for id, item in bag('alternatives').items() %}
|
||||
{% if this.alt != id %}
|
||||
<a class="dropdown-item" href="{{ this.path|url(alt=id) }}">{{ item.language }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -10,17 +10,48 @@ primary = yes
|
|||
url_prefix = /
|
||||
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]
|
||||
name = French
|
||||
url_prefix = /fr/
|
||||
locale = fr
|
||||
|
||||
[alternatives.id]
|
||||
name = Indonesian
|
||||
url_prefix = /id/
|
||||
locale = id
|
||||
|
||||
[alternatives.pl]
|
||||
name = Polish
|
||||
url_prefix = /pl/
|
||||
locale = pl
|
||||
|
||||
[alternatives.id]
|
||||
name = Indonesian
|
||||
url_prefix = /id/
|
||||
locale = id
|
||||
[alternatives.pt]
|
||||
name = Portuguese
|
||||
url_prefix = /pt/
|
||||
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