online icon indicating copy to clipboard operation
online copied to clipboard

View > Sidebar: "Style" dropdown showing some Style names "in a foreign language"

Open Tex2002ans opened this issue 7 months ago • 1 comments

Describe the Bug

Instead of showing:

  • Body Text

in the sidebar's "Style" dropdown, it showed a "foreign language":

  • Corps de texte

even though the entire rest of my UI was in English:

Collabora 24 04 4 2 - Writer - Sidebar Style Dropdown Showing Foreign Body Text

(See how toolbar version shows correct "Body Text" highlighted, but the sidebar version shows "Corps de texte"!)

Note: This bug probably requires multiple users (with mixes of UI/browser languages) at same time. I was in "English (US)" + at least 1 other user was in a "French" browser.

Steps to Reproduce

In Writer:

  1. View > Sidebar ON.
  2. Click in any paragraph with the "Body Text" Style applied.

BUG: Look at sidebar's Style dropdown.

Expected Behavior

  • If UI is English, everything to be in English.
  • "Home" tab Styles + Sidebar's "Styles" menu/dropdown should always match.

Actual Behavior

  • Sidebar "Styles" menu/dropdown sometimes lists "foreign"/translated Styles.
    • "Corps de texte" in French == "Body Text" in English

Desktop

  • Collabora version: 24.04.4.2
  • OS and version: Windows 11
  • Browser and version: Chrome 126.0.6478.127 (Official Build) (64-bit)

Tested on Sharing server:

COOLWSD version: 24.04.4.2 (git hash: a5718066 (E))
LOKit version: Collabora Office 24.04.4.2 (git hash: 7fb545b)
Served by: openSUSE Leap 15.5
Server ID: a16ecc5f

Additional Context

Found during COOL Weekly 172:

  • @pedropintosilva was able to also able see same issue.
  • @Minion3665 was the one with a "French" browser.
    • Other users may have had different UIs/mixes too.

While this bug was occurring, I also noticed...

When I opened sidebar's "Styles" dropdown, it also had lots of other strange "French" Styles showing below English "Heading 1":

Collabora 24 04 4 2 - Writer - Sidebar Style Dropdown Showing Foreign Styles 2

Maybe that might give a hint to root of problem too:

  • Corps de texte = Body Text
    • Notice in screenshot, both the English "Body Text" + French "Corps de texte" existed.
      • And that the French version in sidebar was highlighted instead!
  • En-tête = Header
  • Texte préformaté = Preformatted Text
  • Titre 1 = Title 1
  • Titre 2 = Title 2
  • Titre 3 = Title 3
  • Titre principal = Main Title

Odd thing was, the French names only appeared in the "Sidebar" version, and didn't seem to appear in the "Home" tab version. (But I didn't look TOO TOO closely through every Style in the Home tab previews.)

Tex2002ans avatar Jun 27 '24 13:06 Tex2002ans