瀏覽代碼

Add some i18n parameters

New mo and po files are created under ./locale/ dir
Compact text false by default
Juankz 7 年之前
父節點
當前提交
cf22d196c5
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 1 0
      .gitignore
  2. 7 0
      conf.py

+ 1 - 0
.gitignore

@@ -6,6 +6,7 @@ __pycache__
 *~
 .directory
 .vscode/
+*.mo
 
 # Finder (MacOS) makes these automatically.
 .DS_Store

+ 7 - 0
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']