Fix #118643: Translation of enum button tooltip not working in cases #118653

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:118643 into blender-v4.1-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Originally caused by 90c4e2e6ec [which did not translate the tooltip
descriptions for enum items at all]
That was fixed in cbc5d861db [which was working fine for the default
translation context -- which is most of the time]

Now 7d7318f6c5 added the BLT_I18NCONTEXT_ID_ID translation context
to buttons_context_items (rightfully so) but using this context on the
enum item description translation does not really make sense. So as
a result, the description was not translated in this case.

To resolve, now dont use a special translation context for the
description of enum items at all, this is also what
property_enum_translate does.

Originally caused by 90c4e2e6ec [which did not translate the tooltip descriptions for enum items at all] That was fixed in cbc5d861db [which was working fine for the default translation context -- which is most of the time] Now 7d7318f6c59c added the `BLT_I18NCONTEXT_ID_ID` translation context to `buttons_context_items` (rightfully so) but using this context on the enum item **description** translation does not really make sense. So as a result, the description was not translated in this case. To resolve, now dont use a special translation context for the **description** of enum items at all, this is also what `property_enum_translate` does.
Philipp Oeser added 1 commit 2024-02-23 11:21:38 +01:00
e4ecc424ba Fix #118643: Translation of enum button tooltip not working in cases
Originally caused by 90c4e2e6ec [which did not translate the tooltip
descriptions for enum items at all]
That was fixed in cbc5d861db [which was working fine for the default
translation context -- which is most of the time]

Now 7d7318f6c5 added the `BLT_I18NCONTEXT_ID_ID` translation context
to `buttons_context_items` (rightfully so) but using this context on the
enum item **description** translation does not really make sense. So as
a result, the description was not translated in this case.

To resolve, now dont use a special translation context for the
**description** of enum items at all, this is also what
`property_enum_translate` does.
Philipp Oeser added this to the User Interface project 2024-02-23 11:21:54 +01:00
Philipp Oeser requested review from Bastien Montagne 2024-02-23 11:22:00 +01:00
Philipp Oeser requested review from Hans Goudey 2024-02-23 11:22:06 +01:00
Bastien Montagne approved these changes 2024-02-23 11:28:47 +01:00
Bastien Montagne left a comment
Owner

indeed, description (tooltip) should never use translation contexts.

indeed, description (tooltip) should never use translation contexts.
Author
Member

Oh oh, just had a similar thing as #118573 (comment) happening on this one as well.

Oh oh, just had a similar thing as https://projects.blender.org/blender/blender/pulls/118573#issuecomment-1130398 happening on this one as well.
Author
Member

I even got this (not sure though if this was due to the gitea build @Arnd ?)

image

I even got this (not sure though if this was due to the gitea build @Arnd ?) ![image](/attachments/0f2330e0-5557-49e0-9331-f744ac581328)
Hans Goudey approved these changes 2024-02-23 14:39:12 +01:00
Author
Member

Has landed as 199f8ad817, will close

Has landed as 199f8ad8172fd14099a328b13190328889668134, will close
Philipp Oeser closed this pull request 2024-02-23 17:17:46 +01:00

Pull request closed

Sign in to join this conversation.
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
3 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#118653
No description provided.