Page MenuHomePhabricator

Labels should not be converted into Title Case
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

What should have happened instead?:

  • Labels remain as written

Initial report by msz2001 in Telegram:

the "Enter Inputs" message seem to be automatically converting itself to Title Case (as [[MediaWiki:Wikilambda-function-evaluator-enter-inputs/en]] contains the message in sentence case and I haven't found any other such message) - this is not viable for i18n, as in some languages such a casing is used very scarcely

Event Timeline

Jdforrester-WMF moved this task from To triage to Backlog on the Abstract Wikipedia team board.

It also applies to the "Pass" / "Fail" labels regarding the test status on the function details page.

And the dialog "Test case details" content is also title-cased. (The dialog that's invoked by the (i) icon in the test cases table for a function).

Change 945868 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Drop all text-transform directives, not i18n-safe

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

Jdforrester-WMF changed the task status from Open to In Progress.Aug 4 2023, 8:09 PM
Jdforrester-WMF claimed this task.
Jdforrester-WMF moved this task from Backlog to In Progress on the Abstract Wikipedia team board.

I've noticed this too because it looks horrible in German, e.g.
On https://www.wikifunctions.org/view/de/Z12 if you expand the first part that says "texts":

  • "Art Der Datenobjekte Auflisten" (should be "Art der Datenobjekte auflisten")
  • "Objekte Auflisten" (should be "Objekte auflisten")

On https://www.wikifunctions.org/view/de/Z112:

  • "Eingaben Eingeben" (should be "Eingaben eingeben")

Since German uses capitalisation for nouns, I find title case much harder to read because it has an effect similar to garden-path sentences - it tricks me into expecting a noun but then it doesn't make sense so I have to re-read it.

Change 945868 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Drop all text-transform directives, not i18n-safe

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