I18n: Disambiguate "Light"

"Light" already has multiple contexts, but some were missing:
- In general, "Light" refers to a Blender Light object. In many cases,
  this comes from an `id_type` enum, already using the ID context. Use
  it also for properties that were missing that context.
- In the context of render passes, "Light" is the actual illumination
  factor, not the light emitor. A new "Render Layer" translation
  context is introduced for this purpose as no existing ones are both
  specific and explicit enough.

Issue reported by Hoang Duy Tran.
This commit is contained in:
Damien Picard
2025-01-04 17:16:49 +01:00
committed by Bastien Montagne
parent 1ee31effca
commit 466af92f7a
7 changed files with 20 additions and 7 deletions

View File

@@ -1562,6 +1562,7 @@ class WM_OT_properties_edit(Operator):
id_type: EnumProperty(
name="ID Type",
items=rna_id_type_items,
translation_context=i18n_contexts.id_id,
default='OBJECT',
)
@@ -2764,6 +2765,7 @@ class WM_OT_batch_rename(Operator):
('SCENE', "Scenes", ""),
('BRUSH', "Brushes", ""),
),
translation_context=i18n_contexts.id_id,
description="Type of data to rename",
)