Skip to content
Snippets Groups Projects
Commit 487c5b1b authored by mazenovi's avatar mazenovi
Browse files

fix i18n issues

parent ed80068d
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,11 @@ build:
- pip install --editable .
- cd content && npm install && cd ..
- sed -i "s/RELATIVE_URLS = True/RELATIVE_URLS = False/" pelicanconf.py
- apt-get install -y --force-yes locales
- locale-gen fr_FR
- locale-gen fr_FR.UTF-8
- update-locale LANG=fr_FR.UTF-8
- . /etc/default/locale
- pelican content
artifacts:
......
Title: ispcli
slug: ispcli
lang: en
save_as: ispcli-en.html
url: ispcli-en.html
Date: 2017-09-20 10:20
Category: <i class='fa fa-graduation-cap' aria-hidden='true'></i> &Eacute;tudiants
Tags: Projets tutorés, www
## Contexte
[ISPConfig](https://www.ispconfig.org/) est un outil de gestion de serveur (web, mail, dns) via une interface web.
[une API SOAP](http://docs.ispconfig.org/development/remote-api/) est disponible depuis la version 3.
Ce projet vise à implémenter un client d'api en ligne de commande.
A titre d'exemple [python-gitlab](http://python-gitlab.readthedocs.io/en/stable/cli.html) est un client d'API pour gitlab.
Les commandes à implémenter concernent toutes les actions de
* configuration du serveur
* gestion des clients
* gestion des hotes web
* gestion des utilisateurs ssh
* gestion des bases de données
* gestion des utilisateurs bases de données
* gestion des entréees DNS
* gestion des comptes mail
Seule la partie gestion de la virtualisation pourra être mise de côté.
## Résultat attendu
un dépôt sur [https://gitlab.isima.fr](https://gitlab.isima.fr) contenant
* le code source implémentant les fonctionnalités demandées
* un fichier `README.md` documentant l'installation, la configuration et l'utilisation du service
* un rapport détaillé du travail réalisé
## Technologies
* [HTTP](https://fr.wikipedia.org/wiki/Hypertext_Transfer_Protocol), [PHP](http://php.net/manual/fr/intro-whatis.php), [SOAP](https://fr.wikipedia.org/wiki/SOAP), [ISPConfig](https://www.ispconfig.org/)
## Points à considérer
* l'ergonomie
* facilité de configuration
* simplicité d'utilisation
* commandes intuitives
* possibilité de batcher certaines opérations
Title: ispcli
slug: ispcli
lang: fr
Date: 2017-09-20 10:20
Category: <i class='fa fa-graduation-cap' aria-hidden='true'></i> &Eacute;tudiants
Tags: Projets tutorés, www
......
......@@ -2,8 +2,6 @@ Title: ZZ2 F5 WebSec
Date: 2017-11-20 10:55
Category: <i class='fa fa-graduation-cap' aria-hidden='true'></i> &Eacute;tudiants
Tags: cours
Translations:
- en: pipo.html
[TOC]
......
Title: <i class="fa fa-briefcase" aria-hidden="true"></i> &agrave; propos
Date: 2010-05-17 10:27
Category: <i class="fa fa-briefcase" aria-hidden="true"></i> &agrave; propos
slug: index
lang: en
save_as: index.html
url: index.html
Je suis ingénieur d'études [CNRS](http://www.cnrs.fr) depuis 2002.
J'ai intégré le [LIMOS](https://limos.isima.fr/) en juillet 2016.
Au [LIMOS](https://limos.isima.fr/) j'interviens à différents niveaux dans des projets recherches
* montage du projet
* gestion du projet
* développement logiciel lié au projet
Au sein de l'équipe [CRI de l'ISIMA/LIMOS](https://cri.isima.fr) Je participe à la gestion
* de la plateforme d'hébergement web
* de [la forge logicielle](https://gitlab.isima.fr)
Je suis également impliqué dans la chaîne fonctionnelle [SSI](https://fr.wikipedia.org/wiki/S%C3%A9curit%C3%A9_des_syst%C3%A8mes_d%27information) du [CNRS](http://www.cnrs.fr)
* Je suis expert SSI à la [CRSSI](http://www.dr7.cnrs.fr/spip.php?rubrique856) de la délégation RHône Alpes Auvergne du CNRS
* Je suis [CSSI](http://aresu.dsi.cnrs.fr/spip.php?article120) (Correspondant Sécurité Système d'Information) pour le LIMOS
* je participe également aux actions SSI de l'UCA
Vous trouverez ici
* mon [blog](/blog.html) qui référence des notes techniques et autres
* des supports de [cours](/cours.html)
* la liste des [projets](/projets.html) auquels je participe
* les rapports de [recherche](/recherche.html) aux quels j'ai participé
Title: <i class="fa fa-briefcase" aria-hidden="true"></i> &agrave; propos
Date: 2010-05-17 10:27
Category: <i class="fa fa-briefcase" aria-hidden="true"></i> &agrave; propos
slug: index
lang: fr
save_as: index.html
url: index.html
Je suis ingénieur d'études [CNRS](http://www.cnrs.fr) depuis 2002.
......
......@@ -57,9 +57,10 @@ SOCIAL = (
)
)
INDEX_SAVE_AS = 'index.html'
PAGE_SAVE_AS = '{slug}.html'
PAGE_URL = '{slug}.html'
#INDEX_SAVE_AS = 'index.html'
#PAGE_SAVE_AS = '{slug}.html'
#PAGE_URL = '{slug}.html'
# INDEX_LABEL = '<i class="fa fa-lightbulb-o" aria-hidden="true"></i> Blog'
# HIDE_SIDEBAR = 'true'
......@@ -93,6 +94,19 @@ DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
# Vous ne devriez pas toucher à cette partie
# à moins que vous ne sachiez ce que vous faites ;)
RELATIVE_URLS = True
DEFAULT_LANG = 'fr'
LOCALE = "fr_FR.UTF-8"
ROOT_LANG = 'fr'
I18N_TEMPLATES_LANG = 'en'
I18N_SUBSITES = {
'en': {
'OUTPUT_PATH': 'output/en/',
},
'fr': {
'Summary': 'Table des matières',
}
}
DEFAULT_PAGINATION = 10
BOOTSTRAP_THEME = "flatly"
PATH = 'content'
......@@ -123,22 +137,15 @@ MARKDOWN = {
},
'output_format': 'html5',
}
I18N_TEMPLATES_LANG = 'en'
I18N_SUBSITES = {
'en': {
'OUTPUT_PATH': 'output/en/',
},
'fr': {
'Summary': 'Table des matières',
}
}
# https://bootswatch.com/
SHOW_ARTICLE_AUTHOR = False
SHOW_ARTICLE_CATEGORY = True
SHOW_DATE_MODIFIED = True
CUSTOM_CSS = 'static/custom.css'
STATIC_PATHS = ['images', 'extra/custom.css', 'node_modules', 'slides']
ARTICLE_EXCLUDES = ['node_modules', 'slides']
#ARTICLE_EXCLUDES = ['node_modules', 'slides']
#PAGE_EXCLUDES = ['node_modules', 'slides']
#STATIC_EXCLUDES = ['node_modules', 'slides']
EXTRA_PATH_METADATA = {
'extra/custom.css': {'path': 'static/custom.css'}
}
......@@ -150,7 +157,6 @@ DISPLAY_CATEGORY_IN_BREADCRUMBS = True
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = True
BOOTSTRAP_NAVBAR_INVERSE = False
DEFAULT_LANG = 'fr'
DISPLAY_ARTICLE_INFO_ON_INDEX = True
DISABLE_SIDEBAR_TITLE_ICONS = True
PAGE_PATHS = ['pages']
......@@ -153,7 +153,7 @@
{% if ARCHIVES_SAVE_AS %}
<li><a href="{{ SITEURL }}/{{ ARCHIVES_URL | default('archives.html') }}"><i class="fa fa-th-list"></i><span class="icon-label">{{ _('Archives') }}</span></a></li>
{% endif %}
<li><img src="{{ SITEURL }}/images/limos.png"></li>
</ul>
</div>
......
......@@ -2,7 +2,11 @@
{% if article.translations %}
<span class="label label-default">{{ _('Lang') }}</span>
{% for translation in article.translations %}
{% if translation.lang == ROOT_LANG %}
<a href="/{{ translation.url[6:] }}">{{ translation.lang }}</a>
{% else %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endif %}
{% endfor %}
{% endif %}
{% endmacro %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment