Bug 138045 - FORMATTING: Selecting a theme in Calc changes the language of number fields to US-English
Summary: FORMATTING: Selecting a theme in Calc changes the language of number fields t...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Document-Themes
  Show dependency treegraph
 
Reported: 2020-11-06 19:15 UTC by Marco Wehofsky
Modified: 2022-11-13 03:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Wehofsky 2020-11-06 19:15:45 UTC
Description:
If you select a Theme in Calc with Format|Spreadsheet Theme the default language settings and thus the formatting of numbers is always set to English (USA).
If the default language is different this can change the display of numbers in an unexpected way (e.g. if the language is set to German (Germany)).

This occurs also if the default settings are English (GB).

The language is not changed by selecting a template, when the language format of the number was changed previously.

I can remember that this error occurred in an older version.

Steps to Reproduce:
1.Switch LibreOffice Language settings to "Deutsch (Deutschland)" (or any other except "English (US)"): Language of User Interface and Locale Settings.
2. Restart LibreOffice
3. Create a Calc-Dokument (Tabellendokument)
4. Enter a valid number in any cell. For German use e.g. 2,34
5. The number is correctly displayed with comma.
6. Check the Format of the cell with the context menu "Zellen formatieren" on the tab "Zahlen". The Format is the default language ("Deutsch (Deutschland)").
7. Change the theme by opening Format | Themen-Auswahl
8. The displayed number changed from 2,34 to 2.34. 
9. If you check the Format of the cell it is changed to "English (US)". The format is also changed for any empty cell.
10. Change the format of the cell back to "Deutsch (Deutschland)". The number is now displayed as 2,34
11. Change the theme again. The displayed number with the modified format is not changed.

Actual Results:
The language of the cell format is set to "English (US)" if the language was not explicitly changed before.

Expected Results:
Themes should not be bound to a certain language.
If a cell is formatted with the default format this should be retained by selecting a theme.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.6.2
Build-ID: 1:6.4.6-0ubuntu0.20.04.1
CPU-Threads: 4; BS: Linux 5.4; UI-Render: Standard; VCL: gtk3; 
Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE
Calc: threaded
Comment 1 Ming Hua 2020-11-06 22:10:57 UTC
Reproduced with 7.1.0 alpha1 on Windows 10:
Version: 7.1.0.0.alpha1 (x64)
Build ID: 987671387712c4f9061d6216ff2f001a7bb9e57b
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded

The language of cell format is changed from zh-CN to en-US after using Format > Spreadsheet Theme.  This also affects cells formatted as Date, so presumablly all formats (not sure what Marco meant by "number fields" in the summary).
Comment 2 QA Administrators 2022-11-13 03:32:12 UTC
Dear Marco Wehofsky,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug