Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-251763

Hyphenated words are inconsistently capitalized in title case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.2, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 2, 1.19, 22w24a, 1.19.1 Pre-release 2, 1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3 Pre-release 3, 1.20.1, 23w33a, 23w35a, 1.20.4, 24w09a, 24w10a, 24w11a, 24w12a, 24w13a, 1.20.5 Pre-Release 1, 1.20.5 Release Candidate 3, 1.20.5, 24w18a
    • None
    • Confirmed
    • Text
    • Low
    • Platform

      The bug

      In strings written in title case (button labels, headings, etc.), there is an inconsistency in how capitalisation is applied to hyphenated words.

      Sometimes, all the words linked by a hyphen are capitalised, but other strings only capitalise the first word in a group of words linked by a hyphen.

      All words

      Translation key String
      selectWorld.recreate Re-Create
      multiplayerWarning.header Caution: Third-Party Online Play
      options.autoJump Auto-Jump

      First word only

      Translation key String
      item.minecraft.firework_star.shape.star Star-shaped
      item.minecraft.firework_star.shape.creeper Creeper-shaped
      title.multiplayer.other Multiplayer (3rd-party Server)

      Steps to reproduce

      Pick one translation string from each table to search for in the vanilla language file. Search for them and note the two different capitalisation schemes.

      Alternatively, you can test it in-game by giving yourself a firework star with the command below, then navigating the menus to find a string from the first table.

      /give @s firework_star[firework_explosion = {shape: "star"}]

      To find all hyphenated word pairs, run the following regular expression on the vanilla language file: \w-\w

            Unassigned Unassigned
            MishMoshKeel21 MMK21
            Votes:
            10 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: