Sort & format language files ()

(cherry picked from commit 7d48d439b6)
This commit is contained in:
modmuss 2025-01-14 13:45:03 +00:00 committed by modmuss50
parent de636c47f7
commit ecf51cdcd2
9 changed files with 32 additions and 25 deletions
build.gradle
fabric-game-rule-api-v1/src/testmod/resources/assets/fabric-gamerule-test/lang
fabric-item-group-api-v1/src/main/resources/assets/fabric/lang
fabric-key-binding-api-v1/src/testmodClient/resources/assets/fabric-keybindings-v1-testmod/lang
fabric-networking-api-v1/src/testmod/resources/assets/fabric-networking-api-v1-testmod/lang
fabric-object-builder-api-v1/src/testmod/resources/assets/fabric-object-builder-api-v1-testmod/lang
fabric-registry-sync-v0/src/main/resources/assets/fabric-registry-sync-v0/lang
fabric-resource-loader-v0/src/main/resources/assets/fabric-resource-loader-v0/lang
fabric-tag-api-v1/src/testmod/resources/assets/fabric-tag-api-v1-testmod/lang

View file

@ -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 {

View file

@ -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"
}

View file

@ -1,3 +1,3 @@
{
"fabric.gui.creativeTabPage": "Page %d/%d"
}
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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",