Skip to content

Commit

Permalink
Sort & format language files (#4360)
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 authored Jan 14, 2025
1 parent dfeded7 commit 7d48d43
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 25 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@ allprojects {
indentWithTabs()
trimTrailingWhitespace()
}

// Sort the en_us translation files
// The other languages are handled by Crowdin
json {
target 'src/**/lang/en_us.json'
targetExclude 'src/**/generated/**'
gson().indentWithSpaces(2).sortByKeys()
}
}

checkstyle {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"gamerule.cardinalDirection": "Random Cardinal Direction Very Long Title",
"gamerule.cardinalDirection.description": "A cardinal direction. Should never be up or down",
"gamerule.cardinalDirection.east": "Eastbound",
"gamerule.cardinalDirection.north": "Northbound",
"gamerule.cardinalDirection.south": "Southbound",
"gamerule.cardinalDirection.east": "Eastbound",
"gamerule.cardinalDirection.west": "Westbound",

"gamerule.redSleepFailureEnum": "Why I didn't go to bed",
"gamerule.redSleepFailureEnum.description": "Bed bugs are nasty man.",
"gamerule.redSleepFailureEnum.not_possible_here": "Not here",
"gamerule.redSleepFailureEnum.not_possible_now": "Not now",
"gamerule.redSleepFailureEnum.too_far_away": "Too far away",
"gamerule.redSleepFailureEnum.not_safe": "Not safe",
"gamerule.redSleepFailureEnum.obstructed": "Obstructed",
"gamerule.redSleepFailureEnum.other_problem": "Other problem",
"gamerule.redSleepFailureEnum.not_safe": "Not safe"
"gamerule.redSleepFailureEnum.too_far_away": "Too far away"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"fabric.gui.creativeTabPage": "Page %d/%d"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"key.category.second.test": "Second Test Category",
"key.fabric-key-binding-api-v1-testmod.test_keybinding_1": "Test 1",
"key.fabric-key-binding-api-v1-testmod.test_keybinding_2": "Test 2",
"key.fabric-key-binding-api-v1-testmod.test_keybinding_sticky": "Sticky Test",
"key.fabric-key-binding-api-v1-testmod.test_keybinding_duplicate": "Duplicate Test"
"key.fabric-key-binding-api-v1-testmod.test_keybinding_duplicate": "Duplicate Test",
"key.fabric-key-binding-api-v1-testmod.test_keybinding_sticky": "Sticky Test"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"key.category.fabric-networking-api-v1-testmod": "Fabric Network Test",
"key.fabric-networking-api-v1-testmod.test": "Send test packet",
"key.fabric-networking-api-v1-testmod.open": "Open channel tester"
"key.fabric-networking-api-v1-testmod.open": "Open channel tester",
"key.fabric-networking-api-v1-testmod.test": "Send test packet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"block.fabric-object-builder-api-v1-testmod.first_multi_betrayal_block": "First Multi Betrayal Block",
"block.fabric-object-builder-api-v1-testmod.initial_betrayal_block": "Initial Betrayal Block",
"block.fabric-object-builder-api-v1-testmod.second_multi_betrayal_block": "Second Multi Betrayal Block",
"block.fabric-object-builder-api-v1-testmod.teal_sign": "Teal Sign",
"block.fabric-object-builder-api-v1-testmod.teal_hanging_sign": "Teal Hanging Sign",
"block.fabric-object-builder-api-v1-testmod.teal_sign": "Teal Sign",
"text.fabric-object-builder-api-v1-testmod.block_entity_type_success": "Betrayal block at %s has correct block entity type: %s"
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"fabric-registry-sync-v0.unknown-remote.title.singular" : "Received a registry entry that is unknown to this client.\n",
"fabric-registry-sync-v0.unknown-remote.title.plural" : "Received %d registry entries that are unknown to this client.\n",
"fabric-registry-sync-v0.unknown-remote.subtitle.1" : "This is usually caused by a mismatched mod set between the client and server.",
"fabric-registry-sync-v0.unknown-remote.subtitle.2" : " See the client logs for more details.\nThe following registry entry namespaces may be related:\n\n",
"fabric-registry-sync-v0.unknown-remote.footer" : "And %d more...",
"fabric-registry-sync-v0.unknown-registry.title.singular" : "Received a registry that is unknown to this client.\n",
"fabric-registry-sync-v0.unknown-registry.title.plural" : "Received %d registries that are unknown to this client.\n",
"fabric-registry-sync-v0.unknown-registry.subtitle.1" : "This is usually caused by a mismatched mod set between the client and server.",
"fabric-registry-sync-v0.unknown-registry.subtitle.2" : " See the client logs for more details.\nThe following registries are not present on the client:\n\n",
"fabric-registry-sync-v0.unknown-registry.footer" : "And %d more..."
"fabric-registry-sync-v0.unknown-registry.footer": "And %d more...",
"fabric-registry-sync-v0.unknown-registry.subtitle.1": "This is usually caused by a mismatched mod set between the client and server.",
"fabric-registry-sync-v0.unknown-registry.subtitle.2": " See the client logs for more details.\nThe following registries are not present on the client:\n\n",
"fabric-registry-sync-v0.unknown-registry.title.plural": "Received %d registries that are unknown to this client.\n",
"fabric-registry-sync-v0.unknown-registry.title.singular": "Received a registry that is unknown to this client.\n",
"fabric-registry-sync-v0.unknown-remote.footer": "And %d more...",
"fabric-registry-sync-v0.unknown-remote.subtitle.1": "This is usually caused by a mismatched mod set between the client and server.",
"fabric-registry-sync-v0.unknown-remote.subtitle.2": " See the client logs for more details.\nThe following registry entry namespaces may be related:\n\n",
"fabric-registry-sync-v0.unknown-remote.title.plural": "Received %d registry entries that are unknown to this client.\n",
"fabric-registry-sync-v0.unknown-remote.title.singular": "Received a registry entry that is unknown to this client.\n"
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"commands.datapack.fabric.internal": "Cannot enable or disable Fabric internal pack \"%s\".",
"pack.description.modResources": "Mod resources.",
"pack.source.fabricmod": "Fabric mod",
"pack.source.builtinMod": "built-in: %s",
"pack.name.fabricMod": "Fabric Mod \"%s\"",
"pack.name.fabricMods": "Fabric Mods",
"pack.name.fabricMod.subPack": "Fabric Mod \"%s\" (%s)",
"commands.datapack.fabric.internal": "Cannot enable or disable Fabric internal pack \"%s\"."
"pack.name.fabricMods": "Fabric Mods",
"pack.source.builtinMod": "built-in: %s",
"pack.source.fabricmod": "Fabric mod"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tag.block.fabric-tag-api-v1-testmod.bricks": "Bricks",
"tag.block.fabric-tag-api-v1-testmod.brick_blocks": "Brick Blocks",
"tag.block.fabric-tag-api-v1-testmod.bricks": "Bricks",
"tag.block.fabric-tag-api-v1-testmod.more_brick_blocks": "More Brick Blocks",
"tag.item.fabric-tag-api-v1-testmod.beetroots": "Beetroots",
"tag.item.fabric-tag-api-v1-testmod.expensive_rocks": "Expensive Rocks",
Expand Down

0 comments on commit 7d48d43

Please sign in to comment.