[Bf-blender-cvs] [4cbcbacc6a8] master: I18n messages extraction: do not report multi-lines messages anymore.

Bastien Montagne noreply at git.blender.org
Thu Aug 1 12:53:00 CEST 2019


Commit: 4cbcbacc6a8aba1a0a38a4eb4a221e0a436b2bdb
Author: Bastien Montagne
Date:   Thu Aug 1 12:52:10 2019 +0200
Branches: master
https://developer.blender.org/rB4cbcbacc6a8aba1a0a38a4eb4a221e0a436b2bdb

I18n messages extraction: do not report multi-lines messages anymore.

Those are now supported for tooltips.

===================================================================

M	release/scripts/modules/bl_i18n_utils/bl_extract_messages.py

===================================================================

diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
index 0efb24003e7..fdd36589d4d 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -174,8 +174,9 @@ def print_info(reports, pot):
                 _print("\tThe following operators are undocumented!")
             else:
                 _print("\t“{}”|“{}”:".format(*key))
-                if multi_lines and key in multi_lines:
-                    _print("\t\t-> newline in this message!")
+                # We support multi-lines tooltips now...
+                # ~ if multi_lines and key in multi_lines:
+                    # ~ _print("\t\t-> newline in this message!")
                 if not_capitalized and key in not_capitalized:
                     _print("\t\t-> message not capitalized!")
                 if end_point and key in end_point:



More information about the Bf-blender-cvs mailing list