Update translation extractor so ternary expressions are not merged.

eg: ("A" if test else "B")
This commit is contained in:
Campbell Barton
2013-02-10 07:11:32 +00:00
parent 372cf93309
commit a643d28446
2 changed files with 62 additions and 24 deletions

View File

@@ -306,6 +306,10 @@ PYTHON3_EXEC = "python3"
# The Blender executable!
# This is just an example, youll most likely have to edit it in your user_settings.py!
BLENDER_EXEC = os.path.abspath(os.path.join(TOOLS_DIR, "..", "..", "..", "..", "blender"))
# check for blender.bin
if not os.path.exists(BLENDER_EXEC):
if os.path.exists(BLENDER_EXEC + ".bin"):
BLENDER_EXEC = BLENDER_EXEC + ".bin"
# The xgettext tool. Youll likely have to edit it in your user_settings.py if youre under Windows.
GETTEXT_XGETTEXT_EXECUTABLE = "xgettext"