From d119e163d0a867fe0263d751231b838c57b95b31 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 17 Feb 2020 13:00:01 +0100 Subject: Fix many typos and other issues in UI messages. --- .../modules/bl_i18n_utils/bl_extract_messages.py | 3 ++- release/scripts/modules/bl_i18n_utils/settings.py | 17 ++++++++++++ .../modules/bl_i18n_utils/utils_spell_check.py | 31 +++++++++++++++++----- 3 files changed, 44 insertions(+), 7 deletions(-) (limited to 'release/scripts/modules/bl_i18n_utils') 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 2034b2ac55c..61c3a8dd52c 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -166,7 +166,8 @@ def print_info(reports, pot): spell_errors = check_ctxt.get("spell_errors") # XXX Temp, no multi_rnatip nor py_in_rna, see below. - keys = multi_lines | not_capitalized | end_point | undoc_ops | spell_errors.keys() + # Also, multi-lines tooltips are valid now. + keys = not_capitalized | end_point | undoc_ops | spell_errors.keys() if keys: _print("WARNINGS:") for key in keys: diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py index c81558db587..e96c94d4f4e 100644 --- a/release/scripts/modules/bl_i18n_utils/settings.py +++ b/release/scripts/modules/bl_i18n_utils/settings.py @@ -288,9 +288,14 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = { "along %s Y", "along %s Z", "along local Z", + "arccos(A)", + "arcsin(A)", + "arctan(A)", "ascii", "author", # Addons' field. :/ "bItasc", + "cos(A)", + "cosh(A)", "dbl-", # Compacted for 'double', for keymap items. "description", # Addons' field. :/ "dx", @@ -326,10 +331,15 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = { "re", "res", "rv", + "sin(A)", "sin(x) / x", + "sinh(A)", "sqrt(x*x+y*y+z*z)", "sRGB", + "tan(A)", + "tanh(A)", "utf-8", + "uv_on_emitter() requires a modifier from an evaluated object", "var", "vBVH", "view", @@ -346,6 +356,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = { "custom matrix", "custom orientation", "edge data", + "exp(A)", "expected a timeline/animation area to be active", "expected a view3d region", "expected a view3d region & editcurve", @@ -357,6 +368,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = { "image format is read-only", "image path can't be written to", "in memory to enable editing!", + "insufficient content", "jumps over", "left", "local", @@ -365,6 +377,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = { "normal", "right", "the lazy dog", + "trunc(A)", "unable to load movie clip", "unable to load text", "unable to open the file", @@ -386,11 +399,15 @@ WARN_MSGID_END_POINT_ALLOWED = { "Circle|Alt .", "Float Neg. Exp.", "Max Ext.", + "Newer graphics drivers may be available to improve Blender support.", "Numpad .", "Pad.", " RNA Path: bpy.types.", "Temp. Diff.", "Temperature Diff.", + "The program will now close.", + "Your graphics card or driver has limited support. It may work, but with issues.", + "Your graphics card or driver is not supported.", } PARSER_CACHE_HASH = 'sha1' diff --git a/release/scripts/modules/bl_i18n_utils/utils_spell_check.py b/release/scripts/modules/bl_i18n_utils/utils_spell_check.py index 3418b4af769..052b3de0d7c 100644 --- a/release/scripts/modules/bl_i18n_utils/utils_spell_check.py +++ b/release/scripts/modules/bl_i18n_utils/utils_spell_check.py @@ -32,15 +32,18 @@ class SpellChecker: # These must be all lower case for comparisons uimsgs = { # OK words - "adaptively", + "adaptively", "adaptivity", "aren", # aren't "betweens", # yuck! in-betweens! "boolean", "booleans", + "chamfer", "couldn", # couldn't "decrement", "derivate", "deterministically", "doesn", # doesn't + "duplications", + "effector", "equi", # equi-angular, etc. "fader", "globbing", @@ -105,7 +108,7 @@ class SpellChecker: "deadzone", "deconstruct", "defocus", - "denoise", "denoising", + "denoise", "denoised", "denoising", "denoiser", "deselect", "deselecting", "deselection", "despill", "despilling", "dirtree", @@ -211,7 +214,9 @@ class SpellChecker: "todo", "tradeoff", "un", + "unassociate", "unassociated", "unbake", + "unclosed", "uncomment", "unculled", "undeformed", @@ -230,10 +235,11 @@ class SpellChecker: "unreferenced", "unregister", "unselect", "unselected", "unselectable", - "unsubdivided", "unsubdivide", + "unsets", "unshadowed", "unspill", "unstitchable", + "unsubdivided", "unsubdivide", "untrusted", "vectorscope", "whitespace", "whitespaces", @@ -269,6 +275,7 @@ class SpellChecker: "scalings", "selectable", "selectability", "shaper", + "smoothen", "smoothening", "spherize", "spherized", "stitchable", "symmetrize", @@ -285,10 +292,13 @@ class SpellChecker: "aero", "amb", "anim", + "aov", "app", "bbox", "bboxes", + "bksp", # Backspace "bool", "calc", + "cfl", "config", "configs", "const", "coord", "coords", @@ -338,8 +348,12 @@ class SpellChecker: "subdiv", "sys", "tex", + "texcoord", "tmr", # timer "tri", "tris", + "udim", "udims", + "upres", # Upresolution + "usd", "uv", "uvs", "uvw", "uw", "uvmap", "ve", "vec", @@ -413,6 +427,7 @@ class SpellChecker: "vorticity", "waveform", "waveforms", "wildcard", "wildcards", + "wintab", # Some Windows tablet API # General computer graphics terms "anaglyph", @@ -437,6 +452,7 @@ class SpellChecker: "cuda", "deinterlace", "dropoff", + "duotone", "dv", "eigenvectors", "emissive", @@ -452,6 +468,7 @@ class SpellChecker: "linearlight", "lossless", "lossy", "luminance", + "mantaflow", "matcap", "midtones", "mipmap", "mipmaps", "mip", @@ -466,6 +483,7 @@ class SpellChecker: "raycasting", "raytrace", "raytracing", "raytraced", "refractions", + "remesher", "remeshing", "remesh", "renderfarm", "scanfill", "shader", "shaders", @@ -549,8 +567,9 @@ class SpellChecker: "shrinkwrap", "softbody", "stucci", - "sunsky", "subsurf", + "subtype", + "sunsky", "tessface", "tessfaces", "texface", "timeline", "timelines", @@ -712,7 +731,7 @@ class SpellChecker: "gltf", "gzip", "ico", - "jpg", "jpeg", + "jpg", "jpeg", "jpegs", "json", "matroska", "mdd", @@ -724,7 +743,7 @@ class SpellChecker: "osl", "oso", "piz", - "png", + "png", "pngs", "po", "quicktime", "rle", -- cgit v1.2.3