I18n: extract and disambiguate a few messages #114159

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_disambiguate into main 2023-11-07 18:09:07 +01:00
Member

Extract:

  • "Attribute", when creating a new attribute with
    GEOMETRY_OT_attribute_add(): make the default name in the operator
    a null string, and set it to "Attribute" translated inside an invoke
    method instead.
  • Also for new attributes, from BKE_id_attribute_calc_unique_name(),
    for instance to create a default vertex color layer when going into
    Vertex Paint mode: use DATA_() instead of IFACE_(), since it
    represents user data.

Disambiguate:

  • "Weight" can be the thickness of font glyphs.
  • "Mark as Asset" and "Clear Asset" are operator names already
    extracted using the Operator context. They were recently added to a
    manual translation in the UI, but the existing one can be reused.
  • "Second" as a time unit in the context of frame snapping.

Some messages reported by Satoshi Yamasaki in #43295.

Extract: - "Attribute", when creating a new attribute with `GEOMETRY_OT_attribute_add()`: make the default name in the operator a null string, and set it to "Attribute" translated inside an invoke method instead. - Also for new attributes, from `BKE_id_attribute_calc_unique_name()`, for instance to create a default vertex color layer when going into Vertex Paint mode: use `DATA_()` instead of `IFACE_()`, since it represents user data. Disambiguate: - "Weight" can be the thickness of font glyphs. - "Mark as Asset" and "Clear Asset" are operator names already extracted using the Operator context. They were recently added to a manual translation in the UI, but the existing one can be reused. - "Second" as a time unit in the context of frame snapping. Some messages reported by Satoshi Yamasaki in #43295.
Damien Picard added the
Module
User Interface
Interest
Translations
labels 2023-10-25 20:38:57 +02:00
Damien Picard requested review from Bastien Montagne 2023-10-25 20:39:19 +02:00
Bastien Montagne requested changes 2023-10-30 15:59:17 +01:00
Bastien Montagne left a comment
Owner

I think this change has a way to high risk/benefit balance to be targeting 4.0 release at this point... And updates to the translations are likely to break more in existing translations than fix things too now. Would rather see it rebased for main.

I think this change has a way to high risk/benefit balance to be targeting 4.0 release at this point... And updates to the translations are likely to break more in existing translations than fix things too now. Would rather see it rebased for main.
@ -1076,6 +1076,7 @@ class USERPREF_PT_theme_text_style(ThemePanel, CenterAlignMixIn, Panel):
col = flow.column()
col.prop(font_style, "points")
col.prop(font_style, "character_weight", text="Weight", text_ctxt=i18n_contexts.id_text)

This is adding a new property to the UI... Should definitely not be part of this patch. And not for 4.0 at this stage of release process either.

This is _adding_ a new property to the UI... Should definitely not be part of this patch. And not for 4.0 at this stage of release process either.
Author
Member

I must have made a mistake while rebasing from main to 4.0; this should be solved when rebasing back to main.

I must have made a mistake while rebasing from main to 4.0; this should be solved when rebasing back to main.
pioverfour marked this conversation as resolved
@ -127,3 +141,3 @@
PropertyRNA *prop;
prop = RNA_def_string(ot->srna, "name", "Attribute", MAX_NAME, "Name", "Name of new attribute");
prop = RNA_def_string(ot->srna, "name", nullptr, MAX_NAME, "Name", "Name of new attribute");

A comment should explain why & how this is handled now (regarding data name translation...). Same for the other change below.

A comment should explain why & how this is handled now (regarding data name translation...). Same for the other change below.
Damien Picard force-pushed dp_disambiguate from 1fdd1dbe15 to 520115ee64 2023-10-30 19:49:42 +01:00 Compare
Damien Picard changed title from I18n: extract and disambiguate a few messages to I18n: extract and disambiguate a few messages 2023-10-30 19:50:28 +01:00
pioverfour changed target branch from blender-v4.0-release to main 2023-10-30 19:50:30 +01:00
Damien Picard force-pushed dp_disambiguate from 520115ee64 to 4a838cfd05 2023-10-30 19:55:28 +01:00 Compare
Damien Picard requested review from Bastien Montagne 2023-10-31 09:41:44 +01:00

@blender-bot build

@blender-bot build
Bastien Montagne approved these changes 2023-11-07 16:49:10 +01:00
Bastien Montagne merged commit 7231ac0a52 into main 2023-11-07 18:09:07 +01:00
Bastien Montagne deleted branch dp_disambiguate 2023-11-07 18:09:09 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#114159
No description provided.