Avoid using class names when possible in class reference #6335
Replies: 2 comments
-
I remember there was a proposal/comment about templates/includes in the class reference for snippets repeated in multiple places. |
Beta Was this translation helpful? Give feedback.
-
As I have noticed this too, it is an occasional, on-going effort to standardize descriptions as much as possible:
Unfortunately, this will never be truly possible without some sort of mechanism to copy-paste documentation snippets. Having to reference either 2D or 3D is sometimes inevitable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There are two cases where it's annoying to see a class name. Both when reading the documentation and when translating the class reference.
Use Class Name as a Pun
One typical example is the description related to theme items:
Enum names also have this problem. e.g.:
The
TangentMode
here is not necessary. It can be figured out from property type, parameter type, or method return type.2D / 3D Versions Differ at Class Names Only
For example, the description of
CharacterBody3D.get_last_motion()
is the same as the description of
CharacterBody2D.get_last_motion()
, except for the class name.This creates two unique entries to translate which is unnecessary duplication of work. Translators should phrase different versions similarly.
It's worse for shared descriptions between
Vector2
,Vector2i
,Vector3
,Vector3i
,Vector4
, andVector4i
.It's better to use a generic term when possible, e.g.:
Beta Was this translation helpful? Give feedback.
All reactions