tornavis/source/blender/animrig
Damien Picard 730bb2ee3e I18n: make new bones and bone collections' names translatable
Newly created bones and bone collections get a default name. Like
other types of data, these names should be translated if the user
enabled the translation of new data in the preferences.

This commit adds the appropriate `DATA_()` macro:
- when creating a new armature;
- when creating a new bone;
- when creating a new bone collection through `ANIM_bonecoll_new()`;
- when ensuring that a new bone collection has a unique name;
- when renaming a bone collection;
- in the bone collection tests, to check that new bones have the
  expected translated name.

It also sets the default value of the bone name in the
`ARMATURE_OT_bone_primitive_add()` operator to a null string instead
of "Bone", so that the default name may be chosen while checking for
unique names, since an empty string will default to the translation.

Pull Request: https://projects.blender.org/blender/blender/pulls/113171
2023-10-05 14:38:51 +02:00
..
intern I18n: make new bones and bone collections' names translatable 2023-10-05 14:38:51 +02:00
ANIM_armature_iter.hh Anim: move bone colors from bone groups to individual bones 2023-08-29 14:31:18 +02:00
ANIM_bone_collections.h Collada: add bone collection support 2023-09-21 17:09:25 +02:00
ANIM_bone_collections.hh Fix #111780: bone collections and undo don't work together 2023-09-11 18:28:15 +02:00
ANIM_bonecolor.hh Anim: make `ANIM_bonecolor_posebone_get` handle const only 2023-09-25 17:29:04 +02:00
CMakeLists.txt I18n: make new bones and bone collections' names translatable 2023-10-05 14:38:51 +02:00