summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-19 09:12:45 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-19 09:12:45 -0700
commit60ab08d42db2ba1fb066a4e0f7845bb99014ffe0 (patch)
tree2b8bb268cf810de56e10e8c19e03315b55f3885b /fatcat_scholar
parent7ccaef80f9cffcca9eaa7bccbeee10f43d43cdf7 (diff)
downloadfatcat-scholar-60ab08d42db2ba1fb066a4e0f7845bb99014ffe0.tar.gz
fatcat-scholar-60ab08d42db2ba1fb066a4e0f7845bb99014ffe0.zip
enable Norwegian (nb) in web interface
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/base.html7
-rw-r--r--fatcat_scholar/web.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index f651214..394a585 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -170,12 +170,13 @@
{# TODO: as a dynamic array #}
{# TODO: do url_for() here, with current endpoint (from request?) #}
<a class="item" href="/en/">English</a>
- <a class="item" href="/de/">Deutsch</a>
- <a class="item" href="/zh/">中文</a>
- <a class="item" href="/ru/">Русский</a>
<a class="item" href="/ar/">عَرَبِيّ</a>
+ <a class="item" href="/de/">Deutsch</a>
<a class="item" href="/es/">Español</a>
<a class="item" href="/fr/">Français</a>
+ <a class="item" href="/nb/">Norwegian Bokmål</a>
+ <a class="item" href="/ru/">Русский</a>
+ <a class="item" href="/zh/">中文</a>
<div class="divider"></div>
<a class="item" href="https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/">{% trans %}Contribute to translations{% endtrans %}</a>
</div>
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 56307ea..86bfb70 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -16,7 +16,7 @@ from fatcat_scholar.search import do_fulltext_search, FulltextQuery, FulltextHit
# print(f"dynaconf settings: {settings.as_dict()}", file=sys.stderr)
-I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar", "fr", "es"]
+I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar", "fr", "es", "nb"]
I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [
settings.I18N_LANG_DEFAULT,
]