From cf22d196c5e478b219ecfae91cfd94d03f0264c3 Mon Sep 17 00:00:00 2001 From: Juankz Date: Fri, 2 Mar 2018 19:40:52 -0500 Subject: [PATCH] Add some i18n parameters New mo and po files are created under ./locale/ dir Compact text false by default --- .gitignore | 1 + conf.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 316f7d4d..4384da0d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ __pycache__ *~ .directory .vscode/ +*.mo # Finder (MacOS) makes these automatically. .DS_Store diff --git a/conf.py b/conf.py index 4a21caa1..50b99ec3 100644 --- a/conf.py +++ b/conf.py @@ -94,3 +94,10 @@ latex_documents = [ (master_doc, 'GodotEngine.tex', 'Godot Engine Documentation', 'Juan Linietsky, Ariel Manzur and the Godot community', 'manual'), ] + +# -- I18n settings -------------------------------------------------------- +locale_dirs = ['locale/'] +gettext_compact = False +# Exclude class reference when marked with tag i18n. +if tags.has('i18n'): + exclude_patterns = ['classes']