I18n: translate missing geometry node attribute tooltips #109384

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_gn_attribute_tooltips into main 2023-07-04 09:53:31 +02:00
Member

As remarked by Harley Acheson in !109163, some tooltip lines regarding
attributes were not translated. They are basically just bullet points
followed by an actual line of text, but given that list items may not
use the same bullet points in all languages*, and other items are
already translatable, it makes sense to also translate these ones.

  • For instance, the bullet point character used in Japanese is the
    KATAKANA MIDDLE DOT, a monospaced variant.
As remarked by Harley Acheson in !109163, some tooltip lines regarding attributes were not translated. They are basically just bullet points followed by an actual line of text, but given that list items may not use the same bullet points in all languages*, and other items are already translatable, it makes sense to also translate these ones. * For instance, the bullet point character used in Japanese is the KATAKANA MIDDLE DOT, a monospaced variant.
Damien Picard requested review from Bastien Montagne 2023-06-27 14:05:08 +02:00
Bastien Montagne reviewed 2023-06-27 18:55:57 +02:00
@ -930,1 +930,3 @@
ss << "\u2022 " << TIP_(tooltip.data());
char line[256];
SNPRINTF(line, TIP_("\u2022 %s"), TIP_(tooltip.data()));
ss << line;

Any reasons not to use fmt::format here?

ss << fmt::format(TIP_("\u2022 {}"), TIP_(tooltip.data()));
Any reasons not to use `fmt::format` here? ``` ss << fmt::format(TIP_("\u2022 {}"), TIP_(tooltip.data())); ```
Author
Member

No particular reason except consistency, since the other similar messages use this construction, and I didn’t want to change existing messages and make translators update them. But I could do either if you think it’s better.

No particular reason except consistency, since the other similar messages use this construction, and I didn’t want to change existing messages and make translators update them. But I could do either if you think it’s better.

Fair enough... But since this is a c++ file now, I'd rather see new code using c++ 'way of doing things'. ;)

No need to change existing ones though, this should be part of cleanup/maintenance work from the module owning this file.

Fair enough... But since this is a c++ file now, I'd rather see new code using c++ 'way of doing things'. ;) No need to change existing ones though, this should be part of cleanup/maintenance work from the module owning this file.
pioverfour marked this conversation as resolved
Damien Picard force-pushed dp_gn_attribute_tooltips from 7b8557b9b6 to d3cf629844 2023-07-03 13:19:36 +02:00 Compare

@blender-bot build

@blender-bot build
Bastien Montagne merged commit 445d71a577 into main 2023-07-04 09:53:31 +02:00
Bastien Montagne deleted branch dp_gn_attribute_tooltips 2023-07-04 09:53:32 +02:00
Bastien Montagne approved these changes 2023-07-04 09:53:41 +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#109384
No description provided.