aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-14 03:05:02 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-14 03:05:05 -0700
commitfee0dc1b61cb53944692c3cb78b390ce830b7038 (patch)
treeac61ad3593fa9511caf59fdac9e21e116e714416
parente7f1129770a7a55840c099461e8493c9950a91d1 (diff)
downloadfatcat-scholar-fee0dc1b61cb53944692c3cb78b390ce830b7038.tar.gz
fatcat-scholar-fee0dc1b61cb53944692c3cb78b390ce830b7038.zip
i18n: enable arabic (ar)
There are no existing translated strings, but enabling to develop/demonstrate RTL design.
-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 5178ba4..6cf6138 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -158,6 +158,7 @@
<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>
<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 58d282d..25b840c 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"]
+I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar"]
I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [
settings.I18N_LANG_DEFAULT,
]