Skip to content

Commit

Permalink
Add i18n to the VCS Deletion Mode Configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jan 12, 2025
1 parent 3ef444a commit 496980f
Show file tree
Hide file tree
Showing 12 changed files with 1,947 additions and 1,021 deletions.
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/config/Configs.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static class Generic
public static final ConfigOptionList PASTE_REPLACE_BEHAVIOR = new ConfigOptionList("pasteReplaceBehavior", ReplaceBehavior.NONE).apply(GENERIC_KEY);
public static final ConfigOptionList PLACEMENT_REPLACE_BEHAVIOR = new ConfigOptionList("placementReplaceBehavior", ReplaceBehavior.ALL).apply(GENERIC_KEY);
public static final ConfigOptionList PLACEMENT_RESTRICTION_WARN = new ConfigOptionList("placementRestrictionWarn", MessageOutputType.ACTIONBAR).apply(GENERIC_KEY);
public static final ConfigOptionList SCHEMATIC_VCS_DELETE_MODE = new ConfigOptionList("schematicVcsDeleteMode", PlacementDeletionMode.MATCHING_BLOCK, "The deletion mode to use for removing the previous schematic version\nwhen pasting the next version in the Schematic VCS mode");
public static final ConfigOptionList SCHEMATIC_VCS_DELETE_MODE = new ConfigOptionList("schematicVcsDeleteMode", PlacementDeletionMode.MATCHING_BLOCK).apply(GENERIC_KEY);
public static final ConfigOptionList SELECTION_CORNERS_MODE = new ConfigOptionList("selectionCornersMode", CornerSelectionMode.CORNERS).apply(GENERIC_KEY);

