Bug 156045 - Missing space between words (Spanish UI)
Summary: Missing space between words (Spanish UI)
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
7.6.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-24 10:51 UTC by Camaleón
Modified: 2023-08-22 10:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Missing space (2.08 KB, image/png)
2023-06-24 10:52 UTC, Camaleón
Details
Good spacing (1.99 KB, image/png)
2023-06-24 10:53 UTC, Camaleón
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Camaleón 2023-06-24 10:51:33 UTC
Description:
In LO Writer, using Spanish UI, there is a missing space between words when two pages are displayed in dual layout view.

See attached images.

E.g. of bad spacing → «Páginas 1y2 de 96»
Example of correct spacing → «Páginas 1 y 2 de 96»

Other page combos are OK, for instance, «Página 3-6 de 96»

Spanish PO string maybe be coming from POT file «sw/messages.pot»

It also happens in LO 7.5.4.2

Steps to Reproduce:
1. Open LO writer
2. Create 2 blank pages
3. Set multi page view and scroll up/down

Actual Results:
It displays Páginas 1y2 de 2

Expected Results:
I should display Páginas 1 y 2 de 2


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: a6d35a7940a2c72594b470aec341c867e6faf82c
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 1 Camaleón 2023-06-24 10:52:26 UTC
Created attachment 188075 [details]
Missing space
Comment 2 Camaleón 2023-06-24 10:53:24 UTC
Created attachment 188076 [details]
Good spacing
Comment 3 Camaleón 2023-06-24 11:14:30 UTC
Involved string could be this:

https://translations.documentfoundation.org/translate/libo_ui-master/swmessages/es/?checksum=ea223f8fe19c72ed&q=P%C3%A1ginas+%251&sort_by=-priority%2Cposition

But it looks fine. 

There is no «y» and just a missing space between dash «%1-%2» so I don't know where the string «1y2» is getting its source.
Comment 4 Julien Nabet 2023-06-24 14:05:38 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

I think these from sw/messages.po must be modified:
STR_PAGES_COUNT gqFYf
STR_PAGES_COUNT_EXTENDED BqLqv

   9498 #. gqFYf
   9499 #: sw/inc/strings.hrc:1317
   9500 msgctxt "STR_PAGES_COUNT"
   9501 msgid "Pages %1 - %2 of %3"
   9502 msgstr "Páginas %1-%2 de %3"
   9503 
   9504 #. BqLqv
   9505 #: sw/inc/strings.hrc:1318
   9506 msgctxt "STR_PAGES_COUNT_EXTENDED"
   9507 msgid "Pages %1 - %2 of %3 [Pages %4 - %5]"
   9508 msgstr "Páginas %1-%2 de %3 [pp. %4-%5]"

the quote is replaced afterwards in sw/source/uibase/uiview/view2.cxx
   1831 // replace range indicator with two pages conjunction if applicable
   1832 if ((aVisiblePageNumbers.nLastPhy - aVisiblePageNumbers.nFirstPhy) == 1)
   1833 aPageStr = aPageStr.replaceAll("-", SwResId(STR_PAGES_TWO_CONJUNCTION));

See https://opengrok.libreoffice.org/xref/core/sw/source/uibase/uiview/view2.cxx?r=bbb104ea#1833

So in Weblate, we can find these there:
https://translations.documentfoundation.org/translate/libo_ui-master/swmessages/es/?checksum=ea223f8fe19c72ed&q=note%3AgqFYf&sort_by=-priority%2Cposition

https://translations.documentfoundation.org/translate/libo_ui-master/swmessages/es/?offset=1&q=note%3ABqLqv&sort_by=-priority%2Cposition&checksum=

For the moment, the repo on Weblate seems locked.

Adolfo: are you ok for the replace after the repo is unlocked?
Comment 5 Julien Nabet 2023-06-30 16:41:25 UTC
Adolfo: since the repo was opened again, I made the suggestions.
Comment 6 Camaleón 2023-08-22 09:39:52 UTC
Just installed LO 7.6.0.3 and this issue seems to be solved.
Comment 7 Julien Nabet 2023-08-22 10:27:11 UTC
Thank you for the feedback!