From ec8087644bfbeacae6de11e841ed0c4f19ac5846 Mon Sep 17 00:00:00 2001 From: Julian B Date: Mon, 18 Jan 2021 16:57:45 +0100 Subject: [PATCH] add translations --- docs/locales/de_DE/LC_MESSAGES/admin.po | 27 +++ docs/locales/de_DE/LC_MESSAGES/development.po | 164 ++++++++++++++++++ docs/locales/de_DE/LC_MESSAGES/index.po | 30 ++++ docs/locales/de_DE/LC_MESSAGES/user.po | 29 ++++ poetry.lock | 23 ++- pyproject.toml | 1 + 6 files changed, 273 insertions(+), 1 deletion(-) create mode 100644 docs/locales/de_DE/LC_MESSAGES/admin.po create mode 100644 docs/locales/de_DE/LC_MESSAGES/development.po create mode 100644 docs/locales/de_DE/LC_MESSAGES/index.po create mode 100644 docs/locales/de_DE/LC_MESSAGES/user.po diff --git a/docs/locales/de_DE/LC_MESSAGES/admin.po b/docs/locales/de_DE/LC_MESSAGES/admin.po new file mode 100644 index 000000000..ed0bc21df --- /dev/null +++ b/docs/locales/de_DE/LC_MESSAGES/admin.po @@ -0,0 +1,27 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2021, ephios-dev +# This file is distributed under the same license as the ephios package. +# FIRST AUTHOR , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ephios \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-18 16:44+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \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" + +#: ../../admin/index.rst:2 +msgid "Administration documentation" +msgstr "" + +#: ../../admin/index.rst:4 +msgid "This section shows how to install ephios." +msgstr "" + diff --git a/docs/locales/de_DE/LC_MESSAGES/development.po b/docs/locales/de_DE/LC_MESSAGES/development.po new file mode 100644 index 000000000..b07170235 --- /dev/null +++ b/docs/locales/de_DE/LC_MESSAGES/development.po @@ -0,0 +1,164 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2021, ephios-dev +# This file is distributed under the same license as the ephios package. +# FIRST AUTHOR , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ephios \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-18 16:44+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \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" + +#: ../../development/contributing.rst:2 +msgid "Contributing" +msgstr "" + +#: ../../development/contributing.rst:4 +msgid "" +"Contributions to ephios are welcome. If you want to see what we are " +"currently up to, check the available `issues `_." +msgstr "" + +#: ../../development/contributing.rst:7 +msgid "" +"If you have an idea for new feature you should start by deciding whether " +"you want to write a plugin (see :doc:`plugin`) or to contribute the " +"feature to the ephios core code. A plugin is usually suitable if the " +"feature is very specific to a small set of users (e.g. a specific signup " +"process only used in your local organisation) or the feature is not " +"related to the core tasks of ephios (e.g. a system for stock management)." +" If all ephios users could profit from your feature, you should consider " +"contributing it to the core code. Please start by describing your feature" +" in a new issue in the GitHub repository to coordinate the extent with " +"us. When working on existing issues, please assign yourself and create a " +"pull request early on." +msgstr "" + +#: ../../development/contributing.rst:16 +msgid "Development setup" +msgstr "" + +#: ../../development/contributing.rst:18 +msgid "" +"To set up a development version on your local machine, you need to " +"execute the following steps:" +msgstr "" + +#: ../../development/contributing.rst:20 +msgid "" +"Check out the `repository `_ and cd" +" to it" +msgstr "" + +#: ../../development/contributing.rst:21 +msgid "Set up a virtualenv for the project with Python >=3.8 and activate it" +msgstr "" + +#: ../../development/contributing.rst:22 +msgid "" +"Install poetry (if not already installed): `Installation guide `_" +msgstr "" + +#: ../../development/contributing.rst:23 +msgid "Install dependencies with ``poetry install``" +msgstr "" + +#: ../../development/contributing.rst:24 +msgid "Create env file with ``cp .env.example .env``" +msgstr "" + +#: ../../development/contributing.rst:25 +msgid "Migrate the database with ``python manage.py migrate``" +msgstr "" + +#: ../../development/contributing.rst:26 +msgid "" +"Compile translations with ``python manage.py compilemessages`` and " +"``python manage.py compilejsi18n``" +msgstr "" + +#: ../../development/contributing.rst:27 +msgid "Load data for testing with ``python manage.py setupdata debug``" +msgstr "" + +#: ../../development/contributing.rst:28 +msgid "Start the development server with ``python manage.py runserver``" +msgstr "" + +#: ../../development/contributing.rst:29 +msgid "" +"Open your web browser, visit ``http://localhost:8000`` and log in with " +"the default credentials (user ``admin@localhost`` and password ``admin``)" +msgstr "" + +#: ../../development/contributing.rst:32 +msgid "Tests" +msgstr "" + +#: ../../development/contributing.rst:34 +msgid "" +"We are using `pytest `_ along with " +"`django-webtest `_. " +"Please write tests for new features or fixed bugs. You can use your IDE " +"integration to run the tests or execute the whole test suite with " +"``pytest``." +msgstr "" + +#: ../../development/contributing.rst:39 +msgid "Code style" +msgstr "" + +#: ../../development/contributing.rst:41 +msgid "" +"We are enforcing a good code style for every pull request. To ensure that" +" you only commit appropriate code, we recommend installing a pre-commit " +"hook with ``pre-commit install``. You can have a look at ``.pre-commit-" +"config.yaml`` to check how this works. In short it executes the following" +" steps before every commit:" +msgstr "" + +#: ../../development/contributing.rst:45 +msgid "run ``autoflake`` with a couple of flags to remove unused imports," +msgstr "" + +#: ../../development/contributing.rst:46 +msgid "run ``isort .`` to sort imports," +msgstr "" + +#: ../../development/contributing.rst:47 +msgid "run ``black .`` to format the code." +msgstr "" + +#: ../../development/contributing.rst:49 +msgid "" +"If you want to do that manually, run ``pre-commit run --all-files``. Next" +" to that, we also run ``pylint ephios`` to check for semantic issues in " +"the code." +msgstr "" + +#: ../../development/index.rst:2 +msgid "Development guide" +msgstr "" + +#: ../../development/index.rst:4 +msgid "This section shows how to contribute to ephios and how to develop plugins." +msgstr "" + +#: ../../development/plugin.rst:2 +msgid "Developing plugins for ephios" +msgstr "" + +#: ../../development/plugin.rst:4 +msgid "The plugin infrastructure is currently under construction." +msgstr "" + diff --git a/docs/locales/de_DE/LC_MESSAGES/index.po b/docs/locales/de_DE/LC_MESSAGES/index.po new file mode 100644 index 000000000..a3cabb853 --- /dev/null +++ b/docs/locales/de_DE/LC_MESSAGES/index.po @@ -0,0 +1,30 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2021, ephios-dev +# This file is distributed under the same license as the ephios package. +# FIRST AUTHOR , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ephios \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-18 16:44+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \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" + +#: ../../index.rst:7 +msgid "Welcome to ephios's documentation!" +msgstr "" + +#: ../../index.rst:9 +msgid "" +"This documentation explains how to use, install or extend ephios. If you " +"can't find what you're looking for in the corresponding section, feel " +"free to contact us." +msgstr "" + diff --git a/docs/locales/de_DE/LC_MESSAGES/user.po b/docs/locales/de_DE/LC_MESSAGES/user.po new file mode 100644 index 000000000..d6ff68315 --- /dev/null +++ b/docs/locales/de_DE/LC_MESSAGES/user.po @@ -0,0 +1,29 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2021, ephios-dev +# This file is distributed under the same license as the ephios package. +# FIRST AUTHOR , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ephios \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-18 16:44+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \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" + +#: ../../user/index.rst:2 +msgid "User Guide" +msgstr "" + +#: ../../user/index.rst:4 +msgid "" +"This section shows how to use ephios. This includes functionality for " +"volunteers as well as for planners." +msgstr "" + diff --git a/poetry.lock b/poetry.lock index f1e7c1409..5048a7c8b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -855,6 +855,23 @@ docs = ["sphinxcontrib-websupport"] lint = ["flake8 (>=3.5.0)", "isort", "mypy (>=0.790)", "docutils-stubs"] test = ["pytest", "pytest-cov", "html5lib", "cython", "typed-ast"] +[[package]] +name = "sphinx-intl" +version = "2.0.1" +description = "Sphinx utility that make it easy to translate and to apply translation." +category = "dev" +optional = false +python-versions = ">=3.5" + +[package.dependencies] +babel = "*" +click = "*" +sphinx = "*" + +[package.extras] +test = ["pytest", "mock"] +transifex = ["transifex_client (>=0.11)"] + [[package]] name = "sphinx-rtd-theme" version = "0.5.1" @@ -1068,7 +1085,7 @@ pgsql = ["psycopg2"] [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "31d36fe5d159458202107d41162b4e825c62d54dce16bafe86ff2e0dd4574496" +content-hash = "6b4d8aeaedb9faded1ae7dc6979c570488609c2624d3d77da4ca765e943c6153" [metadata.files] alabaster = [ @@ -1597,6 +1614,10 @@ sphinx = [ {file = "Sphinx-3.4.3-py3-none-any.whl", hash = "sha256:c314c857e7cd47c856d2c5adff514ac2e6495f8b8e0f886a8a37e9305dfea0d8"}, {file = "Sphinx-3.4.3.tar.gz", hash = "sha256:41cad293f954f7d37f803d97eb184158cfd90f51195131e94875bc07cd08b93c"}, ] +sphinx-intl = [ + {file = "sphinx-intl-2.0.1.tar.gz", hash = "sha256:b25a6ec169347909e8d983eefe2d8adecb3edc2f27760db79b965c69950638b4"}, + {file = "sphinx_intl-2.0.1-py3.8.egg", hash = "sha256:2ff97cba0e4e43249e339a3c29dd2f5b63c25ce794050aabca320ad95f5c5b55"}, +] sphinx-rtd-theme = [ {file = "sphinx_rtd_theme-0.5.1-py2.py3-none-any.whl", hash = "sha256:fa6bebd5ab9a73da8e102509a86f3fcc36dec04a0b52ea80e5a033b2aba00113"}, {file = "sphinx_rtd_theme-0.5.1.tar.gz", hash = "sha256:eda689eda0c7301a80cf122dad28b1861e5605cbf455558f3775e1e8200e83a5"}, diff --git a/pyproject.toml b/pyproject.toml index 82271cbd5..212db883d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ pylint = "^2.6.0" autoflake = "^1.4" Sphinx = "^3.4.3" sphinx-rtd-theme = "^0.5.1" +sphinx-intl = "^2.0.1" [tool.black] line-length = 100