Add: localization
This commit is contained in:
parent
2e32729b5b
commit
7365065beb
3 changed files with 401 additions and 0 deletions
|
@ -132,6 +132,9 @@ def setup(app: Sphinx) -> Dict[str, Any]:
|
|||
app.add_config_value('gemini_footer', '', 'env')
|
||||
app.add_config_value('gemini_baseurl', '', 'env')
|
||||
|
||||
locale_path = path.join(path.abspath(path.dirname(__file__)), 'locale')
|
||||
app.add_message_catalog('sphinx', locale_path)
|
||||
|
||||
return {
|
||||
'version': __version__,
|
||||
'parallel_read_safe': True,
|
||||
|
|
199
sphinx_gemini_builder/locale/en/LC_MESSAGES/sphinx.po
Normal file
199
sphinx_gemini_builder/locale/en/LC_MESSAGES/sphinx.po
Normal file
|
@ -0,0 +1,199 @@
|
|||
# English translations for sphinx_gemini_builder.
|
||||
# Copyright (C) 2021 ORGANIZATION
|
||||
# This file is distributed under the same license as the
|
||||
# sphinx_gemini_builder project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx_gemini_builder 1.1.0\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-02-03 00:38+0100\n"
|
||||
"PO-Revision-Date: 2021-02-03 00:38+0100\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: en\n"
|
||||
"Language-Team: en <LL@li.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.9.0\n"
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:37
|
||||
#, python-format
|
||||
msgid "The gemini files are in %(outdir)s."
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:64
|
||||
msgid "copying images... "
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:80
|
||||
#, python-format
|
||||
msgid "cannot copy image file %r: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:91
|
||||
msgid "copying downloadable files... "
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:99
|
||||
#, python-format
|
||||
msgid "cannot copy downloadable file %r: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:100
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:261
|
||||
msgid "Read post"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:104
|
||||
#, python-format
|
||||
msgid "Date: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:106
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:109
|
||||
#, python-format
|
||||
msgid "Update: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:114
|
||||
#, python-format
|
||||
msgid "Author: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:120
|
||||
#, python-format
|
||||
msgid "Location: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:126
|
||||
#, python-format
|
||||
msgid "Language: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:132
|
||||
#, python-format
|
||||
msgid "Category: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:138
|
||||
#, python-format
|
||||
msgid "Tag: %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:164
|
||||
msgid "Resource as been moved. Go here."
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:173
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:400
|
||||
msgid "Authors"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:173
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:299
|
||||
msgid "Posts by author"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:174
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:401
|
||||
msgid "Locations"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:174
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:300
|
||||
msgid "Posts from location"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:175
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:402
|
||||
msgid "Languages"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:175
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:301
|
||||
msgid "Posts in language"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:176
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:403
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:176
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:302
|
||||
msgid "Posts in category"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:177
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:411
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:412
|
||||
msgid "All posts"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:177
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:303
|
||||
msgid "Posted in archive"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:178
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:415
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:416
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:178
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:304
|
||||
msgid "Posts tagged"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:216
|
||||
msgid "All Posts"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:217
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:406
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:229
|
||||
msgid "Drafts"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:243
|
||||
msgid "Atom feed"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:255
|
||||
msgid "Go to collection"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:376
|
||||
#, python-format
|
||||
msgid "By %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:381
|
||||
#, python-format
|
||||
msgid "Updated on %s"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:397
|
||||
msgid "# Blog menu"
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/writer.py:152 sphinx_gemini_builder/writer.py:471
|
||||
#: sphinx_gemini_builder/writer.py:532
|
||||
msgid ": "
|
||||
msgstr ""
|
||||
|
||||
#: sphinx_gemini_builder/writer.py:417
|
||||
#, python-format
|
||||
msgid "[image: %s]"
|
||||
msgstr ""
|
||||
|
199
sphinx_gemini_builder/locale/fr/LC_MESSAGES/sphinx.po
Normal file
199
sphinx_gemini_builder/locale/fr/LC_MESSAGES/sphinx.po
Normal file
|
@ -0,0 +1,199 @@
|
|||
# French translations for sphinx_gemini_builder.
|
||||
# Copyright (C) 2021 ORGANIZATION
|
||||
# This file is distributed under the same license as the
|
||||
# sphinx_gemini_builder project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx_gemini_builder 1.1.0\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-02-03 00:38+0100\n"
|
||||
"PO-Revision-Date: 2021-02-03 00:46+0100\n"
|
||||
"Language: fr\n"
|
||||
"Language-Team: fr <LL@li.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.9.0\n"
|
||||
"Last-Translator: \n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:37
|
||||
#, python-format
|
||||
msgid "The gemini files are in %(outdir)s."
|
||||
msgstr "Les fichiers gemini sont dans %(outdir)s."
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:64
|
||||
msgid "copying images... "
|
||||
msgstr "copie des images…"
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:80
|
||||
#, python-format
|
||||
msgid "cannot copy image file %r: %s"
|
||||
msgstr "impossible de copier l'image %r: %s"
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:91
|
||||
msgid "copying downloadable files... "
|
||||
msgstr "copie des fichiers téléchargeables…"
|
||||
|
||||
#: sphinx_gemini_builder/__init__.py:99
|
||||
#, python-format
|
||||
msgid "cannot copy downloadable file %r: %s"
|
||||
msgstr "impossible de copier le fichier téléchargeable %r: %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:100
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:261
|
||||
msgid "Read post"
|
||||
msgstr "Lire l'article"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:104
|
||||
#, python-format
|
||||
msgid "Date: %s"
|
||||
msgstr "Date : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:106
|
||||
msgid "Draft"
|
||||
msgstr "Brouillon"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:109
|
||||
#, python-format
|
||||
msgid "Update: %s"
|
||||
msgstr "Mise à jour : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:114
|
||||
#, python-format
|
||||
msgid "Author: %s"
|
||||
msgstr "Auteur : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:120
|
||||
#, python-format
|
||||
msgid "Location: %s"
|
||||
msgstr "Localisation : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:126
|
||||
#, python-format
|
||||
msgid "Language: %s"
|
||||
msgstr "Langue : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:132
|
||||
#, python-format
|
||||
msgid "Category: %s"
|
||||
msgstr "Catégorie : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:138
|
||||
#, python-format
|
||||
msgid "Tag: %s"
|
||||
msgstr "Tag : %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:164
|
||||
msgid "Resource as been moved. Go here."
|
||||
msgstr "La ressource a été déplacée. Allez ici."
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:173
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:400
|
||||
msgid "Authors"
|
||||
msgstr "Auteurs"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:173
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:299
|
||||
msgid "Posts by author"
|
||||
msgstr "Articles par auteur"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:174
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:401
|
||||
msgid "Locations"
|
||||
msgstr "Localisations"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:174
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:300
|
||||
msgid "Posts from location"
|
||||
msgstr "Articles de la localisation"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:175
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:402
|
||||
msgid "Languages"
|
||||
msgstr "Langues"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:175
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:301
|
||||
msgid "Posts in language"
|
||||
msgstr "Articles dans la langue"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:176
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:403
|
||||
msgid "Categories"
|
||||
msgstr "Catégories"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:176
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:302
|
||||
msgid "Posts in category"
|
||||
msgstr "Articles dans la catégorie"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:177
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:411
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:412
|
||||
msgid "All posts"
|
||||
msgstr "Tous les articles"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:177
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:303
|
||||
msgid "Posted in archive"
|
||||
msgstr "Articles dans les archives"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:178
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:415
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:416
|
||||
msgid "Tags"
|
||||
msgstr "Tags"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:178
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:304
|
||||
msgid "Posts tagged"
|
||||
msgstr "Articles avec le tag"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:216
|
||||
msgid "All Posts"
|
||||
msgstr "Tous les articles"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:217
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:406
|
||||
msgid "All"
|
||||
msgstr "Tous"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:229
|
||||
msgid "Drafts"
|
||||
msgstr "Brouillons"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:243
|
||||
msgid "Atom feed"
|
||||
msgstr "Flux Atom"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:255
|
||||
msgid "Go to collection"
|
||||
msgstr "Allez à la collection"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:376
|
||||
#, python-format
|
||||
msgid "By %s"
|
||||
msgstr "Par %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:381
|
||||
#, python-format
|
||||
msgid "Updated on %s"
|
||||
msgstr "Mis à jour le %s"
|
||||
|
||||
#: sphinx_gemini_builder/ablog_compatibility.py:397
|
||||
msgid "# Blog menu"
|
||||
msgstr "# Menu du blog"
|
||||
|
||||
#: sphinx_gemini_builder/writer.py:152 sphinx_gemini_builder/writer.py:471
|
||||
#: sphinx_gemini_builder/writer.py:532
|
||||
msgid ": "
|
||||
msgstr " : "
|
||||
|
||||
#: sphinx_gemini_builder/writer.py:417
|
||||
#, python-format
|
||||
msgid "[image: %s]"
|
||||
msgstr "[image : %s]"
|
Loading…
Reference in a new issue