Page MenuHome

I18n: disambiguate and extract a few messages
ClosedPublic

Authored by Damien Picard (pioverfour) on Sep 11 2022, 7:48 PM.

Details

Summary

Disambiguate:

  • Lower / Upper (case)
  • Spray (ocean modifier)
  • Keep Original (clip, grease pencil, object)
  • Screen [space] (inside some enum items, mostly)
  • Cast Shadow ("shadow that is cast", not "to cast a shadow")

Extract:

  • Line Art Light Reference Near and Far
  • Mesh vertex attribute domain: Vertex

Diff Detail

Repository
rB Blender

Event Timeline

Damien Picard (pioverfour) requested review of this revision.Sep 11 2022, 7:48 PM
Damien Picard (pioverfour) created this revision.
Damien Picard (pioverfour) added inline comments.
source/blender/makesrna/intern/rna_attribute.c
199

The message extraction does not work when the EnumPropertyItem is static, but as far as I could find, it’s the only occurrence of this in the code base.

@Jacques Lucke (JacquesLucke) Is it acceptable to make it not static? If not, what can be done about it?

Bastien Montagne (mont29) requested changes to this revision.Sep 13 2022, 12:36 PM
Bastien Montagne (mont29) added inline comments.
source/blender/makesrna/intern/rna_attribute.c
199

I indeed do not see any reason for this to be static, since RNA_enum_item_add does not keep any reference to the given item, but copies its value.

unless am missing something @Jacques Lucke (JacquesLucke) ?

200

These should not be actual translation here? so rather use the N_ marker macro.

This revision now requires changes to proceed.Sep 13 2022, 12:36 PM
source/blender/makesrna/intern/rna_attribute.c
199

Removing static here should be fine. I think it makes sense for this to be static, but if that doesn't work with I18n, that's fine too.

  • Replace actual translations by message extractions
source/blender/makesrna/intern/rna_attribute.c
199

Actually now that they are just marked for translation, and not actually translated, it should be fine to keep this static.

Reintroduce static EnumPropertyItem

This revision is now accepted and ready to land.Sep 15 2022, 11:12 AM