mojira.dev
MC-274940

en_us.json contains unused strings

Observed behavior

The en_us.json language file contains translation strings that have not been used in any version since 22w42a.

Expected behavior

The en_us.json language file would only contain translation strings that have been used in at least one version since 22w42a.

List of unused translation strings

Key

Value

Added in

Unused since

gui.down

Down

b1.0

b1.0

gui.up

Up

b1.0

b1.0

selectWorld.mapType.normal

Normal

b1.8-pre

12w01a

options.difficulty.hardcore

Hardcore

b1.9-pre2

14w02a

container.creative

Item Selection

12w04a

12w21b

options.hidden

Hidden

12w17a

12w17a

options.visible

Shown

12w17a

12w17a

selectWorld.gameMode.adventure.line1

Same as Survival Mode, but blocks can't

12w25a

12w25a

selectWorld.gameMode.adventure.line2

be added or removed

12w25a

12w25a

options.multiplayer.title

Multiplayer Settings...

12w41a

1.8.1-pre1

chat.cannotSend

Cannot send chat message

13w21a

21w07a

gui.all

All

14w17a

18w06a

gui.none

None

14w17a

14w17a

argument.id.unknown

Unknown ID: %s

18w22b

19w44a

resourcePack.broken_assets

BROKEN ASSETS DETECTED

18w30a

20w45a

narrator.loading

Loading: %s

19w13a

21w20a

generator.customized

Old Customized

20w21a

20w21a

generator.single_biome_caves

Caves

20w21a

1.18-pre1

generator.single_biome_floating_islands

Floating Islands

20w21a

1.18-pre1

pack.source.local

local

1.16-pre1

1.16-pre1

multiplayer.disconnect.missing_tags

Incomplete set of tags received from server.\nPlease contact server operator.

20w27a

22w06a

options.percent_add_value

%s: +%s%%

20w28a

22w11a

narration.button

Button: %s

21w20a

21w20a

narration.checkbox

Checkbox: %s

21w20a

21w20a

narration.recipe.usage

Left click to select

21w20a

21w20a

Linked issues

Attachments

Comments 3

Others unused strings you can add is all the "item.minecraft.music_disc_<song>.desc". Their are remplaced/duplicated/not used since the 24w21a and the new format "jukebox_song.<namespace>.<jukebox_song_id>" of the data driven Jukebox.

 

Key

Value

Added in

Unused since

item.minecraft.music_disc_5.desc

Samuel Åberg - 5

22w16a

24w21a

item.minecraft.music_disc_11.desc

C418 - 11

17w47a

24w21a

item.minecraft.music_disc_13.desc

C418 - 13

17w47a

24w21a

item.minecraft.music_disc_blocks.desc

C418 - blocks

17w47a

24w21a

item.minecraft.music_disc_cat.desc

C418 - cat

17w47a

24w21a

item.minecraft.music_disc_chirp.desc

C418 - chirp

17w47a

24w21a

item.minecraft.music_disc_creator_music_box.desc

Lena Raine - Creator (Music Box)

24w18a

24w21a

item.minecraft.music_disc_creator.desc

Lena Raine - Creator

24w18a

24w21a

item.minecraft.music_disc_far.desc

C418 - far

17w47a

24w21a

item.minecraft.music_disc_mall.desc

C418 - mall

17w47a

24w21a

item.minecraft.music_disc_mellohi.desc

C418 - mellohi

17w47a

24w21a

item.minecraft.music_disc_otherside.desc

Lena Raine - otherside

21w42a

24w21a

item.minecraft.music_disc_pigstep.desc

Lena Raine - Pigstep

20w16a

24w21a

item.minecraft.music_disc_precipice.desc

Aaron Cherof - Precipice

24w18a

24w21a

item.minecraft.music_disc_relic.desc

Aaron Cherof - Relic

23w17a

24w21a

item.minecraft.music_disc_stal.desc

C418 - stal

17w47a

24w21a

item.minecraft.music_disc_strad.desc

C418 - strad

17w47a

24w21a

item.minecraft.music_disc_wait.desc

C418 - wait

17w47a

24w21a

item.minecraft.music_disc_ward.desc

C418 - ward

17w47a

24w21a

 

@unknown: This is WAI as per MC-262552, MC-265169 and MC-274495. Please don't hijack the comments for a different issue and read the comments on the reports I've linked, thanks!

Confirming this report with code analysis from 1.21. All listed strings have no references to a "Component.translatable()" method call anywhere in the code, they go entirely unused.

Take for instance; "gui.down" which has no usage, compared to "gui.done" which has usage in CommonComponents.java:

[media]

[media]

MrMuskle

(Unassigned)

Confirmed

Platform

Low

Text

unused_string

22w42a, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4

Retrieved