Translation is not displayed in the node attribute interface #102721

Closed
opened 2022-11-23 17:05:30 +01:00 by 917037493@qq.com · 14 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.49

Blender Version
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-11-22 00:01, hash: 89349067b6
Worked: (newest version of Blender that worked as expected)

Translation is not displayed in the node attribute interface.
![4IN6Y]W3OTB6@}K9$PW~4L.png
Shaders can translate languages, but there is no translation language in the property panel of geometric nodes.
X@@KXLBM9W@5OK%{BNZRN@R.png

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.49 **Blender Version** Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-11-22 00:01, hash: `89349067b6` Worked: (newest version of Blender that worked as expected) Translation is not displayed in the node attribute interface. ![4IN6Y]W3O[TB6@}K9$PW~4L.png](https://archive.blender.org/developer/F13963653/4IN6Y_W3O_TB6__K9_PW_4L.png) Shaders can translate languages, but there is no translation language in the property panel of geometric nodes. ![X@@KXLBM9W@5OK%{BNZRN@R.png](https://archive.blender.org/developer/F13963655/X__KXLBM9W_5OK__BNZRN_R.png)

Added subscriber: @chen13547542093

Added subscriber: @chen13547542093

Added subscriber: @mod_moder

Added subscriber: @mod_moder

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I saw this offer on RCS. Since it didn't happen before, it's not a regression. But yes, it makes sense.

I saw this offer on RCS. Since it didn't happen before, it's not a regression. But yes, it makes sense.
Member

Added subscriber: @CharlieJolly

Added subscriber: @CharlieJolly
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Thatnks for the report. It looks like we should use DATA_ on the node socket names/labels for translation when creating the new interface sockets for the group.

Thatnks for the report. It looks like we should use `DATA_` on the node socket names/labels for translation when creating the new interface sockets for the group.
Member

Added subscriber: @pioverfour

Added subscriber: @pioverfour
Member

@pioverfour, are you interested in looking into this? I'm guessing it would involve changes around ntreeAddSocketInterfaceFromSocket.

@pioverfour, are you interested in looking into this? I'm guessing it would involve changes around `ntreeAddSocketInterfaceFromSocket`.
Member

Actually, I think my thought above is totally wrong. The labels on the "Group Input" socket are clearly translated here, so maybe this is as simple as using IFACE_ in the modifier panel and the group sockets list. This is also user-created data though, I'm not sure how this influences that decision.

Actually, I think my thought above is totally wrong. The labels on the "Group Input" socket are clearly translated here, so maybe this is as simple as using `IFACE_` in the modifier panel and the group sockets list. This is also user-created data though, I'm not sure how this influences that decision.
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

Hello, I think this needs a bit of discussion. In my opinion, the current behaviour is the proper one, as these names are user data. They should only be translated on creation (made easier in D15763), using DATA_ as you suggested, but already-created inputs or outputs shouldn’t be translated, even in the node itself. This idea of not translating at display time was actually proposed in D15531 but the patch was rejected. Here is what I wrote at the time:

The rationale is, say you work in German but explicitly name your socket in English, "Color" and it gets translated to "Farbe" in the interface, but not in the actual socket name. That's confusing.

But then again maybe that’s just me, and I can see users may want labels to be translated to their language, even if those labels were defined in English. So, no strong opinion from me. @mont29, care to weigh in?

Hello, I think this needs a bit of discussion. In my opinion, the current behaviour is the proper one, as these names are user data. They should only be translated on creation (made easier in [D15763](https://archive.blender.org/developer/D15763)), using `DATA_` as you suggested, but already-created inputs or outputs shouldn’t be translated, even in the node itself. This idea of not translating at display time was actually proposed in [D15531](https://archive.blender.org/developer/D15531) but the patch was rejected. Here is what I wrote at the time: > The rationale is, say you work in German but explicitly name your socket in English, "Color" and it gets translated to "Farbe" in the interface, but not in the actual socket name. That's confusing. But then again maybe that’s just me, and I can see users may want labels to be translated to their language, even if those labels were defined in English. So, no strong opinion from me. @mont29, care to weigh in?

Most often you use this for clients with your node groups, so translating only the user part, not realizations, is the norm

Most often you use this for clients with your node groups, so translating only the user part, not realizations, is the norm
Bastien Montagne added this to the User Interface project 2023-02-09 15:34:10 +01:00
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:29 +01:00
Member

This was fixed recently, probably after the recent change in the node interface API.

image

(Mind you, I still believe it’s not the proper behaviour but at least it’s coherent now!)

This was fixed recently, probably after the recent change in the node interface API. ![image](/attachments/e4955651-5bd8-4131-a0e7-a0182ebba5ff) (Mind you, I still believe it’s not the proper behaviour but at least it’s coherent now!)
257 KiB
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-10-23 00:53:47 +02:00
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
5 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#102721
No description provided.