Fix many typos and other issues in UI messages.

This commit is contained in:
Bastien Montagne
2020-02-17 13:00:01 +01:00
parent 2d1b05a15f
commit d119e163d0
40 changed files with 156 additions and 116 deletions

View File

@@ -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:

View File

@@ -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'

View File

@@ -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",