Bug 146973

Summary: .docx documents always change the month's language to English in the data format when opened
Product: LibreOffice Reporter: rockveiler
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, jluth
Priority: medium Keywords: filter:docx
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104520    
Attachments: video of the bug
file for testing

Description rockveiler 2022-01-24 17:50:47 UTC
Description:
I use LibreOffice Writer in brazilian portuguese. My documents must be formatted in such a way that the current date must be indicated at their end, in the following format:
'"D" de "MMMMM" de "YYYYY"' (for example, 24 de janeiro de 2022).

However, whenever I re-open any document after closing it, the month's language is changed to English, ending up in a bizzare way, like "24 de January de 2022", for example. For that reason, each time I open any document, I must reformat the date back to portuguese.

For some reason, I've noticed this bug only happens when the document is saved as .docx. Unfortunately, that is the only format accepted in my workplace.

I guess it's worth mentioning that my LibreOffice's default language is set as brazilian portuguese, as well as my Windows and keyboard.

Steps to Reproduce:
1.Set a "Date" format as "31 de dezembro de 1999" in Português(Brazil);
2.save document as ".docx";
3.close and re-open document.

Actual Results:
The "month" language is altered to English.
Example: "24 de January de 2022"

Expected Results:
The "month" language should stay the same as before closing the document.
Example: "24 de janeiro de 2022"


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: pt-BR (pt_BR); UI: pt-BR
Calc: threaded
Comment 1 BogdanB 2022-01-24 19:35:01 UTC
Created attachment 177759 [details]
video of the bug

Confirm with
Version: 7.3.1.0.0+ / LibreOffice Community
Build ID: de15e8d4f2f2e5d10cb5d9203e51f3a28347db8d
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded


Also see video. The language and format is lost.
Comment 2 BogdanB 2022-01-24 19:58:35 UTC
Created attachment 177760 [details]
file for testing