I18n: improve geometry nodes field tooltips #107257

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_fix_geo_nodes_field_tooltips into main 2023-04-28 21:37:40 +02:00
Member

Node socket tooltips suffered from several issues.

  • Some could not be translated because they were not properly
    extracted, so extraction macros were added.

  • Some were extracted but included newlines at the end, which did not
    get translated, such as ss << TIP_("Geometry:\n"), changed to
    ss << TIP_("Geometry:") << "\n".

  • Some translations were not functional, such as:
    TIP_(attributes_num == 1 ? " Named Attribute" : " Named Attributes");
    because TIP_() needs to be around a single string.

  • Some extraction macros had no effect and were removed, such as:
    .description(N_(leading_out_description));
    This is a no-op macro which can be used only around a string literal.


I started working on this in D15996 but @hooglyboogly had reservations about it. I removed the questionable bit and will submit it in a separate PR.

Node socket tooltips suffered from several issues. - Some could not be translated because they were not properly extracted, so extraction macros were added. - Some were extracted but included newlines at the end, which did not get translated, such as `ss << TIP_("Geometry:\n")`, changed to `ss << TIP_("Geometry:") << "\n"`. - Some translations were not functional, such as: `TIP_(attributes_num == 1 ? " Named Attribute" : " Named Attributes");` because `TIP_()` needs to be around a single string. - Some extraction macros had no effect and were removed, such as: `.description(N_(leading_out_description));` This is a no-op macro which can be used only around a string literal. ----- I started working on this in [D15996](https://archive.blender.org/developer/differential/0015/0015996/) but @hooglyboogly had reservations about it. I removed the questionable bit and will submit it in a separate PR.
Damien Picard requested review from Bastien Montagne 2023-04-23 03:41:28 +02:00
Damien Picard force-pushed dp_fix_geo_nodes_field_tooltips from 2d3d5a78ba to 05b22feaaa 2023-04-24 21:18:56 +02:00 Compare
Damien Picard force-pushed dp_fix_geo_nodes_field_tooltips from 05b22feaaa to cb1e8d78e4 2023-04-24 22:12:06 +02:00 Compare
Damien Picard force-pushed dp_fix_geo_nodes_field_tooltips from cb1e8d78e4 to fc6fc8edb0 2023-04-25 15:34:47 +02:00 Compare
Bastien Montagne approved these changes 2023-04-28 19:32:24 +02:00
Bastien Montagne left a comment
Owner

LGTM

LGTM

@blender-bot build

@blender-bot build

@blender-bot build

@blender-bot build
Bastien Montagne merged commit 44103f5529 into main 2023-04-28 21:37:40 +02:00
Bastien Montagne deleted branch dp_fix_geo_nodes_field_tooltips 2023-04-28 21:37:41 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:43 +02: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#107257
No description provided.