From 3f72f599e8831857bc5325da0c4f2e92bf0ab994 Mon Sep 17 00:00:00 2001 From: drymer Date: Sun, 20 Nov 2016 12:54:41 +0100 Subject: [PATCH] Change translation settings --- .gitignore | 2 ++ docs/conf.py | 4 +--- requirements.txt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 20b19ad..c9845be 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ docs/_build/ venv/ *~ .*.swp +docs/locale/es/LC_MESSAGES/*.mo +docs/locale/es/LC_MESSAGES/*/*.mo diff --git a/docs/conf.py b/docs/conf.py index 7f3dc9a..019c873 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,8 +12,6 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys -import os import subprocess # If extensions (or modules to document with autodoc) are in another directory, @@ -65,7 +63,7 @@ release = u'0.1' # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'es' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: diff --git a/requirements.txt b/requirements.txt index 9e8a279..5a548c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ Sphinx>=1.3.6 sphinx_rtd_theme +sphinx-intl