Empty captions should be locked (AC0018)
When a Caption property is intentionally left empty, it should always be marked with Locked = true. An empty caption without locking is still extracted into translation files, resulting in meaningless entries that waste translator time and bloat translation resources.
Marking empty captions as locked makes the design intent explicit and prevents unnecessary translation overhead.
A code fix is available for this diagnostic.
Example
The following table field has an empty caption without the Locked property:
table 50100 MyTable
{
fields
{
field(1; MyField; Integer)
{
Caption = ''; // The Caption property is empty but not locked. Empty captions should be marked with Locked = true to prevent translation entries. [AC0018]
}
}
}
To fix this, add Locked = true:
table 50100 MyTable
{
fields
{
field(1; MyField; Integer)
{
Caption = '', Locked = true;
}
}
}