Problem with Panel class in layout and with translation texts #68102

Open
opened 2019-08-02 05:07:59 +02:00 by Hoang Duy Tran · 6 comments
Member

Targeting Project
GUI Development

System Information
Operating system:
Linux, Kernel: 4.15.0-20-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.8
Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic

Graphics card:
Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel
Device-2: NVIDIA GK208M [GeForce GT 740M] vendor: Hewlett-Packard driver: nouveau v: kernel bus ID: 01:00.0
Display: x11 server: X.Org 1.19.6 driver: modesetting,nouveau unloaded: fbdev,vesa
resolution: 1920x1080~60Hz, 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.0.5 direct render: Yes

Blender Version
Blender 2.80 (sub 75)
build date: 2019-07-29
build time: 17:17:04
build commit date: 2019-07-29
build commit time: 14:47
build hash: f6cb5f5449
build platform: Linux
build type: Release

Short description of error
On the 3D Viewport, the main screen of 'Layout', you see the drop down list of 'Object Types Visibility' where English texts are all visible and well spaced.

Screenshot from 2019-08-02 03-42-35.png

When switched to the Vietnamese translation language, it looks like this:

Screenshot from 2019-08-02 03-34-25.png

Where 'heading' and item texts are BOTH obscured to the right, trailing with two dots ('..')

The code for this module is at:

Screenshot from 2019-08-02 03-35-21.png

and the piece of text translation is this:

Screenshot from 2019-08-02 03-35-08.png

Please take this 'blender.mo' file of Vietnamese I translated and compiled locally:

blender.mo

and drop in to the location:

2.80/datafiles/locale/vi/LC_MESSAGES

of your binary before switching to Vietnamese, select to turn on translation only for 'Interface' and 'Tooltips' while testing (because I only turning on these options on my pc).

Questions

Can 'Panel's be able to calculate their size and extendable at run time to cater for the size of the 'Longest' string of text (based on the dpi of font chosen and configuration scale) and aligning themself away from the edge of the parent windows (so do not overlapped the underneath) as in this situation:

Screenshot from 2019-08-02 03-58-02.png

Exact steps for others to reproduce the error

  • Run Blender
  • Drop the translation 'blender.mo' file into the directory mentioned
  • Edit (Biên Soạn) ->Preferences (Cấu Hình) -> Interface (Giao Diện) and click on Translation (Phiên Dịch). In the language combo box, select 'Vietnamese' (Tiếng Việt). Then click to turn on 'Tooltips' (Chú Thích Công Cụ) and 'Interface' (Giao Diện).
  • Click on drop down panels as shown in the images and notice their contents and layout.
**Targeting Project** GUI Development **System Information** Operating system: Linux, Kernel: 4.15.0-20-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.8 Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic Graphics card: Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel Device-2: NVIDIA GK208M [GeForce GT 740M] vendor: Hewlett-Packard driver: nouveau v: kernel bus ID: 01:00.0 Display: x11 server: X.Org 1.19.6 driver: modesetting,nouveau unloaded: fbdev,vesa resolution: 1920x1080~60Hz, 1920x1080~60Hz OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.0.5 direct render: Yes **Blender Version** Blender 2.80 (sub 75) build date: 2019-07-29 build time: 17:17:04 build commit date: 2019-07-29 build commit time: 14:47 build hash: f6cb5f54494e build platform: Linux build type: Release **Short description of error** On the 3D Viewport, the main screen of 'Layout', you see the drop down list of 'Object Types Visibility' where English texts are all visible and well spaced. ![Screenshot from 2019-08-02 03-42-35.png](https://archive.blender.org/developer/F7642993/Screenshot_from_2019-08-02_03-42-35.png) When switched to the Vietnamese translation language, it looks like this: ![Screenshot from 2019-08-02 03-34-25.png](https://archive.blender.org/developer/F7642995/Screenshot_from_2019-08-02_03-34-25.png) Where 'heading' and item texts are BOTH obscured to the right, trailing with two dots ('..') The code for this module is at: ![Screenshot from 2019-08-02 03-35-21.png](https://archive.blender.org/developer/F7642999/Screenshot_from_2019-08-02_03-35-21.png) and the piece of text translation is this: ![Screenshot from 2019-08-02 03-35-08.png](https://archive.blender.org/developer/F7643001/Screenshot_from_2019-08-02_03-35-08.png) Please take this 'blender.mo' file of Vietnamese I translated and compiled locally: [blender.mo](https://archive.blender.org/developer/F7643004/blender.mo) and drop in to the location: 2.80/datafiles/locale/vi/LC_MESSAGES of your binary before switching to Vietnamese, select to turn on translation only for 'Interface' and 'Tooltips' while testing (because I only turning on these options on my pc). **Questions** Can 'Panel's be able to calculate their size and extendable at run time to cater for the size of the 'Longest' string of text (based on the dpi of font chosen and configuration scale) and aligning themself away from the edge of the parent windows (so do not overlapped the underneath) as in this situation: ![Screenshot from 2019-08-02 03-58-02.png](https://archive.blender.org/developer/F7643012/Screenshot_from_2019-08-02_03-58-02.png) **Exact steps for others to reproduce the error** - Run Blender - Drop the translation 'blender.mo' file into the directory mentioned - Edit (Biên Soạn) ->Preferences (Cấu Hình) -> Interface (Giao Diện) and click on Translation (Phiên Dịch). In the language combo box, select 'Vietnamese' (Tiếng Việt). Then click to turn on 'Tooltips' (Chú Thích Công Cụ) and 'Interface' (Giao Diện). - Click on drop down panels as shown in the images and notice their contents and layout.
Author
Member

Added subscriber: @hoanguk

Added subscriber: @hoanguk

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Popover size is hardcoded and limited by the bl_ui_units_x property which in this case is 6.
I'm not sure if a minimum size can be obtained automatically through the current code, this seems to be a limitation.

Popover size is hardcoded and limited by the `bl_ui_units_x` property which in this case is `6`. I'm not sure if a minimum size can be obtained automatically through the current code, this seems to be a limitation.

Added subscriber: @mont29

Added subscriber: @mont29

Once again, that is much more an UI issue than a translations one…

Once again, that is much more an UI issue than a translations one…

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

Changed status from 'Needs Triage' to: 'Confirmed'
Bastien Montagne added this to the User Interface project 2023-02-09 15:34:10 +01:00
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:25:27 +01: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
4 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#68102
No description provided.