summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-05 12:39:28 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-05 12:50:29 -0700
commitcaef077156ea74bf5869858f71320cf951960efb (patch)
tree2a62161e00d15353bf4b5d60609f81a9d5d3692d /fatcat_scholar
parent9d226fdc4c6486e608c51f2c4fc9a62ff291db1c (diff)
downloadfatcat-scholar-caef077156ea74bf5869858f71320cf951960efb.tar.gz
fatcat-scholar-caef077156ea74bf5869858f71320cf951960efb.zip
add Russian (ru) as interface option
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/base.html1
-rw-r--r--fatcat_scholar/translations/ru/LC_MESSAGES/messages.mobin0 -> 517 bytes
-rw-r--r--fatcat_scholar/web.py2
3 files changed, 2 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 9e27b45..e98b0cb 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -157,6 +157,7 @@
<a class="item" href="/">English</a>
<a class="item" href="/de/">Deutsch</a>
<a class="item" href="/zh/">中文</a>
+ <a class="item" href="/ru/">Русский</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/translations/ru/LC_MESSAGES/messages.mo b/fatcat_scholar/translations/ru/LC_MESSAGES/messages.mo
new file mode 100644
index 0000000..1cff4ed
--- /dev/null
+++ b/fatcat_scholar/translations/ru/LC_MESSAGES/messages.mo
Binary files differ
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index e1f276f..b465453 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"]
+I18N_LANG_TRANSLATIONS = ["de", "zh", "ru"]
I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [
settings.I18N_LANG_DEFAULT,
]