Damien Picard
e773e0952a
I18n: fix translation of Grease Pencil 3.0 layer names
...
The Grease Pencil 3.0 layers and groups were not properly translated:
- The layers and groups' names were translated during display in the
layer list. Since they are data, they should be left untranslated at
this time.
- On object creation, the names "GP_Layer", "Color", "Lines", and
"Fills" were not translated at all.
This adds DATA_() macros around to translate them if the user has
enabled translation of new data names.
- The functions returning unique names for layers and groups
unique_layer_group_name() and unique_layer_name() would return
"GP_Layer" and "GP_Group" by default.
These defaults are now translated.
- When adding new layers and groups, the name was always hardcoded to
"GP_Layer" and "GP_Group" because the operators' properties for the
names defaulted to that, and prop defaults cannot be translated.
Instead, make them default to a null string, but choose an
appropriate name when executing the op. This name is chosen by
unique_layer_name() and unique_layer_group_name(), whose defaults
are now translated.
Pull Request: https://projects.blender.org/blender/blender/pulls/112930
2023-10-05 10:51:31 +02:00
..
2023-10-05 10:51:31 +02:00
2023-08-29 14:31:18 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-24 16:33:31 +02:00
2023-05-31 16:19:06 +02:00
2023-05-31 16:19:06 +02:00
2023-08-24 16:33:31 +02:00
2023-08-16 00:20:26 +10:00
2023-09-25 10:56:12 +02:00
2023-09-26 14:17:21 +02:00
2023-08-16 00:20:26 +10:00
2023-09-26 16:38:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-26 15:36:12 +02:00
2023-08-29 16:52:20 +02:00
2023-08-16 00:20:26 +10:00
2023-09-26 20:30:46 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-03 12:18:36 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-07-10 18:12:41 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-08-24 16:33:31 +02:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-30 22:36:36 +02:00
2023-08-16 00:20:26 +10:00
2023-09-08 16:53:30 +10:00
2023-09-19 15:43:56 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 22:03:16 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-27 10:26:06 +02:00
2023-08-16 00:20:26 +10:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-10-05 13:57:14 +11:00
2023-07-24 22:06:55 +02:00
2023-05-31 16:19:06 +02:00
2023-06-15 22:18:28 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2023-09-05 11:04:27 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-19 13:49:04 -04:00
2023-09-29 21:44:36 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-27 14:47:50 +10:00
2023-08-24 16:33:31 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 12:11:18 +02:00
2023-09-04 18:02:16 +02:00
2023-09-22 12:21:18 +10:00
2023-08-16 00:20:26 +10:00
2023-08-25 09:40:42 +10:00
2023-07-04 17:03:02 +02:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2023-07-24 22:06:55 +02:00
2023-08-16 00:20:26 +10:00
2023-07-31 13:02:30 +10:00
2023-08-25 09:40:42 +10:00
2023-07-31 13:02:30 +10:00
2023-08-31 16:46:25 +02:00
2023-08-23 16:44:56 +02:00
2023-09-05 11:04:27 +10:00
2023-05-31 16:19:06 +02:00
2023-09-25 18:00:28 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-07-27 16:21:38 +02:00
2023-08-16 00:20:26 +10:00
2023-08-08 17:36:06 +02:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-03 09:44:28 +10:00
2023-08-30 23:41:59 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-29 11:47:29 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 23:41:59 +02:00
2023-08-16 00:20:26 +10:00
2023-08-31 14:22:22 -04:00
2023-09-07 08:36:43 -04:00
2023-08-24 16:33:31 +02:00
2023-08-16 00:20:26 +10:00
2023-08-03 01:11:28 +02:00
2023-09-27 13:03:29 +10:00
2023-09-28 11:24:48 +02:00
2023-10-04 19:21:07 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 15:43:59 +02:00
2023-09-14 14:13:07 +02:00
2023-08-16 00:20:26 +10:00
2023-09-26 17:05:36 -04:00
2023-09-20 14:40:56 +02:00
2023-08-16 00:20:26 +10:00
2023-08-24 16:33:31 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-09-26 14:21:07 +02:00
2023-08-29 17:00:33 +02:00
2023-09-28 14:56:26 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-18 08:56:12 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 08:08:19 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-08 17:36:06 +02:00
2023-09-27 11:31:21 +02:00
2023-08-16 00:20:26 +10:00
2023-08-24 16:33:31 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 22:36:36 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-31 19:40:39 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-29 17:00:33 +02:00
2023-08-16 00:20:26 +10:00
2023-09-19 11:09:20 +10:00
2023-06-07 14:17:37 +02:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-06-26 13:09:06 +10:00
2023-05-31 16:19:06 +02:00
2023-09-27 11:09:39 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-06-19 12:40:37 +10:00
2023-06-19 12:40:37 +10:00
2023-09-25 17:53:11 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00