aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-11-18 12:03:55 -0800
committerBryan Newbold <bnewbold@archive.org>2020-11-18 12:03:57 -0800
commit00a4be2a3a26b0179598ec2f31e4490563a53622 (patch)
tree075a83060875b58419b496c3ced3813fd20aad64 /fatcat_scholar
parentc14e3a9d0ef68822da347e59e77c4b2b9a7b0828 (diff)
downloadfatcat-scholar-00a4be2a3a26b0179598ec2f31e4490563a53622.tar.gz
fatcat-scholar-00a4be2a3a26b0179598ec2f31e4490563a53622.zip
i18n: add web interface support for 'hr' (Croatian)
Thanks to @milotype for starting this new translation on weblate!
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/base.html1
-rw-r--r--fatcat_scholar/web.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 5f2fa62..8ac8096 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -165,6 +165,7 @@
<a role="menuitem" class="item" href="/de/">Deutsch</a>
<a role="menuitem" class="item" href="/es/">Español</a>
<a role="menuitem" class="item" href="/fr/">Français</a>
+ <a role="menuitem" class="item" href="/hr/">Hrvatski</a>
<a role="menuitem" class="item" href="/nb/">Norwegian Bokmål</a>
<a role="menuitem" class="item" href="/ru/">Русский</a>
<a role="menuitem" class="item" href="/zh/">中文</a>
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 996d353..6e3524d 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -22,7 +22,7 @@ from fatcat_scholar.search import do_fulltext_search, FulltextQuery, FulltextHit
logger = logging.getLogger()
-I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar", "fr", "es", "nb"]
+I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar", "fr", "es", "nb", "hr"]
I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [
settings.I18N_LANG_DEFAULT,
]