Skip to content

Commit

Permalink
Merge pull request #414 from LibrIT/Documentation_test
Browse files Browse the repository at this point in the history
Documentation test
  • Loading branch information
Raphux committed Apr 12, 2020
2 parents af956ef + f2cf556 commit c1eb12b
Show file tree
Hide file tree
Showing 44 changed files with 601 additions and 3,571 deletions.
2 changes: 1 addition & 1 deletion docs/HOW-BUILD-DOC.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pip3 install sphinx-intl
make gettext

3 - Update po :
sphinx-intl update -p _build -l fr
sphinx-intl update -p _build/locale -l fr
27 changes: 27 additions & 0 deletions docs/build-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
make gettext
sphinx-intl update -p _build/locale -l fr
NEED_TO_UPDATE_TRANSLATION=0
for POFILE in $(find po/fr/LC_MESSAGES/ -iname "*.po")
do
if [ ! -z "$(msggrep -v -T -e "." ${POFILE})" ]
then
if [ ${NEED_TO_UPDATE_TRANSLATION} == 0 ]
then
NEED_TO_UPDATE_TRANSLATION=1
echo -e '\n#########################################'
echo "Those files need to be updated :"
fi
echo $POFILE
fi
done
if $(grep -Ri fuzzy po/ | cut -d: -f1 > /dev/null )
then
if [ ${NEED_TO_UPDATE_TRANSLATION} == 0 ]
then
NEED_TO_UPDATE_TRANSLATION=1
echo -e '\n#########################################'
echo "Those files need to be updated :"
fi
grep -Ri fuzzy po/ | cut -d: -f1
fi
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

# General information about the project.
project = 'PaSSHport'
copyright = '2019, LibrIT'
copyright = '2020, LibrIT'
author = 'LibrIT'

# The version info for the project you're documenting, acts as replacement for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For Debian, install *postgresql-common* and *postgresql-server*
# apt install postgresql-common postgresql-server
For CentOS, install postgresql :
For CentOS, install `postgresql` :

.. code-block:: none
Expand Down Expand Up @@ -51,7 +51,7 @@ Add a password to postgreSQL passhport user :
postgres=# \q
$
passhportd configuration
Passhportd configuration
-------------------------

Change the configuration of the *passhportd.ini* file (``/etc/passhport/passhportd.ini``). You need to change the ``SQLALCHEMY_DATABASE_URI`` parameter to :
Expand Down
2 changes: 1 addition & 1 deletion docs/passhport-admin/target.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ hostname Hostname or IP of the target
This is used to know which hook to launch, depending on the server<br/>
type. If type is something else than `ssh`, the server won't be <br/>
accessible via SSH. If the target is a PostGreSQL server and you <br/>
want to lauch the corresponding hook (usually a proxy to log user <br/>
want to launch the corresponding hook (usually a proxy to log user <br/>
actions, use `postgresql` type). Same explanations for `mysql` and <br/>
`oracle`.<br/>
Use the default `ssh`, unless you have the commercial version.<br/>
Expand Down
19 changes: 0 additions & 19 deletions docs/po/fr/LC_MESSAGES/advanced-usage.po

This file was deleted.

19 changes: 0 additions & 19 deletions docs/po/fr/LC_MESSAGES/api.po

This file was deleted.

31 changes: 0 additions & 31 deletions docs/po/fr/LC_MESSAGES/cli.po

This file was deleted.

19 changes: 0 additions & 19 deletions docs/po/fr/LC_MESSAGES/get-involved.po

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,69 @@ msgstr ""
"Project-Id-Version: PaSSHport\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-24 22:22+0200\n"
"PO-Revision-Date: 2019-06-24 22:34+0200\n"
"PO-Revision-Date: 2020-04-10 17:39+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.7.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"X-Generator: Poedit 1.8.11\n"
"Language: fr_FR\n"
"X-Generator: Poedit 2.2.1\n"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:2
msgid "Add a WSGI server in front of PaSSHport"
msgstr "Ajout d'un servur M"
msgstr "Ajouter un serveur WSGI devant PaSSHport"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:4
msgid ""
"PaSSHport is based on Flask, the builtin web server can handle only one "
"request at a time. It means that you can't really use it in production "
"environnement..."
msgstr ""
"PaSSHport est basé sur Flask, le serveur embarqué ne peut gérer qu'une "
"seule connexion à la fois. Il faut donc éviter de l'utiliser tel-quel en "
"environnement de production…"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:6
msgid ""
"In order to handle more requests, we duplicate the PaSSHport process for "
"every connection. Apache provides such a solution with WSGI... And it's "
"quite easy to activate it."
msgstr ""
"Afin de gérer plus de requêtes, on duplique le nombre de processus "
"PaSSHport pour chaque connexion. Apache permet de faire ça avec WSGI… Et "
"c'est finalement assez simple à activer."

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:9
msgid "Installation"
msgstr ""
msgstr "Installation"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:11
msgid "On Debian :"
msgstr ""
msgstr "Su Debian :"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:18
msgid "Configuration"
msgstr ""
msgstr "Configuration"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:20
msgid "Create a new apache vhost file with this content:"
msgstr ""
msgstr "Créez un nouveau vhost apache avec ce contenu :"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:43
msgid "Activate"
msgstr ""
msgstr "Activez"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:44
msgid "First kill the current passhport process"
msgstr ""
msgstr "Tout d'abord, tuez le processus passhportd existant"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:50
msgid "Deactivate default website and activate this one:"
msgstr ""
msgstr "Désactivez le site par défaut, et activez celui-ci:"

#: ../../installation-and-configuration/apache-wsgi-for-production.rst:60
msgid "and Voilà."
msgstr ""
msgstr "et voilà."
15 changes: 7 additions & 8 deletions docs/po/fr/LC_MESSAGES/installation-and-configuration/index.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,28 @@
#
msgid ""
msgstr ""
"Project-Id-Version: PaSSHport\n"
"Project-Id-Version: PaSSHport\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-05 02:14+0100\n"
"PO-Revision-Date: 2017-11-07 02:32+0100\n"
"PO-Revision-Date: 2020-04-12 15:10+0200\n"
"Last-Translator: \n"
"Language: fr\n"
"Language-Team: Raphaël Berlamont <raphael.berlamont@librit.fr>\n"
"Plural-Forms: nplurals=2; plural=(n > 1)\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.5.1\n"
"X-Generator: Poedit 2.2.1\n"

#: ../../installation-and-configuration/index.rst:2
#, fuzzy
msgid "Installation and configuration"
msgstr "Installation et configuration de PaSSHport"
msgstr "Installation et configuration"

#: ../../installation-and-configuration/index.rst:4
msgid ""
"This chapter describes the installation on different distro, and the main"
" configuration principles."
"This chapter describes the installation on different distro, and the "
"main configuration principles."
msgstr ""
"Ce chapitre décrit l'installation de PaSSHport sur différentes "
"distributions Linux, et certains principes de configuration de base."

0 comments on commit c1eb12b

Please sign in to comment.