aboutsummaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-05-12 15:50:49 -0700
committerBryan Newbold <bnewbold@archive.org>2020-05-12 15:50:49 -0700
commitef162e8d070f51f422e57e9cfd62beb1db47e932 (patch)
tree88d77c9d55f0e75b605b1956602f1017b26783e6 /extra
parent221fe40a0440b86773ad17db967ed4335d9e4da9 (diff)
downloadfatcat-scholar-ef162e8d070f51f422e57e9cfd62beb1db47e932.tar.gz
fatcat-scholar-ef162e8d070f51f422e57e9cfd62beb1db47e932.zip
very hack-y i18n support in jinja2 templates
Diffstat (limited to 'extra')
-rw-r--r--extra/i18n/babel.cfg4
-rw-r--r--extra/i18n/web_interface.pot27
2 files changed, 31 insertions, 0 deletions
diff --git a/extra/i18n/babel.cfg b/extra/i18n/babel.cfg
new file mode 100644
index 0000000..ff50c82
--- /dev/null
+++ b/extra/i18n/babel.cfg
@@ -0,0 +1,4 @@
+[python 1="**.py" language=":"][/python]
+[jinja2: **/templates/**.html]
+encoding = utf-8
+extensions = jinja2.ext.autoescape,jinja2.ext.with_
diff --git a/extra/i18n/web_interface.pot b/extra/i18n/web_interface.pot
new file mode 100644
index 0000000..b9b0b7f
--- /dev/null
+++ b/extra/i18n/web_interface.pot
@@ -0,0 +1,27 @@
+# Translations template for PROJECT.
+# Copyright (C) 2020 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2020-05-12 14:16-0700\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 2.6.0\n"
+
+#: fatcat_scholar/templates/home.html:8
+msgid "This is a longer paragraph, all of which should be translated."
+msgstr ""
+
+#: fatcat_scholar/templates/home.html:10
+msgid "this is a quick"
+msgstr ""
+