-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab9e62b
commit 2f4790a
Showing
20 changed files
with
4,994 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ dist | |
|
||
# Node | ||
node_modules | ||
|
||
# Translations | ||
.doctrees | ||
*.mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# VARIABLE = value | ||
MESSAGE_CATALOG_NAME = iati-sphinx-theme | ||
|
||
.PHONY: help | ||
help: | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " extract to extract translatable strings into POT files" | ||
|
||
.PHONY: extract | ||
extract: | ||
@echo "Extracting messages from theme templates" | ||
pybabel extract -o iati_sphinx_theme/locale/$(MESSAGE_CATALOG_NAME).pot -F babel.cfg iati_sphinx_theme | ||
@echo "Extracting messages from docs/conf.py" | ||
pybabel extract -o docs/locale/${MESSAGE_CATALOG_NAME}.pot -F babel.cfg docs/conf.py | ||
@echo "Extracting messages from RST files" | ||
sphinx-build -b gettext docs docs/locale | ||
|
||
.PHONY: init | ||
init: | ||
pybabel init -i iati_sphinx_theme/locale/$(MESSAGE_CATALOG_NAME).pot -d iati_sphinx_theme/locale --domain=$(MESSAGE_CATALOG_NAME) -l ${lang} | ||
sphinx-intl update -p docs/locale -d docs/locale -l ${lang} | ||
|
||
.PHONY: update | ||
update: | ||
pybabel update -i iati_sphinx_theme/locale/$(MESSAGE_CATALOG_NAME).pot -d iati_sphinx_theme/locale --domain=${MESSAGE_CATALOG_NAME} | ||
sphinx-intl update -p docs/locale -d docs/locale | ||
|
||
.PHONE: compile | ||
compile: | ||
pybabel compile --directory=iati_sphinx_theme/locale --domain=${MESSAGE_CATALOG_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# See https://github.com/python-babel/babel/blob/2a1709a7768f6f07c3d2dbfdb03d3c8a6bd80aef/docs/messages.rst#extraction-method-mapping-and-configuration | ||
[python: **.py] | ||
[jinja2: **.html] | ||
encoding = utf-8 | ||
ignore_tags = script,style | ||
include_attrs = alt title summary placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Spanish translations for PROJECT. | ||
# Copyright (C) 2024 ORGANIZATION | ||
# This file is distributed under the same license as the PROJECT project. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2024-10-03 15:28+0300\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language: es\n" | ||
"Language-Team: es <[email protected]>\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.14.0\n" | ||
|
||
#: docs/conf.py:39 | ||
msgid "Title 2" | ||
msgstr "" | ||
|
||
#~ msgid "Title" | ||
#~ msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) | ||
# This file is distributed under the same license as the IATI Sphinx Theme | ||
# package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: IATI Sphinx Theme \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-10-03 15:18+0300\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language: es\n" | ||
"Language-Team: es <[email protected]>\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.14.0\n" | ||
|
||
#: ../index.rst:5 | ||
msgid "Home" | ||
msgstr "" | ||
|
||
#: ../index.rst:10 | ||
msgid "Development" | ||
msgstr "" | ||
|
||
#: ../index.rst:3 | ||
msgid "IATI Sphinx Theme" | ||
msgstr "" | ||
|
||
#: ../index.rst:19 | ||
msgid "Installation" | ||
msgstr "" | ||
|
||
#: ../index.rst:22 | ||
msgid "Install the theme in your Sphinx project." | ||
msgstr "" | ||
|
||
#: ../index.rst:29 | ||
msgid "In your project's :code:`conf.py` set the :code:`html_theme`." | ||
msgstr "" | ||
|
||
#: ../index.rst:36 | ||
msgid "Configuration" | ||
msgstr "" | ||
|
||
#: ../index.rst:39 | ||
msgid "Plausible Analytics" | ||
msgstr "" | ||
|
||
#: ../index.rst:41 | ||
msgid "" | ||
"To integrate with Plausible Analytics, add the :code:`plausible_domain` " | ||
"option in your project's :code:`conf.py` file." | ||
msgstr "" | ||
|
||
#: ../index.rst:43 | ||
msgid "" | ||
"If your docs site is a subdomain for the site it is documenting, use the " | ||
"top level domain for cross-subdomain tracking. For example, for the " | ||
"Sphinx site :code:`docs.example.com`, use :code:`example.com` as your " | ||
":code:`plausible_domain`." | ||
msgstr "" | ||
|
Oops, something went wrong.