public static final ConfigBoolean CUSTOM_SCHEMATIC_BASE_DIRECTORY_ENABLED = new ConfigBoolean("customSchematicBaseDirectoryEnabled", false).apply(GENERIC_KEY);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/config/Hotkeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class Hotkeys
public static final ConfigHotkey SCHEMATIC_EDIT_REPLACE_DIRECTION = new ConfigHotkey("schematicEditReplaceDirection", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_PLACEMENT_ROTATION = new ConfigHotkey("schematicPlacementRotation", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_PLACEMENT_MIRROR = new ConfigHotkey("schematicPlacementMirror", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VCS_DELETE_BY_PLACEMENT = new ConfigHotkey("schematicVCSDeleteBlockByPlacement","", "A key to delete blocks from the world based on the currently\nselected version's placement.\nSe Generic -> 'schematicVcsDeleteMode' for the delete mode/behavior");
public static final ConfigHotkey SCHEMATIC_VCS_DELETE_BY_PLACEMENT = new ConfigHotkey("schematicVCSDeleteBlockByPlacement","").apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VERSION_CYCLE_MODIFIER = new ConfigHotkey("schematicVersionCycleModifier", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VERSION_CYCLE_NEXT = new ConfigHotkey("schematicVersionCycleNext", "").apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VERSION_CYCLE_PREVIOUS = new ConfigHotkey("schematicVersionCyclePrevious", "").apply(HOTKEYS_KEY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

public enum PlacementDeletionMode implements IConfigOptionListEntry
{
MATCHING_BLOCK ("matching_block", "Matching Block"),
NON_MATCHING_BLOCK ("non_matching_block", "Non-Matching Block"),
ANY_SCHEMATIC_BLOCK ("any_schematic_block", "Any Schematic Block"),
NO_SCHEMATIC_BLOCK ("no_schematic_block", "No Schematic Block"),
ENTIRE_VOLUME ("entire_volume", "Entire Volume");
MATCHING_BLOCK ("matching_block", "litematica.gui.label.placement_deletion_mode.matching_block"),
NON_MATCHING_BLOCK ("non_matching_block", "litematica.gui.label.placement_deletion_mode.non_matching_block"),
ANY_SCHEMATIC_BLOCK ("any_schematic_block", "litematica.gui.label.placement_deletion_mode.any_schematic_block"),
NO_SCHEMATIC_BLOCK ("no_schematic_block", "litematica.gui.label.placement_deletion_mode.no_schematic_block"),
ENTIRE_VOLUME ("entire_volume", "litematica.gui.label.placement_deletion_mode.entire_volume");

private final String configString;
private final String translationKey;
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/assets/litematica/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"litematica.config.generic.name.pasteReplaceBehavior": "pasteReplaceBehavior",
"litematica.config.generic.name.placementReplaceBehavior": "placementReplaceBehavior",
"litematica.config.generic.name.placementRestrictionWarn": "placementRestrictionWarn",
"litematica.config.generic.name.schematicVcsDeleteMode": "schematicVcsDeleteMode",
"litematica.config.generic.name.selectionCornersMode": "selectionCornersMode",
"litematica.config.generic.name.customSchematicBaseDirectoryEnabled": "customSchematicBaseDirectoryEnabled",
"litematica.config.generic.name.customSchematicBaseDirectory": "customSchematicBaseDirectory",
Expand Down Expand Up @@ -190,6 +191,7 @@
"litematica.config.hotkeys.name.schematicEditReplaceDirection": "schematicEditReplaceDirection",
"litematica.config.hotkeys.name.schematicPlacementRotation": "schematicPlacementRotation",
"litematica.config.hotkeys.name.schematicPlacementMirror": "schematicPlacementMirror",
"litematica.config.hotkeys.name.schematicVCSDeleteBlockByPlacement": "schematicVCSDeleteBlockByPlacement",
"litematica.config.hotkeys.name.schematicVersionCycleModifier": "schematicVersionCycleModifier",
"litematica.config.hotkeys.name.schematicVersionCycleNext": "schematicVersionCycleNext",
"litematica.config.hotkeys.name.schematicVersionCyclePrevious": "schematicVersionCyclePrevious",
Expand Down Expand Up @@ -228,6 +230,7 @@
"litematica.config.generic.comment.pasteReplaceBehavior": "The behavior of replacing existing blocks\nin the Paste schematic tool mode",
"litematica.config.generic.comment.placementReplaceBehavior": "The block replace behavior when adding blocks\nto the schematic world.\n\nThis allows using overlapped placements without the\nlater handled placement always overwriting earlier ones with air.\nOn the other hand some blocks like light blocks are considered\nto be air, so they would need the \"All\" replace behavior\nto get placed at all.",
"litematica.config.generic.comment.placementRestrictionWarn": "Selects which type of warning message to show (if any)\nwhen either the Easy Place mode or Placement Restriction prevent placing a block",
"litematica.config.generic.comment.schematicVcsDeleteMode": "The deletion mode to use for removing the previous schematic version\nwhen pasting the next version in the Schematic VCS mode",
"litematica.config.generic.comment.selectionCornersMode": "The Area Selection corners mode to use (Corners, or Expand)",
"litematica.config.generic.comment.customSchematicBaseDirectoryEnabled": "If enabled, then the directory set in 'customSchematicBaseDirectory'\nwill be used as the root/base schematic directory,\ninstead of the normal '.minecraft/schematics/' directory",
"litematica.config.generic.comment.customSchematicBaseDirectory": "The root/base schematic directory to use,\nif 'customSchematicBaseDirectoryEnabled' is enabled",
Expand Down Expand Up @@ -414,6 +417,7 @@
"litematica.config.hotkeys.comment.schematicEditReplaceDirection": "Modifier key to activate the directional/continuous\nreplace mode/function in the Schematic Edit tool mode",
"litematica.config.hotkeys.comment.schematicPlacementRotation": "The schematic is rotated 90 degrees clockwise when pressed",
"litematica.config.hotkeys.comment.schematicPlacementMirror": "The Schematic is mirror flipped when pressed",
"litematica.config.hotkeys.comment.schematicVCSDeleteBlockByPlacement": "A key to delete blocks from the world based on the currently\nselected version's placement.\nSee Generic -> 'schematicVcsDeleteMode' for the delete mode/behavior",
"litematica.config.hotkeys.comment.schematicVersionCycleModifier": "The modifier key to hold to be able to use the mouse wheel\nto cycle through the schematic versions in the Version Control tool mode",
"litematica.config.hotkeys.comment.schematicVersionCycleNext": "A hotkey to cycle to the next schematic version in the Version Control tool mode",
"litematica.config.hotkeys.comment.schematicVersionCyclePrevious": "A hotkey to cycle to the previous schematic version in the Version Control tool mode",
Expand Down Expand Up @@ -739,6 +743,12 @@
"litematica.gui.label.paste_nbt_behavior.place_data_modify": "Place & Data Modify",
"litematica.gui.label.paste_nbt_behavior.place_clone": "Place & Clone",

"litematica.gui.label.placement_deletion_mode.matching_block": "Matching Block",
"litematica.gui.label.placement_deletion_mode.non_matching_block": "Non-Matching Block",
"litematica.gui.label.placement_deletion_mode.any_schematic_block": "Any Schematic Block",
"litematica.gui.label.placement_deletion_mode.no_schematic_block": "No Schematic Block",
"litematica.gui.label.placement_deletion_mode.entire_volume": "Entire Volume",

"litematica.gui.label.placement_sub.region_name": "Region name: %s",
"litematica.gui.label.placement_sub.region_position": "Region position",
"litematica.gui.label.placement_sub.region_size": "Region size: %s",
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/assets/litematica/lang/es_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"litematica.config.generic.name.pasteReplaceBehavior": "Comportamiento Reemplazar Pegar",
"litematica.config.generic.name.placementReplaceBehavior": "Comportamiento Reemplazar Colocación",
"litematica.config.generic.name.placementRestrictionWarn": "Advertencia Restricción Colocación",
"litematica.config.generic.name.schematicVcsDeleteMode": "schematicVcsDeleteMode",
"litematica.config.generic.name.selectionCornersMode": "Modo Esquinas Selección",
"litematica.config.generic.name.customSchematicBaseDirectoryEnabled": "Directorio Base Esquema Personalizado Habilatado",
"litematica.config.generic.name.customSchematicBaseDirectory": "Directorio Base Esquema Personalizado",
Expand Down Expand Up @@ -186,6 +187,7 @@
"litematica.config.hotkeys.name.schematicEditReplaceDirection": "Editar Esquema Reemplazar Dirección",
"litematica.config.hotkeys.name.schematicPlacementRotation": "Rotación Colocación Esquema",
"litematica.config.hotkeys.name.schematicPlacementMirror": "Espejo Colocación Esquema",
"litematica.config.hotkeys.name.schematicVCSDeleteBlockByPlacement": "schematicVCSDeleteBlockByPlacement",
"litematica.config.hotkeys.name.schematicVersionCycleModifier": "Modificador Ciclo Versión Esquema",
"litematica.config.hotkeys.name.schematicVersionCycleNext": "Ciclo Siguiente Versión Esquema",
"litematica.config.hotkeys.name.schematicVersionCyclePrevious": "Ciclo Anterior Versión Esquema",
Expand Down Expand Up @@ -223,6 +225,7 @@
"litematica.config.generic.comment.pasteReplaceBehavior": "El comportamiento de reemplazar los bloques existentes\nen la herramienta de esquema de pegado",
"litematica.config.generic.comment.placementReplaceBehavior": "El comportamiento de reemplazo de bloque al agregar bloques\nael mundo del esquema.\n\nEsto permite usar colocaciónes superpuestas sin que la\ncolocación manejada posteriormente sobrescriba siempre a las anteriores con aire.\nPor otro lado, algunos bloques como los bloques de luz se consideran\naire, por lo que necesitarían el comportamiento de reemplazo \"Todo\"\npara poder ser colocados.",
"litematica.config.generic.comment.placementRestrictionWarn": "Selecciona qué tipo de mensaje de advertencia mostrar (si hay alguno)\ncuando el modo Asistente Colocación o la Restricción de Colocación impide colocar un bloque",
"litematica.config.generic.comment.schematicVcsDeleteMode": "The deletion mode to use for removing the previous schematic version\nwhen pasting the next version in the Schematic VCS mode",
"litematica.config.generic.comment.selectionCornersMode": "El modo de esquinas de Selección de Área a utilizar (Esquinas, o Expandir)",
"litematica.config.generic.comment.customSchematicBaseDirectoryEnabled": "Si está Habilatado, entonces el directorio establecido en 'customSchematicBaseDirectory'\nse utilizará como la raíz/base del directorio de esquemas,\nen lugar del directorio normal '.minecraft/schematics/'",
"litematica.config.generic.comment.customSchematicBaseDirectory": "El directorio raíz/base del esquema a utilizar,\nsi 'customSchematicBaseDirectoryEnabled' está Habilatado",
Expand Down Expand Up @@ -405,6 +408,7 @@
"litematica.config.hotkeys.comment.schematicEditReplaceDirection": "Tecla modificadora para activar el modo/función de reemplazo por dirección/continua\nen el modo de Herramienta de Editar Esquema",
"litematica.config.hotkeys.comment.schematicPlacementRotation": "El esquema se rota 90 grados en sentido horario cuando se presiona",
"litematica.config.hotkeys.comment.schematicPlacementMirror": "El Esquema se refleja al presionarse",
"litematica.config.hotkeys.comment.schematicVCSDeleteBlockByPlacement": "A key to delete blocks from the world based on the currently\nselected version's placement.\nSee Generic -> 'schematicVcsDeleteMode' for the delete mode/behavior",
"litematica.config.hotkeys.comment.schematicVersionCycleModifier": "La tecla modificadora que se mantiene para poder usar la rueda del ratón\npara cambiar entre las versiones de esquema en el modo de Herramienta de Control de Versiones",
"litematica.config.hotkeys.comment.schematicVersionCycleNext": "Una tecla de acceso rápido para cambiar a la siguiente versión de esquema\nen el modo de Herramienta de Control de Versiones",
"litematica.config.hotkeys.comment.schematicVersionCyclePrevious": "Una tecla de acceso rápido para cambiar a la siguiente versión de esquema\nen el modo de Herramienta de Control de Versiones",
Expand Down Expand Up @@ -684,6 +688,11 @@
"litematica.gui.label.paste_nbt_behavior.none": "Ninguno",
"litematica.gui.label.paste_nbt_behavior.place_data_modify": "Colocar y Modificar Datos",
"litematica.gui.label.paste_nbt_behavior.place_clone": "Colocar y Clonar",
"litematica.gui.label.placement_deletion_mode.matching_block": "Matching Block",
"litematica.gui.label.placement_deletion_mode.non_matching_block": "Non-Matching Block",
"litematica.gui.label.placement_deletion_mode.any_schematic_block": "Any Schematic Block",
"litematica.gui.label.placement_deletion_mode.no_schematic_block": "No Schematic Block",
"litematica.gui.label.placement_deletion_mode.entire_volume": "Entire Volume",
"litematica.gui.label.placement_sub.region_name": "Nombre de la región: %s",
"litematica.gui.label.placement_sub.region_position": "Posición de la región",
"litematica.gui.label.placement_sub.region_size": "Tamaño de la región: %s",
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/assets/litematica/lang/it_it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"litematica.config.generic.name.pasteReplaceBehavior": "comportamentoSostituzioneIncolla",
"litematica.config.generic.name.placementReplaceBehavior": "comportamentoSostituzionePosizionamento",
"litematica.config.generic.name.placementRestrictionWarn": "avvisoRestrizionePosizionamento",
"litematica.config.generic.name.schematicVcsDeleteMode": "schematicVcsDeleteMode",
"litematica.config.generic.name.selectionCornersMode": "modalitàAngoliSelezione",
"litematica.config.generic.name.customSchematicBaseDirectoryEnabled": "directoryBaseSchematicPersonalizzataAbilitata",
"litematica.config.generic.name.customSchematicBaseDirectory": "directoryBaseSchematicPersonalizzata",
Expand Down Expand Up @@ -186,6 +187,7 @@
"litematica.config.hotkeys.name.schematicEditReplaceDirection": "schemaModificaSostituisciDirezione",
"litematica.config.hotkeys.name.schematicPlacementRotation": "schemaPosizionamentoRotazione",
"litematica.config.hotkeys.name.schematicPlacementMirror": "schemaPosizionamentoSpecchio",
"litematica.config.hotkeys.name.schematicVCSDeleteBlockByPlacement": "schematicVCSDeleteBlockByPlacement",
"litematica.config.hotkeys.name.schematicVersionCycleModifier": "modificatoreCicloVersioniSchema",
"litematica.config.hotkeys.name.schematicVersionCycleNext": "cicloVersioniSchemaSuccessivo",
"litematica.config.hotkeys.name.schematicVersionCyclePrevious": "cicloVersioniSchemaPrecedente",
Expand Down Expand Up @@ -223,6 +225,7 @@
"litematica.config.generic.comment.pasteReplaceBehavior": "Il comportamento di sostituzione dei blocchi esistenti\nnella modalità strumento dello schema di incollaggio.",
"litematica.config.generic.comment.placementReplaceBehavior": "Il comportamento di sostituzione dei blocchi quando si aggiungono blocchi\nal mondo dello schema.\n\nQuesto consente di utilizzare posizionamenti sovrapposti senza che il\nposizionamento successivo sovrascriva sempre i precedenti con l'aria.\nD'altra parte, alcuni blocchi come i blocchi di luce sono considerati\naria, quindi avrebbero bisogno del comportamento di sostituzione \"Tutti\"\nper essere posizionati.",
"litematica.config.generic.comment.placementRestrictionWarn": "Seleziona quale tipo di messaggio di avviso mostrare (se presente)\nquando la modalità Easy Place o la Restrizione di Posizionamento impediscono di posizionare un blocco.",
"litematica.config.generic.comment.schematicVcsDeleteMode": "The deletion mode to use for removing the previous schematic version\nwhen pasting the next version in the Schematic VCS mode",
"litematica.config.generic.comment.selectionCornersMode": "La modalità degli angoli di selezione dell'area da utilizzare (Angoli o Espandi).",
"litematica.config.generic.comment.customSchematicBaseDirectoryEnabled": "Se abilitato, la directory impostata in 'customSchematicBaseDirectory'\nverrà utilizzata come directory principale/base per gli schemi,\ninvece della normale directory '.minecraft/schematics/'.",
"litematica.config.generic.comment.customSchematicBaseDirectory": "La directory principale/base per gli schemi da utilizzare,\nse 'customSchematicBaseDirectoryEnabled' è abilitato.",
Expand Down Expand Up @@ -405,6 +408,7 @@
"litematica.config.hotkeys.comment.schematicEditReplaceDirection": "Tasto modificatore per attivare la modalità/funzione di sostituzione\ndirezionale/continuo nel tool di Modifica Schema.",
"litematica.config.hotkeys.comment.schematicPlacementRotation": "Lo schema viene ruotato di 90 gradi in senso orario quando premuto.",
"litematica.config.hotkeys.comment.schematicPlacementMirror": "Lo schema viene specchiato quando premuto.",
"litematica.config.hotkeys.comment.schematicVCSDeleteBlockByPlacement": "A key to delete blocks from the world based on the currently\nselected version's placement.\nSee Generic -> 'schematicVcsDeleteMode' for the delete mode/behavior",
"litematica.config.hotkeys.comment.schematicVersionCycleModifier": "Il tasto modificatore da tenere premuto per poter usare la rotella del mouse\nper scorrere tra le versioni dello schema nella modalità Controllo Versioni.",
"litematica.config.hotkeys.comment.schematicVersionCycleNext": "Tasto di scelta rapida per scorrere alla versione successiva dello schema nella modalità Controllo Versioni.",
"litematica.config.hotkeys.comment.schematicVersionCyclePrevious": "Tasto di scelta rapida per scorrere alla versione precedente dello schema nella modalità Controllo Versioni.",
Expand Down Expand Up @@ -684,6 +688,11 @@
"litematica.gui.label.paste_nbt_behavior.none": "Nessuno",
"litematica.gui.label.paste_nbt_behavior.place_data_modify": "Posiziona & Modifica Dati",
"litematica.gui.label.paste_nbt_behavior.place_clone": "Posiziona & Clona",
"litematica.gui.label.placement_deletion_mode.matching_block": "Matching Block",
"litematica.gui.label.placement_deletion_mode.non_matching_block": "Non-Matching Block",
"litematica.gui.label.placement_deletion_mode.any_schematic_block": "Any Schematic Block",
"litematica.gui.label.placement_deletion_mode.no_schematic_block": "No Schematic Block",
"litematica.gui.label.placement_deletion_mode.entire_volume": "Entire Volume",
"litematica.gui.label.placement_sub.region_name": "Nome regione: %s",
"litematica.gui.label.placement_sub.region_position": "Posizione regione",
"litematica.gui.label.placement_sub.region_size": "Dimensione regione: %s",
Expand Down
Loading

0 comments on commit 496980f

Please sign in to comment.