Page MenuHomePhabricator

Make space in lexeme header localizable
Open, LowPublic

Description

The lexeme header has spaces after the “language” and “lexical category” fields (example from L1:

Screenshot from 2022-11-07 12-11-16.png (209×493 px, 14 KB)

Screenshot from 2022-11-07 12-11-14.png (209×493 px, 20 KB)

These spaces are currently just hard-coded in the HTML template (in fact, we had to fix the template so the spaces wouldn’t get removed under Vue 3). They should be translatable – some languages (such as Chinese, I believe) don’t need a space there.

Event Timeline

Personally, I’d also like to see some punctuation there – I think the colon-separator message (English: “: ”) would work well here (“Language: Sumerian”).

Change 879934 had a related patch set uploaded (by Sushrith Bogi; author: Sushrith Bogi):

[mediawiki/extensions/WikibaseLexeme@master] lexeme header:Add a colon-separator to the lexeme header "language"

https://gerrit.wikimedia.org/r/879934

Hi @Lucas_Werkmeister_WMDE
Could you please provide me how the colon must be added other than hard-coding and where the spaces are supposed to be present?

The colon-separator message should be used, and there should not be any spaces around the message in the template (the spaces should come from the message itself).