Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2024-07-25 10:17:42 +10:00
parent 62afbbef9b
commit 2edc2393d2
25 changed files with 32 additions and 29 deletions

View File

@@ -661,7 +661,7 @@ def dump_py_messages_from_files(msgs, reports, files, settings):
for arg_pos, (arg_kw, arg) in enumerate(func.parameters.items()):
if ((arg_kw in translate_kw) and (not arg.is_output) and (arg.type == 'STRING')):
func_translate_args.setdefault(func_id, {})[arg_kw] = (arg_pos, {})
# We manually add funcs from bpy.app.translations
# We manually add functions from `bpy.app.translations`.
for func_id, func_ids in pgettext_variants:
func_translate_args[func_id] = pgettext_variants_args
for sub_func_id in func_ids:

View File

@@ -58,7 +58,7 @@ FRIBIDI_FLAGS_ARABIC = FRIBIDI_FLAG_SHAPE_ARAB_PRES | FRIBIDI_FLAG_SHAPE_ARAB_LI
MENU_DETECT_REGEX = re.compile("%x\\d+\\|")
##### Kernel processing funcs. #####
##### Kernel processing functions. #####
def protect_format_seq(msg):
"""
Find some specific escaping/formatting sequences (like \", %s, etc.,