Bug 148023 - Numbering list tooltips doesn't show correct content for non-Latin locale
Summary: Numbering list tooltips doesn't show correct content for non-Latin locale
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillCpp, topicDesign
Depends on:
Blocks: Bullets-Numbering-Dialog
  Show dependency treegraph
 
Reported: 2022-03-16 06:34 UTC by Po-Yen Huang
Modified: 2023-10-16 14:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Incorrect tooltip content for numbering list (104.50 KB, image/png)
2022-03-16 06:35 UTC, Po-Yen Huang
Details
Under zh-tw UI language (60.64 KB, image/png)
2023-09-04 01:17 UTC, Po-Yen Huang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Po-Yen Huang 2022-03-16 06:34:06 UTC
Description:
When we use bullets and numbering lists dialog, it will show incorrect content for specific styles in non-US locales.

Steps to Reproduce:
1. Set non en-US locale setting (not UI language) in Options
2. Open "Bullets and Numbering" dialog and switch to "Ordered" tab ("Numbering" tab for older version)
3. Move mouse cursor to hover on Lowercase Roman number i. ii. iii.
4. Hover long enough to show tooltip

Actual Results:
Show incorrect tooltip content (Lowercase Roman number i. ii. iii.)

Expected Results:
Show correct tooltip content (should be Sexagenary number 子、 丑、 寅、 or something like this in this case)


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.3.1.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
7.3.1-1
Calc: CL
Comment 1 Po-Yen Huang 2022-03-16 06:35:24 UTC
Created attachment 178906 [details]
Incorrect tooltip content for numbering list
Comment 2 Dieter 2022-03-30 06:05:52 UTC Comment hidden (obsolete)
Comment 3 Po-Yen Huang 2022-03-30 06:36:01 UTC
(In reply to Dieter from comment #2)
> Don't understand your expectations: Tooltip should inform about list, that
> is applied and - as far as I can see - it's always roman numbers, although
> local is set to an asian language (that might be a bug, but the report here
> is not about that).
> 
> Version: 7.3.2.2 (x64) / LibreOffice Community
> Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
> CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL:
> win
> Locale: ar-SY (de_DE); UI: en-GB
> Calc: CL

Yeah, it always show "Lowercase Roman number i. ii. iii." in this case, but it doesn't match that shows in boxes, it will confuse our users.
Comment 4 Dieter 2022-03-30 06:58:00 UTC Comment hidden (obsolete)
Comment 5 Po-Yen Huang 2022-03-30 07:03:14 UTC
(In reply to Dieter from comment #4)
> (In reply to Po-Yen Huang from comment #3)
> > Yeah, it always show "Lowercase Roman number i. ii. iii." in this case, but
> > it doesn't match that shows in boxes, it will confuse our users.
> 
> Which locale do you use? Can you add a screenshot?

It is zh-TW, and my screenshot is already in attachment :-)
You can check bottom-right corner in that dialog and its tooltip :-)
Comment 6 Dieter 2022-03-30 07:51:55 UTC Comment hidden (obsolete)
Comment 7 Timur 2022-04-04 09:27:44 UTC
Doesn't seem straightforward. Because, if you you non-Latin locale but still use English UI, I guess that tooltip really should be as it is, English.
Comment 8 Po-Yen Huang 2022-04-06 06:38:03 UTC
(In reply to Timur from comment #7)
> Doesn't seem straightforward. Because, if you you non-Latin locale but still
> use English UI, I guess that tooltip really should be as it is, English.

It seems not related to locale, only related to UI language.
Comment 9 Dieter 2023-09-02 09:10:52 UTC
(In reply to Po-Yen Huang from comment #8)
> It seems not related to locale, only related to UI language.

So the actual behaviour is the expected one and it is NOTABUG? Or are you able to reproduce it, if you cahnge to an non English UI?
=> NEEDINFO
Comment 10 Po-Yen Huang 2023-09-04 01:17:56 UTC
Created attachment 189327 [details]
Under zh-tw UI language
Comment 11 Po-Yen Huang 2023-09-04 01:19:14 UTC
(In reply to Dieter from comment #9)
> (In reply to Po-Yen Huang from comment #8)
> > It seems not related to locale, only related to UI language.
> 
> So the actual behaviour is the expected one and it is NOTABUG? Or are you
> able to reproduce it, if you cahnge to an non English UI?
> => NEEDINFO

You can check my latest attachment, this is what UI shows in zh-tw language.

Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 60(Build:3)
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
7.6.0-3
Calc: threaded
Comment 12 QA Administrators 2023-09-04 03:13:34 UTC Comment hidden (obsolete)
Comment 13 Dieter 2023-10-12 17:54:53 UTC
I can see the problem, but don't know, if there is a problem with tooltips or with the dialog.

Steps:
1. With English UI and English locale Format -> Format -> Bullets and Numbering
2. Move over different selections (toolstips are in line with selection)
3. Change local to Chinese (Traditional)
4. Move over different selections

Actual result
Tooltips from English UI

Expected result
Don't know what is possible here, but actual behaviour might be confusing

cc: Design-Team
Comment 14 Po-Yen Huang 2023-10-13 01:08:44 UTC
(In reply to Dieter from comment #13)
> I can see the problem, but don't know, if there is a problem with tooltips
> or with the dialog.
> 
> Steps:
> 1. With English UI and English locale Format -> Format -> Bullets and
> Numbering
> 2. Move over different selections (toolstips are in line with selection)
> 3. Change local to Chinese (Traditional)
> 4. Move over different selections
> 
> Actual result
> Tooltips from English UI
> 
> Expected result
> Don't know what is possible here, but actual behaviour might be confusing
> 
> cc: Design-Team

You can check uploaded attachment, it shows 壹、 貳、 參、 in preview but shows Lower case letters a) b) c) (For zh-tw shows 小寫字母 a) b) c))
Comment 15 Heiko Tietze 2023-10-16 14:15:09 UTC
The mentioned string RID_SVXSTR_SINGLENUM_DESCRIPTION_7 is translated in all Chinese variants and Vietnamese. But running the UI in English shows the text in English, of course. 

What you have in mind is a concatenation of SvxResId("Lowercase Roman number") + "i,ii,iii,". An example is the preview and the code looks pretty simple:

sLevelTexts[i] = xFormatter->makeNumberingString( aProperties, aLocale );
svx/source/dialog/svxbmpnumvalueset.cxx #316

It needs to go at 

SetItemText(i + 1, SvxResId(RID_SVXSTR_OUTLINENUM_DESCRIPTIONS[i]));

(same file)