Replaces hard-coded placeholder string with translatable messages
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good

This commit is contained in:
2025-09-03 12:21:02 +02:00
parent c1236d3d91
commit 0fbe3720aa
28 changed files with 207 additions and 101 deletions

View File

@@ -13,10 +13,10 @@ en:
SUCCESS_BOOK_LOADED: "Book created!"
SUCCESS_MIGRATION_STARTED: "Starting book migration..."
SUCCESS_RELOADED: "Configuration, books and language strings reloaded!"
SUCCESS_SAVED: "Book Saved as &e\"{fileName}\"&r"
SUCCESS_SAVED: "Book Saved as &e\"{file}\"&r"
SUCCESS_SET_AUTHOR: "Book author set to {author}!"
SUCCESS_COST_REMOVED: "Price to create books removed!"
SUCCESS_COST_ITEM_SET: "Book creation price set to {quantity} {price}(s)!"
SUCCESS_COST_ITEM_SET: "Book creation price set to {quantity} {cost}(s)!"
SUCCESS_COST_ECONOMY_SET: "Book creation price set to {cost}!"
SUCCESS_COST_PAID: |
{cost} withdrawn to create {copies} book(s)
@@ -81,7 +81,7 @@ en:
ERROR_SAVE_FILE_SYSTEM_ERROR: "Saving Failed! If this continues to happen, consult a server admin!"
ERROR_SAVE_OVERWRITE_REQUIRED: "Use &e{command}&r to overwrite!"
ERROR_SAVE_DUPLICATE_NAMED: "Book is already saved!"
ERROR_SAVE_DUPLICATE_UNNAMED: "Maximum amount of {fileName} duplicates reached!"
ERROR_SAVE_DUPLICATE_UNNAMED: "Maximum amount of {file} duplicates reached!"
ERROR_UNKNOWN_COMMAND: "Invalid command specified"
ERROR_AUTHOR_BLANK: "You must specify an author"
ERROR_COST_NOT_SPECIFIED: "[Item/Eco] and [quantity] must be specified!"
@@ -129,7 +129,7 @@ en:
{bookPrice}&eCommands:
{commandExplanation}&r
{commands}
NEUTRAL_COMMANDS_BOOK_PRICE_ECO: "\n&c[{price} is required to create a book]"
NEUTRAL_COMMANDS_BOOK_PRICE_ECO: "\n&c[{cost} is required to create a book]"
NEUTRAL_COMMANDS_BOOK_PRICE_ITEM: "&c[{quantity} {type} (s) are required to create a book]\n"
NEUTRAL_COMMANDS_COMMAND: "\n&e{usage}{aliases}: &a{description}"
NEUTRAL_COMMANDS_SUMMARY: "\n&eCommand: &aUsage summary"
@@ -156,7 +156,7 @@ en:
NEUTRAL_BOOK_LIST_PATH_HOVER: "Select book by path"
NEUTRAL_BOOK_LIST_BOOK_INDEX_HOVER: "Select book by index"
NEUTRAL_BOOK_LIST_BOOK_INDEX_NUMBER: "[{index}]"
NEUTRAL_BOOKSHELF_HEADER_TITLE: "&nBookshelf summary\n&#FF5700Books in {name}&r&#FF5700:{lore}"
NEUTRAL_BOOKSHELF_HEADER_TITLE: "&nBookshelf summary\n&#FF5700Books in {title}&r&#FF5700:{lore}"
NEUTRAL_BOOKSHELF_HEADER_LORE: "\n &d{lore}&r"
NEUTRAL_BOOKSHELF_HEADER_TITLE_EMPTY: "shelf"
NEUTRAL_BOOKSHELF_HEADER_TOP: "\n &#FF5700Top Row:&r"
@@ -185,4 +185,47 @@ en:
SIGN_VALID: "&1{line}"
ERROR_SIGN_INVALID: "Invalid sign!"
ERROR_SIGN_COMMAND_INVALID: "Sign command {action} {data} is invalid"
SUCCESS_SIGN_GIVE: "Received book!"
SUCCESS_SIGN_GIVE: "Received book!"
# ------------ #
# Placeholders #
# -------------¤
# Warning: Replacing any of these require them to be replaced in every other string in this file that contains the
# placeholder. Avoid changing these unless it's necessary, or you know what you're doing! Some placeholders may also
# be used in non-customizable error messages.
# ------------ #
FILE: "{file}"
AUTHOR: "{author}"
ACTION: "{action}"
DATA: "{data}"
INDEX: "{index}"
QUANTITY: "{quantity}"
COST: "{cost}"
TITLE: "{title}"
DISPLAY_NAME: "{displayName}"
LINE: "{line}"
PASSWORD: "{password}"
COMMAND: "{command}"
EXCEPTION: "{exception}"
PATH: "{path}"
EXTENSION: "{extension}"
HEADER: "{header}"
TEXT: "{text}"
SEPARATOR: "{separator}"
CURRENT: "{current}"
TOTAL: "{total}"
CHARACTER: "{character}"
PAGE: "{page}"
BOOK_PRICE: "{bookPrice}"
COMMANDS: "{commands}"
COMMAND_EXPLANATION: "{commandExplanation}"
PLAYER: "{player}"
CURRENCY: "{currency}"
FOLDER: "{folder}"
TYPE: "{type}"
PERMISSION: "{permission}"
USAGE: "{usage}"
DESCRIPTION: "{description}"
ALIASES: "{aliases}"
LORE: "{lore}"
COPIES: "{copies}"
BALANCE: "{balance}"