Bug 137349 - Writer : Months and days are lowercase with French locale
Summary: Writer : Months and days are lowercase with French locale
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-08 20:41 UTC by Gilles POULAIN
Modified: 2021-05-14 23:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Calendrier janvier 2021 (323.79 KB, application/vnd.oasis.opendocument.text)
2020-10-08 20:45 UTC, Gilles POULAIN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles POULAIN 2020-10-08 20:41:01 UTC
Description:
Dans Writer : Problème avec → Format → Texte → Majuscule À Chaque Mot
Dans un tableau, sur des cellules multiples cette commande fonctionne bien.
Après enregistrement et fermeture du document texte à la nouvelle ouverture du fichier on ne retrouve les majuscules qu’à certains mots (dans quelques cellules) voir pas les majuscules du tout.

Steps to Reproduce:
1.A partir de Calc "Coller comme tableaux emboités" dans Writer
2.Dans Writer sélection des cellules de la ligne
3.Majuscule À Chaque Mot (pas de problème ...)
4.Enregistrement / fermeture /
5.Ouverture / les majuscules n'ont pas été préservées

Actual Results:
janvier						
lundi	mardi	mercredi	jeudi	vendredi	samedi	dimanche

Expected Results:
Janvier						
Lundi	Mardi	Mercredi	Jeudi	Vendredi	Samedi	Dimanche


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); Langue IHM : fr-FR
Calc: CL
[Information automatically included from LibreOffice]
Locale: fr
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Gilles POULAIN 2020-10-08 20:45:46 UTC
Created attachment 166206 [details]
Calendrier janvier 2021
Comment 2 Gilles POULAIN 2020-10-23 11:27:38 UTC
Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); Langue IHM : fr-FR
Calc: CL

Toujours sous Writer dans la  version Version: 7.0.2.2 (x64) : 
Le bug persiste pour un enregistrement au format ‘LibO.odt‘ mais les ‘Majuscules À Chaque Mot’ sont sauvegardées quand on enregistre dans un format ‘Word.doc’ ou  ‘Word.docx’
Comment 3 Timur 2020-10-23 13:43:59 UTC
This is English only forum. You may use online translation.
Months and days are lowercase with French locale.
From OO to LO 7.1+. All OS.
Comment 4 Eike Rathke 2021-05-14 19:40:31 UTC
Translated with www.DeepL.com/Translator (free version):

In Writer : Problem with → Format → Text → Shift Every Word
In a table, on multiple cells this command works fine.
After saving and closing the text document when reopening the file the capitalization is only found on some words (in some cells) or not capitalized at all.

Steps to Reproduce:
1. from Calc "Paste as nested tables" into Writer
2. In Writer select the cells in the row
3. shift to every word (no problem ...)
4. save / close /
5. open / caps not preserved


"Shift" here seems to mean capitalize (first character of a word).
Comment 5 Eike Rathke 2021-05-14 19:55:34 UTC
Day and month names of formatted date values depend on the locale, for French fr-FR those are all lower case, so this is expected.

However, to force capitalization the NatNum12 modifier and rules can be used, which here would be

  [NatNum12 MMMM=capitalize]MMMM

and

  [NatNum12 NNN=capitalize]NNN

Note that forced capitalization may be equally wrong in some locales that for example *always* use lower case names even in such calendar context.

If you want to display the dates in always the same locale then in the number formatter select a fixed language/locale instead of the default locale.
Comment 6 Commit Notification 2021-05-14 22:36:50 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/84df9a567aa35ff84b2bd6f53432cf8ea9f4b218

Related: tdf#128314 tdf#137349 Support NatNum12 for all day and month names

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Eike Rathke 2021-05-14 23:00:37 UTC
With that commit it also works on abbreviated month names and all day names. For example,

  [NatNum12 MMM=capitalize]MMM

or

  [NatNum12 DDD=capitalize]DDD
Comment 8 Commit Notification 2021-05-14 23:31:27 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/eb7a2bd2f1efa587fe0ebeff86e5e18760b9b465

Related: tdf#128314 tdf#137349 Add unit test for NatNum12 upper names

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.