Skip to content

Commit

Permalink
multiple languages
Browse files Browse the repository at this point in the history
  • Loading branch information
bernheder committed Dec 8, 2022
1 parent f370776 commit ec80c19
Show file tree
Hide file tree
Showing 14 changed files with 167 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ __pycache__/
# IDEs
/.idea/
/.vscode/
/docs/locale/de/LC_MESSAGES/build/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
[link-tests]: https://github.com/your_github_username/scverse-doc/actions/workflows/test.yml
[badge-docs]: https://img.shields.io/readthedocs/scverse-doc



Collection of tutorials for scverse packages.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# The full version, including alpha/beta/rc tags
release = info["Version"]

locale_dirs = ['locale/'] # path is example but recommended.
gettext_compact = False

bibtex_bibfiles = ["references.bib"]
templates_path = ["_templates"]
nitpicky = True # Warn about broken links
Expand Down
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
references.md
notebooks/example
notebooks/example_md.md
```

Binary file added docs/locale/de/LC_MESSAGES/index.mo
Binary file not shown.
41 changes: 41 additions & 0 deletions docs/locale/de/LC_MESSAGES/index.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, scverse team.
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-08 13:45+0100\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.11.0\n"

#: ../../../README.md:2
msgid "scverse tutorials"
msgstr "scverse tutorials DEUTSCH"

#: ../../../README.md:4
msgid ""
"[![Tests][badge-tests]][link-tests] [![Documentation][badge-docs]][link-"
"docs]"
msgstr ""

#: ../../../README.md:4
msgid "Tests"
msgstr "Prüfungen"

#: ../../../README.md:4
msgid "Documentation"
msgstr "Dokumentation"

#: ../../../README.md:11
msgid "Collection of tutorials for scverse packages."
msgstr "Sammlung von Tutorials für scverse-Pakete."

Binary file added docs/locale/de/LC_MESSAGES/notebooks/example.mo
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/locale/de/LC_MESSAGES/notebooks/example.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, scverse team.
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-08 13:45+0100\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.11.0\n"

#: ../../notebooks/example.ipynb:10002
msgid "Example notebook"
msgstr ""

Binary file added docs/locale/de/LC_MESSAGES/notebooks/example_md.mo
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/locale/de/LC_MESSAGES/notebooks/example_md.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, scverse team.
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-08 14:58+0100\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.11.0\n"

#: ../../notebooks/example_md.md:16
msgid "Example notebook"
msgstr ""

Binary file added docs/locale/de/LC_MESSAGES/references.mo
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/locale/de/LC_MESSAGES/references.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, scverse team.
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-08 13:45+0100\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.11.0\n"

#: ../../references.md:1
msgid "References"
msgstr "Referenzen"

48 changes: 48 additions & 0 deletions docs/notebooks/example_md.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
jupytext:
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.14.2
kernelspec:
display_name: Python 3.6.8 64-bit
language: python
name: python3
---

+++ {"pycharm": {"name": "#%% md\n"}}

# Example notebook

```{code-cell} ipython3
---
pycharm:
name: '#%%
'
---
import numpy as np
from anndata import AnnData
import scverse_doc
```

```{code-cell} ipython3
---
pycharm:
name: '#%%
'
---
adata = AnnData(np.random.normal(size=(20, 10)))
```

```{code-cell} ipython3
---
pycharm:
name: '#%%
'
---
scverse_doc.pp.basic_preproc(adata)
```
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ doc = [
"myst-nb",
"sphinxcontrib-bibtex>=1.0.0",
"sphinx-autodoc-typehints",
"sphinx-intl",
# For notebooks
"ipykernel",
"sphinx-copybutton",
Expand Down

1 comment on commit ec80c19

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.