Language sync

- Branch-tracking language source on Bukkit and modded
- 57 unused keys removed, translations corrected
- Consolidated saved-pack field warning
This commit is contained in:
SwiftSwamp committed 2026-11-02 09:39:04 -07:00
1 parent 8b99f0b75f
commit 7efd51de3e
40 files changed
+13578 -14082

No files matched your search

@@ -55,6 +55,7 @@ import art.arcane.iris.integration.IrisPapiListener;
import art.arcane.iris.integration.IrisPapiState;
import art.arcane.iris.localization.IrisLanguage;
import art.arcane.volmlib.util.director.help.DirectorMiniMenu;
import art.arcane.volmlib.util.diagnostics.DebugDumpContributor;
import art.arcane.volmlib.util.localization.BukkitLanguageSwitcher;
import art.arcane.iris.integration.MultiverseCoreLink;
import art.arcane.iris.platform.agent.Agent;
@@ -659,10 +660,11 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
IrisLanguage.initialize();
debugDump = BukkitDebugDump.create(this, new BukkitDebugDump.Options(
() -> true,
() -> IrisSafeguard::debugReport));
Iris::captureDebugReport));
languageSwitcher = BukkitLanguageSwitcher.register(this, IrisLanguage.selections(),
new BukkitLanguageSwitcher.Options("iris", "iris.all",
DirectorMiniMenu.Theme.irisGreen(), IrisLanguage.directorResolver(), IrisLanguage.editorOptions()));
DirectorMiniMenu.Theme.irisGreen(), IrisLanguage.directorResolver(), IrisLanguage.editorOptions(),
null, IrisLanguage::checkUpstream, IrisLanguage::metaName));
updateNotifier = new IrisUpdateNotifier(this);
PaperLibBootstrap.install();
SimdSupport.install();
@@ -802,9 +804,15 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
IrisToolbelt.retainMantleDataForSlice(TreeBlockMaterial.class.getCanonicalName());
});
timings.mark("startupTasks");
IrisLanguage.checkUpstream();
timings.report();
}
private static DebugDumpContributor.Report captureDebugReport() {
String language = IrisLanguage.debugReport();
return () -> IrisSafeguard.debugReport() + "\n" + language;
}
private static final class EnableTimings {
private static final int REPORTED_SERVICES = 3;
@@ -189,6 +189,7 @@ public final class ModdedEngineBootstrap {
}
ModdedWorldCheck.serverStarted(server);
ModdedWorldgenCatalogs.capture(server);
IrisLanguage.checkUpstream();
}
public static void levelLoaded(NativeWorld world) {
@@ -3,14 +3,19 @@ package art.arcane.iris.modded.command;
import art.arcane.iris.localization.IrisLanguage;
import art.arcane.iris.spi.IrisLogging;
import art.arcane.volmlib.util.director.help.DirectorHelpMessages;
import art.arcane.volmlib.util.localization.BukkitLanguageMessages;
import art.arcane.volmlib.util.localization.LanguageCatalogMerge;
import art.arcane.volmlib.util.localization.LanguageUpstreamSync;
import art.arcane.volmlib.util.localization.MessageArgument;
import art.arcane.volmlib.util.localization.PluginLanguageService;
import art.arcane.volmlib.util.localization.VolmitLocales;
import art.arcane.volmlib.util.localization.TextKey;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import art.arcane.volmlib.nativelib.minecraft26_2.modded.NativeCommandSource;
import art.arcane.volmlib.nativelib.minecraft26_2.modded.NativeCommandRegistration;
import art.arcane.volmlib.nativelib.minecraft26_2.modded.NativeCommandText;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
@@ -22,7 +27,9 @@ final class ModdedLanguageCommands {
return NativeCommandRegistration.literal("language")
.executes(ModdedCommandTree.localized(context -> open(context.getSource())))
.then(scope("self", false))
.then(scope("server", true).requires(NativeCommandRegistration.GAMEMASTERS));
.then(scope("server", true).requires(NativeCommandRegistration.GAMEMASTERS))
.then(NativeCommandRegistration.literal("update").requires(NativeCommandRegistration.GAMEMASTERS)
.executes(ModdedCommandTree.localized(context -> update(context.getSource()))));
}
private static LiteralArgumentBuilder<NativeCommandSource> scope(String name, boolean server) {
@@ -40,7 +47,7 @@ final class ModdedLanguageCommands {
ModdedCommandFeedback.send(source, ModdedCommandFeedback.text(
"Iris language: " + IrisLanguage.activeLocale(), ModdedCommandFeedback.DESCRIPTION));
for (String locale : IrisLanguage.availableLocales()) {
String name = VolmitLocales.displayName(locale).orElse(locale);
String name = IrisLanguage.displayName(locale);
ModdedCommandFeedback.send(source, ModdedCommandFeedback.text("⇀ ", ModdedCommandFeedback.DARK_GREEN)
.append(ModdedCommandFeedback.button(name + " [me]", "/iris language self " + locale, "Use " + name, true))
.append(ModdedCommandTree.isGamemaster(source)
@@ -53,6 +60,56 @@ final class ModdedLanguageCommands {
return 1;
}
private static int update(NativeCommandSource source) {
source.sendSuccess(() -> NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_CHECKING)), false);
IrisLanguage.checkUpstream().whenComplete((report, failure) -> source.execute(() -> reportUpdate(source, report, failure)));
return 1;
}
private static void reportUpdate(NativeCommandSource source, LanguageUpstreamSync.SyncReport report, Throwable failure) {
if (failure != null || report == null) {
if (failure != null) {
IrisLogging.reportError(failure);
}
source.sendFailure(NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_FAILED,
MessageArgument.untrusted("reason", failure == null ? "no report" : String.valueOf(failure.getMessage())))));
return;
}
if (report.failure().isPresent()) {
source.sendFailure(NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_FAILED,
MessageArgument.untrusted("reason", report.failure().get()))));
return;
}
if (report.coolingDown()) {
source.sendSuccess(() -> NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_COOLDOWN,
MessageArgument.untrusted("remaining", report.cooldownRemaining()))), false);
return;
}
for (String locale : report.changedLocales()) {
LanguageCatalogMerge.MergeResult result = report.merged().get(locale);
source.sendSuccess(() -> NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_APPLIED,
MessageArgument.untrusted("locale", locale),
MessageArgument.untrusted("added", String.valueOf(result.added().size())),
MessageArgument.untrusted("updated", String.valueOf(result.updated().size() + result.removed().size())),
MessageArgument.untrusted("kept", String.valueOf(result.kept().size())))), false);
}
for (Map.Entry<String, String> entry : report.failures().entrySet()) {
source.sendFailure(NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_LOCALE_FAILED,
MessageArgument.untrusted("locale", entry.getKey()),
MessageArgument.untrusted("reason", entry.getValue()))));
}
if (report.changedLocales().isEmpty() && report.failures().isEmpty()) {
source.sendSuccess(() -> NativeCommandText.literal(updateMessage(BukkitLanguageMessages.UPDATE_UNCHANGED)), false);
}
}
private static String updateMessage(TextKey key, MessageArgument... arguments) {
MessageArgument[] resolved = new MessageArgument[arguments.length + 1];
resolved[0] = MessageArgument.untrusted("plugin", "Iris");
System.arraycopy(arguments, 0, resolved, 1, arguments.length);
return IrisLanguage.plain(key, resolved);
}
private static int select(NativeCommandSource source, boolean server, String locale) {
PluginLanguageService service = IrisLanguage.selections();
if (service == null) {
@@ -67,7 +67,6 @@ public final class ClientUiMessages {
);
public static final TextKey TOAST_RELOAD_FAILED = TextKey.of("iris.client.toast.reload_failed", "reload failed");
public static final TextKey TOAST_RELOADED = TextKey.of("iris.client.toast.reloaded", "reloaded");
public static final TextKey TOAST_PACK_FAILED = TextKey.of("iris.client.toast.pack_failed", "{pack} failed");
public static final TextKey WHAT_TITLE = TextKey.of("iris.client.what.title", "Iris What");
public static final TextKey WHAT_QUERYING = TextKey.of("iris.client.what.querying", "Querying {x}, {z}...");
public static final TextKey WHAT_BIOME = TextKey.of("iris.client.what.biome", "Biome: {biome}");
@@ -100,7 +99,6 @@ public final class ClientUiMessages {
TOAST_CHANGED_FILES,
TOAST_RELOAD_FAILED,
TOAST_RELOADED,
TOAST_PACK_FAILED,
WHAT_TITLE,
WHAT_QUERYING,
WHAT_BIOME,
@@ -103,10 +103,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.set_debug",
"Set debug to: " + "{to}"
);
public static final TextKey IRIS_MODDED_COMMANDS_HOTLOADED_SETTINGS = TextKey.of(
"iris.modded.irismoddedcommands.hotloaded_settings",
"Hotloaded settings"
);
public static final TextKey IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_IT_INSPECTS = TextKey.of(
"iris.modded.irismoddedcommands.this_command_can_only_be_used_by_players_it_inspects",
"This command can only be used by players (it inspects your held item)."
@@ -115,10 +111,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.your_main_hand_is_empty",
"Your main hand is empty."
);
public static final TextKey IRIS_MODDED_COMMANDS_HAND_X = TextKey.of(
"iris.modded.irismoddedcommands.hand_x",
"Hand: " + "{value}" + " x" + "{value2}"
);
public static final TextKey IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS = TextKey.of(
"iris.modded.irismoddedcommands.this_command_can_only_be_used_by_players",
"This command can only be used by players."
@@ -179,18 +171,10 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.this_dimension_is_not_generated_by_iris_6",
"This dimension is not generated by Iris."
);
public static final TextKey IRIS_MODDED_COMMANDS_BIOME = TextKey.of(
"iris.modded.irismoddedcommands.biome",
"Biome: " + "{value}" + " (" + "{value2}" + ")"
);
public static final TextKey IRIS_MODDED_COMMANDS_BIOME_LOOKUP_FAILED_2 = TextKey.of(
"iris.modded.irismoddedcommands.biome_lookup_failed_2",
"Biome lookup failed: " + "{value}"
);
public static final TextKey IRIS_MODDED_COMMANDS_REGION = TextKey.of(
"iris.modded.irismoddedcommands.region",
"Region: " + "{value}" + " (" + "{value2}" + ")"
);
public static final TextKey IRIS_MODDED_COMMANDS_REGION_LOOKUP_FAILED_2 = TextKey.of(
"iris.modded.irismoddedcommands.region_lookup_failed_2",
"Region lookup failed: " + "{value}"
@@ -207,10 +191,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.surface_block_y",
"Surface block: " + "{value}" + " (y=" + "{value2}" + ")"
);
public static final TextKey IRIS_MODDED_COMMANDS_POSITION_CHUNK = TextKey.of(
"iris.modded.irismoddedcommands.position_chunk",
"Position: " + "{value}" + " " + "{value2}" + " " + "{value3}" + " (chunk " + "{value4}" + "," + "{value5}" + ")"
);
public static final TextKey IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_IT_INSPECTS_2 = TextKey.of(
"iris.modded.irismoddedcommands.this_command_can_only_be_used_by_players_it_inspects_2",
"This command can only be used by players (it inspects the block you are looking at)."
@@ -219,10 +199,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.look_at_block_not_sky",
"Look at a block, not the sky."
);
public static final TextKey IRIS_MODDED_COMMANDS_BLOCK_Y = TextKey.of(
"iris.modded.irismoddedcommands.block_y",
"Block: " + "{value}" + " (y=" + "{value2}" + ")"
);
public static final TextKey IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_MARKERS_RENDER = TextKey.of(
"iris.modded.irismoddedcommands.this_command_can_only_be_used_by_players_markers_render",
"This command can only be used by players (markers render as particles around you)."
@@ -267,10 +243,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.unknown_region_2",
"Unknown region: " + "{key}"
);
public static final TextKey IRIS_MODDED_COMMANDS_IS_NOT_DEFINED_DIMENSION = TextKey.of(
"iris.modded.irismoddedcommands.is_not_defined_dimension",
"{value}" + " is not defined in the dimension!"
);
public static final TextKey IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_10 = TextKey.of(
"iris.modded.irismoddedcommands.this_dimension_is_not_generated_by_iris_10",
"This dimension is not generated by Iris."
@@ -419,10 +391,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.downloading_irisdimensions",
"Downloading IrisDimensions/" + "{pack}" + " (" + "{downloadSource}" + ")..."
);
public static final TextKey IRIS_MODDED_COMMANDS_PACK_INSTALLED_ITS_EXACT_DIMENSION_TYPES_CUSTOM_BIOMES_JOIN_FORCED = TextKey.of(
"iris.modded.irismoddedcommands.pack_installed_its_exact_dimension_types_custom_biomes_join_forced",
"Pack '" + "{pack}" + "' installed. Its exact dimension types and custom biomes join the forced Iris datapack on the next server restart; restart before creating worlds from this pack."
);
public static final TextKey IRIS_MODDED_COMMANDS_PACK_DOWNLOAD_FAILED_SEE_CONSOLE = TextKey.of(
"iris.modded.irismoddedcommands.pack_download_failed_see_console",
"Pack download failed for " + "{pack}" + " (" + "{downloadSource}" + "; see console)."
@@ -439,10 +407,6 @@ public final class ModdedCommandMessages {
"iris.modded.irismoddedcommands.ms",
" " + "{value}" + ": " + "{value2}" + "ms"
);
public static final TextKey MODDED_COMMAND_HELP_UNKNOWN_IRIS_HELP_SECTION = TextKey.of(
"iris.modded.moddedcommandhelp.unknown_iris_help_section",
"Unknown Iris help section: " + "{normalized}"
);
public static final TextKey MODDED_DATAPACK_COMMANDS_TYPE_ACTIVE_LOGICAL_PACK_ENGINE_NOT_STARTED_PACK_HEIGHTS_UNKNOWN = TextKey.of(
"iris.modded.moddeddatapackcommands.type_active_logical_pack_engine_not_started_pack_heights_unknown",
"{dimensionId}" + ": type=" + "{typeKey}" + " active=" + "{activeMin}" + ".." + "{activeMax}" + " logical=" + "{value}" + " (pack=" + "{value2}" + ", engine not started; pack heights unknown)"
@@ -964,26 +928,10 @@ public final class ModdedCommandMessages {
"iris.modded.moddedstudiocommands.opening_studio_seed",
"Opening studio for '" + "{pack}" + "' (seed " + "{seed}" + ")..."
);
public static final TextKey MODDED_STUDIO_COMMANDS_PACK_MISSING_DOWNLOADING_IRISDIMENSIONS = TextKey.of(
"iris.modded.moddedstudiocommands.pack_missing_downloading_irisdimensions",
"Pack '" + "{pack}" + "' missing; downloading IrisDimensions/" + "{pack2}" + "..."
);
public static final TextKey MODDED_STUDIO_COMMANDS_PACK_COULD_NOT_BE_DOWNLOADED_CHECK_NAME_TRY_IRIS_DOWNLOAD = TextKey.of(
"iris.modded.moddedstudiocommands.pack_could_not_be_downloaded_check_name_try_iris_download",
"Pack '" + "{pack}" + "' could not be downloaded; check the name and try /iris download " + "{pack2}" + "."
);
public static final TextKey MODDED_STUDIO_COMMANDS_PACK_HAS_NO_DIMENSIONS_JSON = TextKey.of(
"iris.modded.moddedstudiocommands.pack_has_no_dimensions_json",
"Pack '" + "{pack}" + "' has no dimensions/" + "{pack2}" + ".json"
);
public static final TextKey MODDED_STUDIO_COMMANDS_STUDIO_OPEN_FAILED = TextKey.of(
"iris.modded.moddedstudiocommands.studio_open_failed",
"Studio open failed: " + "{value}" + "{errorMessage}"
);
public static final TextKey MODDED_STUDIO_COMMANDS_STUDIO_INJECTION_FAILED = TextKey.of(
"iris.modded.moddedstudiocommands.studio_injection_failed",
"Studio injection failed: " + "{value}" + "{errorMessage}"
);
public static final TextKey MODDED_STUDIO_COMMANDS_CONSOLE_STUDIO_OPEN_NOW_RUNS_SEED_TRANSIENT_NOT_WRITTEN_IRIS = TextKey.of(
"iris.modded.moddedstudiocommands.console_studio_open_now_runs_seed_transient_not_written_iris",
"Console studio open: " + "{dimensionId}" + " now runs '" + "{pack}" + "' seed " + "{seed}" + " (transient; not written to iris-dimensions.json and cleared on restart)."
@@ -1000,10 +948,6 @@ public final class ModdedCommandMessages {
"iris.modded.moddedstudiocommands.remove_it_with_iris_studio_close",
"Remove it with: /iris studio close"
);
public static final TextKey MODDED_STUDIO_COMMANDS_STUDIO_INJECTION_FAILED_2 = TextKey.of(
"iris.modded.moddedstudiocommands.studio_injection_failed_2",
"Studio injection failed: " + "{value}" + "{errorMessage}"
);
public static final TextKey MODDED_STUDIO_COMMANDS_STUDIO_OPEN_NOW_RUNS_SEED_USE_IRIS_STUDIO_CLOSE_WHEN = TextKey.of(
"iris.modded.moddedstudiocommands.studio_open_now_runs_seed_use_iris_studio_close_when",
"Studio open: " + "{dimensionId}" + " now runs '" + "{pack}" + "' seed " + "{seed}" + ". Use /iris studio close when done."
@@ -1314,10 +1258,8 @@ public final class ModdedCommandMessages {
IRIS_MODDED_COMMANDS_CANNOT_EVACUATE_PRIMARY_WORLD_THERE_IS_NOWHERE_SEND_PLAYERS,
IRIS_MODDED_COMMANDS_EVACUATED_PLAYER_S_FROM,
IRIS_MODDED_COMMANDS_SET_DEBUG,
IRIS_MODDED_COMMANDS_HOTLOADED_SETTINGS,
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_IT_INSPECTS,
IRIS_MODDED_COMMANDS_YOUR_MAIN_HAND_IS_EMPTY,
IRIS_MODDED_COMMANDS_HAND_X,
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_4,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_5,
@@ -1333,17 +1275,13 @@ public final class ModdedCommandMessages {
IRIS_MODDED_COMMANDS_LOADED_DIMENSIONS_IRIS,
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_2,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_6,
IRIS_MODDED_COMMANDS_BIOME,
IRIS_MODDED_COMMANDS_BIOME_LOOKUP_FAILED_2,
IRIS_MODDED_COMMANDS_REGION,
IRIS_MODDED_COMMANDS_REGION_LOOKUP_FAILED_2,
IRIS_MODDED_COMMANDS_CAVE_BIOME,
IRIS_MODDED_COMMANDS_CAVE_BIOME_LOOKUP_FAILED,
IRIS_MODDED_COMMANDS_SURFACE_BLOCK_Y,
IRIS_MODDED_COMMANDS_POSITION_CHUNK,
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_IT_INSPECTS_2,
IRIS_MODDED_COMMANDS_LOOK_AT_BLOCK_NOT_SKY,
IRIS_MODDED_COMMANDS_BLOCK_Y,
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_MARKERS_RENDER,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_7,
IRIS_MODDED_COMMANDS_SCANNING_MARKERS_AROUND_YOU,
@@ -1355,7 +1293,6 @@ public final class ModdedCommandMessages {
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_4,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_9,
IRIS_MODDED_COMMANDS_UNKNOWN_REGION_2,
IRIS_MODDED_COMMANDS_IS_NOT_DEFINED_DIMENSION,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_10,
IRIS_MODDED_COMMANDS_IS_NOT_CONFIGURED_ANY_REGION_BIOME_OBJECT_PLACEMENTS_OBJECT_KEYS,
IRIS_MODDED_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS_OBJECT_KEY,
@@ -1393,12 +1330,10 @@ public final class ModdedCommandMessages {
IRIS_MODDED_COMMANDS_ENGINE_SEED_MIXED,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_15,
IRIS_MODDED_COMMANDS_DOWNLOADING_IRISDIMENSIONS,
IRIS_MODDED_COMMANDS_PACK_INSTALLED_ITS_EXACT_DIMENSION_TYPES_CUSTOM_BIOMES_JOIN_FORCED,
IRIS_MODDED_COMMANDS_PACK_DOWNLOAD_FAILED_SEE_CONSOLE,
IRIS_MODDED_COMMANDS_THIS_DIMENSION_IS_NOT_GENERATED_BY_IRIS_16,
IRIS_MODDED_COMMANDS_GENERATED_CHUNK_S_S,
IRIS_MODDED_COMMANDS_MS,
MODDED_COMMAND_HELP_UNKNOWN_IRIS_HELP_SECTION,
MODDED_DATAPACK_COMMANDS_TYPE_ACTIVE_LOGICAL_PACK_ENGINE_NOT_STARTED_PACK_HEIGHTS_UNKNOWN,
MODDED_DATAPACK_COMMANDS_TYPE_ACTIVE_LOGICAL_PACK_WANTS_LOGICAL,
MODDED_DATAPACK_COMMANDS_WARNING_ACTIVE_DIMENSION_TYPE_DOES_NOT_MATCH_PACK_IRIS_WILL,
@@ -1529,16 +1464,11 @@ public final class ModdedCommandMessages {
MODDED_STUDIO_COMMANDS_PACK_NOT_FOUND_UNDER,
MODDED_STUDIO_COMMANDS_PROVIDE_DIMENSION_PACK_IRIS_STUDIO_OPEN_PACK_SEED_2,
MODDED_STUDIO_COMMANDS_OPENING_STUDIO_SEED,
MODDED_STUDIO_COMMANDS_PACK_MISSING_DOWNLOADING_IRISDIMENSIONS,
MODDED_STUDIO_COMMANDS_PACK_COULD_NOT_BE_DOWNLOADED_CHECK_NAME_TRY_IRIS_DOWNLOAD,
MODDED_STUDIO_COMMANDS_PACK_HAS_NO_DIMENSIONS_JSON,
MODDED_STUDIO_COMMANDS_STUDIO_OPEN_FAILED,
MODDED_STUDIO_COMMANDS_STUDIO_INJECTION_FAILED,
MODDED_STUDIO_COMMANDS_CONSOLE_STUDIO_OPEN_NOW_RUNS_SEED_TRANSIENT_NOT_WRITTEN_IRIS,
MODDED_STUDIO_COMMANDS_ENTER_IT_WITH_EXECUTE_RUN_TP_S_8_5_8,
MODDED_STUDIO_COMMANDS_PREGEN_IT_WITH_IRIS_PREGEN_START_RADIUS,
MODDED_STUDIO_COMMANDS_REMOVE_IT_WITH_IRIS_STUDIO_CLOSE,
MODDED_STUDIO_COMMANDS_STUDIO_INJECTION_FAILED_2,
MODDED_STUDIO_COMMANDS_STUDIO_OPEN_NOW_RUNS_SEED_USE_IRIS_STUDIO_CLOSE_WHEN,
MODDED_STUDIO_COMMANDS_YOU_DO_NOT_HAVE_OPEN_STUDIO_USE_IRIS_STUDIO_OPEN,
MODDED_STUDIO_COMMANDS_STUDIO_CLOSE_FAILED,
@@ -65,6 +65,7 @@ public class ModdedLanguageCommandsTest {
try (MockedStatic<IrisLanguage> language = mockStatic(IrisLanguage.class)) {
language.when(IrisLanguage::activeLocale).thenReturn("en_US");
language.when(IrisLanguage::availableLocales).thenReturn(Set.of("de_DE"));
language.when(() -> IrisLanguage.displayName("de_DE")).thenReturn("German (Germany)");
language.when(() -> IrisLanguage.plain(DirectorHelpMessages.BACK)).thenReturn("Back");
CommandDispatcher<CommandSourceStack> dispatcher = new CommandDispatcher<>();
new NativeCommandRegistration(dispatcher).register(NativeCommandRegistration.literal("iris").then(ModdedLanguageCommands.tree()));
+5 -1
View File
@@ -53,6 +53,7 @@ plugins {
apply plugin: 'art.arcane.volmit-packaging'
apply from: file('gradle/runtime-relocations.gradle')
apply from: file('gradle/volmlib-stamp.gradle')
apply from: file('gradle/language-source.gradle')
group = 'art.arcane'
version = providers.gradleProperty('irisVersion').getOrElse('4.3.7')
@@ -89,6 +90,7 @@ Closure<String> irisArtifactName = { String platform, String targetVersion ->
String bukkitArtifactName = irisArtifactName('CraftBukkit', bukkitMinecraftRange)
Map<String, String> runtimeDownloadRelocations = (Map<String, String>) ext.runtimeDownloadRelocations
List<String> runtimeDownloadedPrefixes = (List<String>) ext.runtimeDownloadedPrefixes
Map<String, String> languageSourceManifest = (Map<String, String>) ext.languageSourceManifest
apply plugin: ApiGenerator
List<String> nmsBindings = ['v26_2_R1', 'v26_3_R1']
@@ -539,13 +541,15 @@ tasks.register('verifyBukkitArtifact') {
inputs.files(nativeRuntime)
inputs.files(commandHandlerSources)
inputs.files(mantleComponentSources)
inputs.property('languageSourceManifest', languageSourceManifest)
doLast {
File archive = artifact.get().asFile
BukkitArtifactVerifier.verify(
archive,
requiredBukkitArtifactEntries,
16,
runtimeDownloadedPrefixes)
runtimeDownloadedPrefixes,
languageSourceManifest)
NativeRuntimeArtifacts.verify(archive, nativeRuntimeModules, embeddedNatives())
logger.lifecycle("Verified ${archive.name} packaging and class reference graph")
}
@@ -7,6 +7,8 @@ import java.util.Collection;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.TreeMap;
import java.util.jar.JarEntry;
@@ -26,6 +28,7 @@ public final class BukkitArtifactVerifier {
);
private static final String MATTER_SLICE_PACKAGE = "art/arcane/volmlib/util/matter/slices/";
private static final String LANGUAGE_DIRECTORY = "languages/";
private static final String LANGUAGE_SOURCE_MANIFEST = "iris-language-source.properties";
private BukkitArtifactVerifier() {
}
@@ -38,7 +41,8 @@ public final class BukkitArtifactVerifier {
* absent from the jar.
*/
public static void verify(File artifact, List<String> requiredEntries,
int minimumMatterSlices, Collection<String> runtimeDownloadedPrefixes) {
int minimumMatterSlices, Collection<String> runtimeDownloadedPrefixes,
Map<String, String> languageSource) {
if (!artifact.isFile()) {
throw new GradleException("Missing Bukkit Iris artifact: " + artifact.getAbsolutePath());
}
@@ -64,7 +68,7 @@ public final class BukkitArtifactVerifier {
}
String name = entry.getName();
if (name.startsWith(LANGUAGE_DIRECTORY) && name.endsWith(".json")) {
if (name.startsWith(LANGUAGE_DIRECTORY) && (name.endsWith(".toml") || name.endsWith(".json"))) {
locales++;
}
if (!name.endsWith(".class")) {
@@ -81,6 +85,7 @@ public final class BukkitArtifactVerifier {
if (locales != 0) {
throw new GradleException(artifact.getName() + " ships " + locales + " locale files; translations must download on demand");
}
verifyLanguageSource(artifact, jar, languageSource);
// Matter.read() resolves slice types from the canonical name stored in the payload.
if (matterSlices < minimumMatterSlices) {
throw new GradleException(artifact.getName() + " ships " + matterSlices
@@ -125,6 +130,33 @@ public final class BukkitArtifactVerifier {
}
}
private static void verifyLanguageSource(File artifact, JarFile jar, Map<String, String> expected) throws IOException {
JarEntry entry = jar.getJarEntry(LANGUAGE_SOURCE_MANIFEST);
if (entry == null) {
throw new GradleException(artifact.getName() + " is missing " + LANGUAGE_SOURCE_MANIFEST);
}
Properties manifest = new Properties();
try (InputStream input = jar.getInputStream(entry)) {
manifest.load(input);
}
for (String key : manifest.stringPropertyNames()) {
if (key.equals("revision") || key.equals("mode") || key.startsWith("sha256.")) {
throw new GradleException(artifact.getName() + " pins its language source with " + key
+ "; the manifest must track the repository branch");
}
}
for (Map.Entry<String, String> required : expected.entrySet()) {
if (!required.getValue().equals(manifest.getProperty(required.getKey()))) {
throw new GradleException(artifact.getName() + " language source " + required.getKey() + " is "
+ manifest.getProperty(required.getKey()) + "; the build expects " + required.getValue());
}
}
if (!manifest.stringPropertyNames().equals(expected.keySet())) {
throw new GradleException(artifact.getName() + " language source keys " + manifest.stringPropertyNames()
+ " do not match " + expected.keySet());
}
}
private static byte[] readEntryBytes(JarFile jar, JarEntry entry) throws IOException {
try (InputStream input = jar.getInputStream(entry)) {
return input.readAllBytes();
@@ -30,6 +30,14 @@ public class BukkitArtifactVerifierTest {
NMS_BINDING + ".class"
);
private static final int MATTER_SLICES = 1;
private static final String LANGUAGE_MANIFEST = "iris-language-source.properties";
private static final Map<String, String> LANGUAGE_SOURCE = Map.of(
"repository", "VolmitSoftware/Iris",
"branch", "master",
"path", "core/src/main/resources/languages",
"extension", ".toml",
"locales", "de_DE,ja-JP"
);
private static final List<String> RUNTIME_DOWNLOADED_PREFIXES = List.of(
"art/arcane/iris/util/kyori/",
"art/arcane/iris/util/gson/",
@@ -45,7 +53,7 @@ public class BukkitArtifactVerifierTest {
public void acceptsCompleteArtifact() throws Exception {
File artifact = createArtifact(validEntries());
BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES);
BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE);
}
@Test
@@ -55,7 +63,7 @@ public class BukkitArtifactVerifierTest {
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES));
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains(PLUGIN_DESCRIPTOR));
}
@@ -66,7 +74,7 @@ public class BukkitArtifactVerifierTest {
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES));
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains(SLIMJAR_DEPENDENCIES));
}
@@ -77,7 +85,7 @@ public class BukkitArtifactVerifierTest {
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES));
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains(SLIMJAR_RESOLUTIONS));
}
@@ -88,7 +96,7 @@ public class BukkitArtifactVerifierTest {
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES));
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains("art/arcane/volmlib/util/noise/CNG"));
}
@@ -107,7 +115,7 @@ public class BukkitArtifactVerifierTest {
classReferencing("art/arcane/iris/ParalithicConsumer", "art/arcane/iris/util/paralithic/functions/Function"));
File artifact = createArtifact(entries);
BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES);
BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE);
}
@Test
@@ -119,21 +127,57 @@ public class BukkitArtifactVerifierTest {
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES,
RUNTIME_DOWNLOADED_PREFIXES));
RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains("art/arcane/iris/util/paper/PaperLib"));
}
@Test
public void rejectsEmbeddedLocale() throws Exception {
Map<String, byte[]> entries = validEntries();
entries.put("languages/de_DE.json", "{}".getBytes(StandardCharsets.UTF_8));
entries.put("languages/de_DE.toml", "".getBytes(StandardCharsets.UTF_8));
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES));
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains("locale files"));
}
@Test
public void rejectsMissingLanguageSourceManifest() throws Exception {
Map<String, byte[]> entries = validEntries();
entries.remove(LANGUAGE_MANIFEST);
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains(LANGUAGE_MANIFEST));
}
@Test
public void rejectsPinnedLanguageSourceKeys() throws Exception {
for (String pinned : List.of("revision=master", "mode=pinned", "sha256.de_DE=00")) {
Map<String, byte[]> entries = validEntries();
entries.put(LANGUAGE_MANIFEST, (languageManifest() + pinned + "\n").getBytes(StandardCharsets.UTF_8));
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(pinned, failure.getMessage().contains("track the repository branch"));
}
}
@Test
public void rejectsLanguageSourceFromAnotherBranch() throws Exception {
Map<String, byte[]> entries = validEntries();
entries.put(LANGUAGE_MANIFEST, languageManifest().replace("branch=master", "branch=dev")
.getBytes(StandardCharsets.UTF_8));
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains("branch"));
}
@Test
public void rejectsDroppedMatterSlice() throws Exception {
Map<String, byte[]> entries = validEntries();
@@ -141,7 +185,7 @@ public class BukkitArtifactVerifierTest {
File artifact = createArtifact(entries);
GradleException failure = assertThrows(GradleException.class,
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES));
() -> BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE));
assertTrue(failure.getMessage().contains("Matter slice types"));
}
@@ -152,7 +196,7 @@ public class BukkitArtifactVerifierTest {
classAnnotatedWith("art/arcane/iris/Annotated", "com/google/errorprone/annotations/CanIgnoreReturnValue"));
File artifact = createArtifact(entries);
BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES);
BukkitArtifactVerifier.verify(artifact, REQUIRED_ENTRIES, MATTER_SLICES, RUNTIME_DOWNLOADED_PREFIXES, LANGUAGE_SOURCE);
}
private Map<String, byte[]> validEntries() {
@@ -160,6 +204,7 @@ public class BukkitArtifactVerifierTest {
entries.put(PLUGIN_DESCRIPTOR, "name: Iris\n".getBytes(StandardCharsets.UTF_8));
entries.put(SLIMJAR_DEPENDENCIES, new byte[]{1});
entries.put(SLIMJAR_RESOLUTIONS, new byte[]{1});
entries.put(LANGUAGE_MANIFEST, languageManifest().getBytes(StandardCharsets.UTF_8));
entries.put(NMS_BINDING + ".class",
classReferencing(NMS_BINDING, "art/arcane/volmlib/util/noise/CNG"));
@@ -169,6 +214,14 @@ public class BukkitArtifactVerifierTest {
return entries;
}
private static String languageManifest() {
StringBuilder manifest = new StringBuilder();
for (Map.Entry<String, String> entry : LANGUAGE_SOURCE.entrySet()) {
manifest.append(entry.getKey()).append('=').append(entry.getValue()).append('\n');
}
return manifest.toString();
}
private static byte[] emptyClass(String internalName) {
ClassWriter writer = new ClassWriter(0);
writer.visit(Opcodes.V21, Opcodes.ACC_PUBLIC, internalName, null, "java/lang/Object", null);
+3 -9
View File
@@ -43,17 +43,11 @@ apply from: rootProject.file('gradle/java21-runtime-exclusions.gradle')
def lib = 'art.arcane.iris.util'
String languageSourceReference = providers.gradleProperty('languageRevision').orElse('master').get()
List<File> languageSourceFiles = fileTree('src/main/resources/languages') {
include('*.toml')
}.files.toList().sort { File left, File right -> left.name <=> right.name }
List<String> languageSourceLocales = languageSourceFiles.collect { File source ->
source.name.substring(0, source.name.length() - '.toml'.length())
}
Map<String, String> languageSourceManifest = (Map<String, String>) rootProject.ext.languageSourceManifest
List<File> languageSourceFiles = (List<File>) rootProject.ext.languageSourceFiles
def languageSourceManifestTask = tasks.register('generateLanguageSourceManifest', WriteProperties) {
destinationFile.set(layout.buildDirectory.file('generated/language-source/iris-language-source.properties'))
property('revision', languageSourceReference)
property('locales', languageSourceLocales.join(','))
properties(languageSourceManifest)
}
def languageGuidesTask = tasks.register('generateLanguageGuides') {
inputs.files(languageSourceFiles)
@@ -70,18 +70,6 @@ public final class BukkitCommandMessages {
"iris.bukkit.commandfind.teleported",
C.GREEN + "Teleported to " + "{structure}" + " @ " + "{value}" + ", " + "{y}" + ", " + "{value2}"
);
public static final TextKey COMMAND_IRIS_SUCCESSFULLY_REMOVED_WORLD_FOLDER = TextKey.of(
"iris.bukkit.commandiris.successfully_removed_world_folder",
C.GREEN + "Successfully removed world folder"
);
public static final TextKey COMMAND_IRIS_SUCCESSFULLY_REMOVED_WORLD_FOLDER_2 = TextKey.of(
"iris.bukkit.commandiris.successfully_removed_world_folder_2",
C.GREEN + "Successfully removed world folder"
);
public static final TextKey COMMAND_IRIS_FAILED_REMOVE_WORLD_FOLDER = TextKey.of(
"iris.bukkit.commandiris.failed_remove_world_folder",
C.RED + "Failed to remove world folder"
);
public static final TextKey COMMAND_OBJECT_NO_PACKS_WITH_OBJECTS_WERE_FOUND_ON_THIS_SERVER = TextKey.of(
"iris.bukkit.commandobject.no_packs_with_objects_were_found_on_this_server",
C.RED + "No packs with objects were found on this server."
@@ -194,10 +182,6 @@ public final class BukkitCommandMessages {
"iris.bukkit.commandstudio.message",
C.GREEN + "{k}" + ": " + "{value}" + " / " + "{value2}" + "%"
);
public static final TextKey COMMAND_S_V_C_YOU_LACK_PERMISSION = TextKey.of(
"iris.bukkit.commandsvc.you_lack_permission",
"You lack the Permission '" + "{ROOTPERMISSION}" + "'"
);
public static final TextKey IRIS_ENGINE_STATUS_MESSAGE = TextKey.of(
"iris.bukkit.irisenginestatus.message",
C.DARK_PURPLE + "-------------------------"
@@ -312,9 +296,6 @@ public final class BukkitCommandMessages {
COMMAND_FIND_RUN_THIS_GAME_TELEPORT_STRUCTURE_2,
COMMAND_FIND_LOCATING_2,
COMMAND_FIND_TELEPORTED,
COMMAND_IRIS_SUCCESSFULLY_REMOVED_WORLD_FOLDER,
COMMAND_IRIS_SUCCESSFULLY_REMOVED_WORLD_FOLDER_2,
COMMAND_IRIS_FAILED_REMOVE_WORLD_FOLDER,
COMMAND_OBJECT_NO_PACKS_WITH_OBJECTS_WERE_FOUND_ON_THIS_SERVER,
COMMAND_OBJECT_NO_OBJECTS_PLACE_ACROSS_SELECTED_PACK_S,
COMMAND_OBJECT_OPENING_OBJECT_STUDIO_OBJECTS,
@@ -343,7 +324,6 @@ public final class BukkitCommandMessages {
COMMAND_STUDIO_GENERATING_DATA,
COMMAND_STUDIO_DONE,
COMMAND_STUDIO_MESSAGE,
COMMAND_S_V_C_YOU_LACK_PERMISSION,
IRIS_ENGINE_STATUS_MESSAGE,
IRIS_ENGINE_STATUS_STATUS,
IRIS_ENGINE_STATUS_SERVICE,
@@ -218,34 +218,6 @@ public final class BukkitCommandMessagesExtended {
"iris.bukkit.commandiris.message_2",
C.GRAY + "- " + "{value}"
);
public static final TextKey COMMAND_IRIS_THIS_IS_NOT_IRIS_WORLD_IRIS_WORLDS = TextKey.of(
"iris.bukkit.commandiris.this_is_not_iris_world_iris_worlds",
C.RED + "This is not an Iris world. Iris worlds: " + "{value}"
);
public static final TextKey COMMAND_IRIS_REMOVING_WORLD = TextKey.of(
"iris.bukkit.commandiris.removing_world",
C.GREEN + "Removing world: " + "{value}"
);
public static final TextKey COMMAND_IRIS_FAILED_EVACUATE_WORLD = TextKey.of(
"iris.bukkit.commandiris.failed_evacuate_world",
C.RED + "Failed to evacuate world: " + "{value}"
);
public static final TextKey COMMAND_IRIS_FAILED_UNLOAD_WORLD = TextKey.of(
"iris.bukkit.commandiris.failed_unload_world",
C.RED + "Failed to unload world: " + "{value}"
);
public static final TextKey COMMAND_IRIS_SUCCESSFULLY_REMOVED_FROM_BUKKIT_YML = TextKey.of(
"iris.bukkit.commandiris.successfully_removed_from_bukkit_yml",
C.GREEN + "Successfully removed " + "{value}" + " from bukkit.yml"
);
public static final TextKey COMMAND_IRIS_LOOKS_LIKE_WORLD_WAS_ALREADY_REMOVED_FROM_BUKKIT_YML = TextKey.of(
"iris.bukkit.commandiris.looks_like_world_was_already_removed_from_bukkit_yml",
C.YELLOW + "Looks like the world was already removed from bukkit.yml"
);
public static final TextKey COMMAND_IRIS_FAILED_SAVE_BUKKIT_YML_BECAUSE = TextKey.of(
"iris.bukkit.commandiris.failed_save_bukkit_yml_because",
C.RED + "Failed to save bukkit.yml because of " + "{value}"
);
public static final TextKey COMMAND_IRIS_SET_DEBUG = TextKey.of(
"iris.bukkit.commandiris.set_debug",
C.GREEN + "Set debug to: " + "{to}"
@@ -282,18 +254,6 @@ public final class BukkitCommandMessagesExtended {
"iris.bukkit.commandiris.doesnt_exist_on_server",
C.YELLOW + "{logicalWorldName}" + " Doesnt exist on the server."
);
public static final TextKey COMMAND_IRIS_GENERATOR = TextKey.of(
"iris.bukkit.commandiris.generator",
C.BLUE + "Generator: " + "{dimension}"
);
public static final TextKey COMMAND_IRIS_IS_NOT_IRIS_WORLD = TextKey.of(
"iris.bukkit.commandiris.is_not_iris_world",
C.GOLD + "{logicalWorldName}" + " is not an iris world."
);
public static final TextKey COMMAND_IRIS_COULD_NOT_DETERMINE_IRIS_DIMENSION = TextKey.of(
"iris.bukkit.commandiris.could_not_determine_iris_dimension",
C.RED + "Could not determine Iris dimension for " + "{logicalWorldName}" + "."
);
public static final TextKey COMMAND_IRIS_LOADING_WORLD = TextKey.of(
"iris.bukkit.commandiris.loading_world",
C.GREEN + "Loading world: " + "{logicalWorldName}"
@@ -858,13 +818,6 @@ public final class BukkitCommandMessagesExtended {
COMMAND_IRIS_MESSAGE,
COMMAND_IRIS_BUKKIT_WORLDS,
COMMAND_IRIS_MESSAGE_2,
COMMAND_IRIS_THIS_IS_NOT_IRIS_WORLD_IRIS_WORLDS,
COMMAND_IRIS_REMOVING_WORLD,
COMMAND_IRIS_FAILED_EVACUATE_WORLD,
COMMAND_IRIS_FAILED_UNLOAD_WORLD,
COMMAND_IRIS_SUCCESSFULLY_REMOVED_FROM_BUKKIT_YML,
COMMAND_IRIS_LOOKS_LIKE_WORLD_WAS_ALREADY_REMOVED_FROM_BUKKIT_YML,
COMMAND_IRIS_FAILED_SAVE_BUKKIT_YML_BECAUSE,
COMMAND_IRIS_SET_DEBUG,
COMMAND_IRIS_YOU_MUST_BE_IRIS_WORLD,
COMMAND_IRIS_SENDING_METRICS,
@@ -874,9 +827,6 @@ public final class BukkitCommandMessagesExtended {
COMMAND_IRIS_FAILED_UNLOAD_WORLD_2,
COMMAND_IRIS_FAILED_UNLOAD_WORLD_3,
COMMAND_IRIS_DOESNT_EXIST_ON_SERVER,
COMMAND_IRIS_GENERATOR,
COMMAND_IRIS_IS_NOT_IRIS_WORLD,
COMMAND_IRIS_COULD_NOT_DETERMINE_IRIS_DIMENSION,
COMMAND_IRIS_LOADING_WORLD,
COMMAND_IRIS_LOADED_SUCCESSFULLY,
COMMAND_IRIS_THIS_IS_NOT_IRIS_WORLD_IRIS_WORLDS_3,
@@ -129,10 +129,6 @@ public final class BukkitRuntimeMessages {
"iris.bukkit.runtime.commandpack.no_validation_result_run_iris_pack_validate",
C.YELLOW + "No validation result for '" + "{pack}" + "'. Run /iris pack validate " + "{pack2}" + "."
);
public static final TextKey COMMAND_PACK_VALIDATION_FAILED = TextKey.of(
"iris.bukkit.runtime.commandpack.validation_failed",
C.RED + "Validation of '" + "{name}" + "' failed: " + "{error}"
);
public static final TextKey COMMAND_PACK_PACK_IS_LOADABLE_WARNINGS = TextKey.of(
"iris.bukkit.runtime.commandpack.pack_is_loadable_warnings",
C.GREEN + "Pack '" + "{packName}" + "' is loadable." + C.GRAY + " (warnings=" + "{size}" + ")"
@@ -440,26 +436,6 @@ public final class BukkitRuntimeMessages {
"iris.bukkit.runtime.studiosvc.looking_package",
"Looking for Package: " + "{type}"
);
public static final TextKey STUDIO_S_V_C_FOUND_IRIS_FOLDER = TextKey.of(
"iris.bukkit.runtime.studiosvc.found_iris_folder",
"Found " + "{type}" + ".iris in " + "{WORKSPACENAME}" + " folder"
);
public static final TextKey STUDIO_S_V_C_FOUND_DIMENSION_FOLDER_REPACKAGING = TextKey.of(
"iris.bukkit.runtime.studiosvc.found_dimension_folder_repackaging",
"Found " + "{type}" + " dimension in " + "{WORKSPACENAME}" + " folder. Repackaging"
);
public static final TextKey STUDIO_S_V_C_CAN_T_FIND_DIMENSIONS_FOLDER_THIS_PACK_FAILED = TextKey.of(
"iris.bukkit.runtime.studiosvc.can_t_find_dimensions_folder_this_pack_failed",
"Can't find the " + "{name}" + " in the dimensions folder of this pack! Failed!"
);
public static final TextKey STUDIO_S_V_C_CAN_T_LOAD_DIMENSION_FAILED = TextKey.of(
"iris.bukkit.runtime.studiosvc.can_t_load_dimension_failed",
"Can't load the dimension! Failed!"
);
public static final TextKey STUDIO_S_V_C_TYPE_INSTALLED = TextKey.of(
"iris.bukkit.runtime.studiosvc.type_installed",
"{name}" + " type installed. "
);
public static final TextKey STUDIO_S_V_C_FAILED_OPEN_STUDIO_WORLD = TextKey.of(
"iris.bukkit.runtime.studiosvc.failed_open_studio_world",
"Failed to open studio world: " + "{error}"
@@ -528,14 +504,6 @@ public final class BukkitRuntimeMessages {
"iris.bukkit.runtime.objectstudiosaveservice.object_studio_save_failed",
C.RED + "Object Studio: save failed for " + "{pack}" + "/" + "{key}" + " (" + "{error}" + ")"
);
public static final TextKey IRIS_PROJECT_COULD_NOT_LOAD_DIMENSION = TextKey.of(
"iris.bukkit.runtime.irisproject.could_not_load_dimension",
"Could not load dimension \"" + "{value}" + "\""
);
public static final TextKey IRIS_PROJECT_COULD_NOT_GET_DIMENSION_LOADER = TextKey.of(
"iris.bukkit.runtime.irisproject.could_not_get_dimension_loader",
"Could not get dimension loader"
);
public static final TextKey IRIS_PROJECT_STUDIO_OPEN_FAILED = TextKey.of(
"iris.bukkit.runtime.irisproject.studio_open_failed",
C.RED + "Studio open failed: " + "{error}"
@@ -548,10 +516,6 @@ public final class BukkitRuntimeMessages {
"iris.bukkit.runtime.irisproject.studio_ready",
C.GREEN + "Studio ready " + C.GRAY + "(" + "{value}" + ")"
);
public static final TextKey IRIS_PROJECT_STUDIO = TextKey.of(
"iris.bukkit.runtime.irisproject.studio",
C.GOLD + "Studio " + C.AQUA + "{bar}" + " " + C.YELLOW + "{percent}" + "%" + C.GRAY + " " + "{currentStage}" + C.DARK_GRAY + " (" + "{value}" + ")"
);
public static final TextKey IRIS_PROJECT_SERIALIZING_OBJECTS = TextKey.of(
"iris.bukkit.runtime.irisproject.serializing_objects",
"Serializing Objects"
@@ -616,18 +580,6 @@ public final class BukkitRuntimeMessages {
"iris.bukkit.runtime.serverconfigurator.you_need_restart_your_server_use_these_packs",
"You need to restart your server to use these packs."
);
public static final TextKey VIRTUAL_COMMAND_MESSAGE = TextKey.of(
"iris.bukkit.runtime.virtualcommand.message",
"- " + C.WHITE + "{i}"
);
public static final TextKey VIRTUAL_COMMAND_INSUFFICIENT_PERMISSIONS = TextKey.of(
"iris.bukkit.runtime.virtualcommand.insufficient_permissions",
"Insufficient Permissions"
);
public static final TextKey MORTAR_COMMAND_PARAMETERS_IGNORED = TextKey.of(
"iris.bukkit.runtime.mortarcommand.parameters_ignored",
"Parameters Ignored: " + "{m}"
);
private static final List<MessageKey> KEYS = List.of(
COMMAND_PACK_PACKS_FOLDER_NOT_FOUND,
@@ -660,7 +612,6 @@ public final class BukkitRuntimeMessages {
COMMAND_PACK_PATH_RESTORED,
COMMAND_PACK_PATH_FILE,
COMMAND_PACK_NO_VALIDATION_RESULT_RUN_IRIS_PACK_VALIDATE,
COMMAND_PACK_VALIDATION_FAILED,
COMMAND_PACK_PACK_IS_LOADABLE_WARNINGS,
COMMAND_PACK_PACK_IS_BROKEN,
COMMAND_PACK_MESSAGE,
@@ -735,11 +686,6 @@ public final class BukkitRuntimeMessages {
STUDIO_S_V_C_PACK_COPY_REQUIRES_ASYNC_THREAD,
STUDIO_S_V_C_PACK_INSTALL_FAILED,
STUDIO_S_V_C_LOOKING_PACKAGE,
STUDIO_S_V_C_FOUND_IRIS_FOLDER,
STUDIO_S_V_C_FOUND_DIMENSION_FOLDER_REPACKAGING,
STUDIO_S_V_C_CAN_T_FIND_DIMENSIONS_FOLDER_THIS_PACK_FAILED,
STUDIO_S_V_C_CAN_T_LOAD_DIMENSION_FAILED,
STUDIO_S_V_C_TYPE_INSTALLED,
STUDIO_S_V_C_FAILED_OPEN_STUDIO_WORLD,
STUDIO_S_V_C_CANNOT_OPEN_STUDIO_PACK_HAS_BLOCKING_ERRORS,
STUDIO_S_V_C_MESSAGE,
@@ -757,12 +703,9 @@ public final class BukkitRuntimeMessages {
OBJECT_STUDIO_SAVE_SERVICE_OBJECT_STUDIO_NO_TARGET_FILE,
OBJECT_STUDIO_SAVE_SERVICE_OBJECT_STUDIO_SAVED,
OBJECT_STUDIO_SAVE_SERVICE_OBJECT_STUDIO_SAVE_FAILED,
IRIS_PROJECT_COULD_NOT_LOAD_DIMENSION,
IRIS_PROJECT_COULD_NOT_GET_DIMENSION_LOADER,
IRIS_PROJECT_STUDIO_OPEN_FAILED,
IRIS_PROJECT_STUDIO_OPEN_FAILED_2,
IRIS_PROJECT_STUDIO_READY,
IRIS_PROJECT_STUDIO,
IRIS_PROJECT_SERIALIZING_OBJECTS,
IRIS_PROJECT_WROTE_ANOTHER_OBJECTS,
IRIS_PROJECT_PACKAGE_COMPILED,
@@ -778,10 +721,7 @@ public final class BukkitRuntimeMessages {
IRIS_TOOLBELT_YOU_HAVE_BEEN_EVACUATED_FROM_THIS_WORLD,
IRIS_TOOLBELT_YOU_HAVE_BEEN_EVACUATED_FROM_THIS_WORLD_2,
SERVER_CONFIGURATOR_THERE_ARE_SOME_IRIS_PACKS_THAT_HAVE_CUSTOM_BIOMES_THEM,
SERVER_CONFIGURATOR_YOU_NEED_RESTART_YOUR_SERVER_USE_THESE_PACKS,
VIRTUAL_COMMAND_MESSAGE,
VIRTUAL_COMMAND_INSUFFICIENT_PERMISSIONS,
MORTAR_COMMAND_PARAMETERS_IGNORED
SERVER_CONFIGURATOR_YOU_NEED_RESTART_YOUR_SERVER_USE_THESE_PACKS
);
private BukkitRuntimeMessages() {
@@ -369,14 +369,6 @@ public final class DirectorCommandMessages {
"iris.director.commandiris.director.print_version_information",
"Print version information"
);
public static final TextKey COMMAND_IRIS_DIRECTOR_BENCHMARK_PACK = TextKey.of(
"iris.director.commandiris.director.benchmark_pack",
"Benchmark a pack"
);
public static final TextKey COMMAND_IRIS_PARAM_DIMENSION_BENCHMARK = TextKey.of(
"iris.director.commandiris.param.dimension_benchmark",
"Dimension to benchmark"
);
public static final TextKey COMMAND_IRIS_DIRECTOR_PRINT_WORLD_HEIGHT_INFORMATION = TextKey.of(
"iris.director.commandiris.director.print_world_height_information",
"Print world height information"
@@ -1040,8 +1032,6 @@ public final class DirectorCommandMessages {
COMMAND_IRIS_PARAM_WORLD_TELEPORT,
COMMAND_IRIS_PARAM_PLAYER_TELEPORT,
COMMAND_IRIS_DIRECTOR_PRINT_VERSION_INFORMATION,
COMMAND_IRIS_DIRECTOR_BENCHMARK_PACK,
COMMAND_IRIS_PARAM_DIMENSION_BENCHMARK,
COMMAND_IRIS_DIRECTOR_PRINT_WORLD_HEIGHT_INFORMATION,
COMMAND_IRIS_DIRECTOR_CHECK_ACCESS_ALL_WORLDS,
COMMAND_IRIS_DIRECTOR_REMOVE_IRIS_WORLD,
@@ -5,12 +5,20 @@ import art.arcane.iris.spi.CapabilityProbe;
import art.arcane.iris.spi.IrisLogging;
import art.arcane.iris.spi.IrisPlatforms;
import art.arcane.volmlib.util.director.DirectorTextResolver;
import art.arcane.volmlib.util.io.AtomicFileIO;
import art.arcane.volmlib.util.localization.GitHubLanguageSource;
import art.arcane.volmlib.util.localization.LanguageCatalogMerge;
import art.arcane.volmlib.util.localization.LanguageDirectory;
import art.arcane.volmlib.util.localization.LanguageMeta;
import art.arcane.volmlib.util.localization.LanguageReferenceRenderer;
import art.arcane.volmlib.util.localization.LanguageSourceManifest;
import art.arcane.volmlib.util.localization.LanguageUpstreamStore;
import art.arcane.volmlib.util.localization.LanguageUpstreamSync;
import art.arcane.volmlib.util.localization.LinesKey;
import art.arcane.volmlib.util.localization.LanguageAudience;
import art.arcane.volmlib.util.localization.LanguageFileEditor;
import art.arcane.volmlib.util.localization.PluginLanguageEditor;
import art.arcane.volmlib.util.localization.PluginLanguageService;
import art.arcane.volmlib.util.localization.RemoteLanguageCatalog;
import art.arcane.volmlib.util.localization.LocalizationValidator;
import art.arcane.volmlib.util.localization.LocaleOverlay;
import art.arcane.volmlib.util.localization.LocalizationCandidate;
@@ -32,6 +40,7 @@ import art.arcane.volmlib.util.localization.TextKey;
import art.arcane.volmlib.util.localization.TomlLanguageEditor;
import art.arcane.volmlib.util.localization.TomlLanguageParser;
import art.arcane.volmlib.util.localization.TomlLanguageWriter;
import art.arcane.volmlib.util.localization.VolmitLocales;
import com.google.gson.JsonObject;
import java.io.File;
@@ -39,12 +48,17 @@ import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.LinkOption;
import java.nio.file.StandardCopyOption;
import java.nio.file.attribute.FileTime;
import java.time.Instant;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Locale;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.logging.Logger;
import com.google.gson.Gson;
import java.nio.ByteBuffer;
@@ -68,10 +82,13 @@ import java.util.function.BiConsumer;
import java.util.regex.Pattern;
public final class IrisLanguage {
public static final String MANIFEST_RESOURCE = "iris-language-source.properties";
private static final Object SNAPSHOT_LOCK = new Object();
private static final long MAX_LOCALE_BYTES = 2L * 1024L * 1024L;
private static final Object UPSTREAM_LOCK = new Object();
private static final long MAX_LOCALE_BYTES = LanguageDirectory.MAXIMUM_BYTES;
private static final int MAX_REPORTED_ISSUES = 12;
private static final Pattern LOCALE_NAME = Pattern.compile("[A-Za-z0-9_-]+");
private static final int MAXIMUM_BASE_DEPTH = 4;
private static final Pattern LOCALE_NAME = LanguageDirectory.LOCALE_PATTERN;
private static final Pattern LEGACY_COLOR = Pattern.compile("(?i)\\u00a7[0-9A-FK-ORX]");
private static final MessageCatalog CATALOG = IrisMessages.catalog();
private static final LocalizationManager MANAGER = new LocalizationManager(
@@ -86,10 +103,14 @@ public final class IrisLanguage {
private static final AtomicReference<PlainMemo> PLAIN_MEMO = new AtomicReference<>(null);
private static final CopyOnWriteArrayList<BiConsumer<File, String>> MANUAL_RELOAD_LISTENERS =
new CopyOnWriteArrayList<>();
private static final Map<String, CachedMeta> METAS = new ConcurrentHashMap<>();
private static final Set<String> PENDING_INSTALLS = ConcurrentHashMap.newKeySet();
private static volatile File dataFolder;
private static volatile String activeLocale = CATALOG.englishLocale();
private static volatile RemoteLanguageCatalog remote;
private static volatile Path remoteRoot;
private static volatile LanguageUpstream upstream;
private static volatile URI sourceApiRoot = GitHubLanguageSource.API_ROOT;
private static volatile URI sourceRawRoot = GitHubLanguageSource.RAW_ROOT;
private static volatile String englishReference;
private static volatile PluginLanguageService selections;
private IrisLanguage() {
@@ -157,9 +178,9 @@ public final class IrisLanguage {
}
try {
createEnglishLanguageIfMissing(resolvedRoot);
ensureEnglish(resolvedRoot);
} catch (IOException failure) {
IrisLogging.error("Could not create the editable Iris English language file.");
IrisLogging.error("Could not create or refresh the editable Iris English language file.");
IrisLogging.reportError(failure);
}
File override = overrideFile(resolvedRoot, requestedLocale);
@@ -178,7 +199,7 @@ public final class IrisLanguage {
requestConfiguredLocale();
}
if (applied && notifyManualReload) {
notifyManualReload(capture.snapshot());
notifyManualReload(capture.snapshot().file(), capture.snapshot().content());
}
return applied;
}
@@ -315,10 +336,10 @@ public final class IrisLanguage {
return result;
}
private static void notifyManualReload(LocaleHotloadSnapshot snapshot) {
private static void notifyManualReload(File file, String content) {
for (BiConsumer<File, String> listener : MANUAL_RELOAD_LISTENERS) {
try {
listener.accept(snapshot.file(), snapshot.content());
listener.accept(file, content);
} catch (RuntimeException failure) {
IrisLogging.error("Failed to acknowledge a manual locale reload: "
+ failure.getClass().getSimpleName()
@@ -433,36 +454,205 @@ public final class IrisLanguage {
String locale,
LocaleHotloadSnapshot snapshot
) throws Exception {
List<LocaleOverlay> overlays = new ArrayList<>(1);
List<LocaleOverlay> overlays = new ArrayList<>(2);
if (!snapshot.missing()) {
overlays.add(parseOverlay(snapshot.file().getPath(), locale, snapshot.content()));
overlays.addAll(baseOverlays(root, locale, snapshot.content()));
}
return new LocalizationCandidate(CATALOG, overlays, PluralSelector.oneOther());
}
static RemoteLanguageCatalog remote(File root) {
private static List<LocaleOverlay> baseOverlays(File root, String locale, String content) throws IOException {
List<LocaleOverlay> overlays = new ArrayList<>(1);
Set<String> visited = new HashSet<>();
visited.add(comparableLocale(locale));
LanguageMeta meta = metaFromContent(locale, content);
int depth = 0;
while (meta.base().isPresent() && depth < MAXIMUM_BASE_DEPTH) {
String base = meta.base().get();
if (!LOCALE_NAME.matcher(base).matches() || !visited.add(comparableLocale(base))
|| LanguageDirectory.sameLocale(base, CATALOG.englishLocale())) {
break;
}
File baseFile = overrideFile(root, base);
if (!Files.isRegularFile(baseFile.toPath(), LinkOption.NOFOLLOW_LINKS)) {
break;
}
String baseContent = LanguageDirectory.readContent(baseFile.toPath());
overlays.add(parseOverlay(baseFile.getPath(), base, baseContent));
meta = metaFromContent(base, baseContent);
depth++;
}
return overlays;
}
private static LanguageMeta metaFromContent(String locale, String content) {
try {
return LanguageMeta.parse(content).withoutSelfBase(locale);
} catch (IOException invalid) {
return LanguageMeta.empty();
}
}
private static String comparableLocale(String locale) {
return locale.replace('-', '_').toLowerCase(Locale.ROOT);
}
static LanguageUpstream upstream(File root) {
Path path = root.toPath().toAbsolutePath().normalize();
RemoteLanguageCatalog current = remote;
if (current != null && path.equals(remoteRoot)) {
LanguageUpstream current = upstream;
if (current != null && path.equals(current.root())) {
return current;
}
synchronized (IrisLanguage.class) {
if (remote != null && path.equals(remoteRoot)) {
return remote;
synchronized (UPSTREAM_LOCK) {
current = upstream;
if (current != null && path.equals(current.root())) {
return current;
}
if (remote != null) {
remote.close();
if (current != null) {
current.close();
}
remote = RemoteLanguageCatalog.load(new RemoteLanguageCatalog.Options(
LanguageUpstream created = createUpstream(path);
upstream = created;
return created;
}
}
static void useLanguageSource(URI apiRoot, URI rawRoot) {
LanguageUpstream current;
synchronized (UPSTREAM_LOCK) {
sourceApiRoot = Objects.requireNonNull(apiRoot, "apiRoot");
sourceRawRoot = Objects.requireNonNull(rawRoot, "rawRoot");
current = upstream;
upstream = null;
}
if (current != null) {
current.close();
}
}
private static LanguageUpstream createUpstream(Path root) {
LanguageDirectory directory = new LanguageDirectory(root.resolve("languages"));
try {
LanguageSourceManifest manifest = LanguageSourceManifest.load(IrisLanguage.class.getClassLoader(), MANIFEST_RESOURCE);
GitHubLanguageSource source = new GitHubLanguageSource(manifest, "Iris", sourceApiRoot, sourceRawRoot);
LanguageUpstreamSync sync = new LanguageUpstreamSync(new LanguageUpstreamSync.Options(
"Iris",
URI.create("https://raw.githubusercontent.com/VolmitSoftware/Iris/"),
"core/src/main/resources/languages",
".toml",
"iris-language-source.properties",
IrisLanguage.class.getClassLoader()
CATALOG,
directory,
manifest,
source,
new LanguageUpstreamStore(directory, manifest),
IrisLanguage::englishReference,
IrisLanguage::validateDownload,
IrisLanguage::commitUpstream,
IrisLanguage::noteUpstreamWrite,
IrisLanguage::applyUpstream,
Logger.getLogger("Iris")
));
remoteRoot = path;
return remote;
return new LanguageUpstream(root, directory, manifest, sync);
} catch (RuntimeException failure) {
IrisLogging.error("Iris language source is unavailable; English and installed language files remain active.");
IrisLogging.reportError(failure);
return new LanguageUpstream(root, directory, null, null);
}
}
public static CompletableFuture<LanguageUpstreamSync.SyncReport> checkUpstream() {
File root = dataFolder;
LanguageUpstream source = root == null ? null : upstream(root);
if (source == null || source.sync() == null) {
return CompletableFuture.completedFuture(LanguageUpstreamSync.SyncReport.failed(
"The Iris language source is unavailable", System.currentTimeMillis()));
}
return source.sync().checkAsync().thenApply(IrisLanguage::logUpstreamReport);
}
public static String sourceDescription() {
File root = dataFolder;
LanguageUpstream source = root == null ? null : upstream(root);
if (source == null || source.manifest() == null) {
return "unavailable";
}
return source.manifest().repository() + "@" + source.manifest().branch();
}
public static Optional<LanguageUpstreamSync.Status> upstreamStatus() {
File root = dataFolder;
LanguageUpstream source = root == null ? null : upstream(root);
return source == null || source.sync() == null ? Optional.empty() : Optional.of(source.sync().status());
}
public static String debugReport() {
StringBuilder report = new StringBuilder("Language: ").append(activeLocale)
.append(" (source ").append(sourceDescription()).append(')');
Optional<LanguageUpstreamSync.Status> status = upstreamStatus();
if (status.isEmpty()) {
return report.append("\n Upstream sync: unavailable").toString();
}
LanguageUpstreamSync.Status current = status.get();
report.append("\n Revision: ").append(current.revision().orElse("none"));
report.append("\n Last check: ").append(timestamp(current.lastCheckMillis()));
report.append("\n Last stored check: ").append(timestamp(current.checkedMillis()));
report.append("\n Last error: ").append(current.lastError().orElse("none"));
if (current.checking()) {
report.append("\n Check in progress");
}
return report.toString();
}
private static String timestamp(long millis) {
return millis == 0L ? "never" : Instant.ofEpochMilli(millis).toString();
}
private static LanguageUpstreamSync.SyncReport logUpstreamReport(LanguageUpstreamSync.SyncReport report) {
String revision = report.revision().map(sha -> sha.substring(0, Math.min(7, sha.length()))).orElse("unknown");
for (String locale : report.changedLocales()) {
LanguageCatalogMerge.MergeResult result = report.merged().get(locale);
String source = locale.equals(CATALOG.englishLocale())
? "the built-in catalog" : sourceDescription() + " (" + revision + ")";
IrisLogging.info("Updated Iris language " + locale + " from " + source + ": " + result.summary() + ".");
}
if (report.coolingDown()) {
IrisLogging.info("Iris language source " + sourceDescription() + " was checked recently; the next check is allowed in "
+ report.cooldownRemaining() + ".");
} else if (report.failure().isEmpty() && report.changedLocales().isEmpty() && report.failures().isEmpty()
&& report.revision().isPresent()) {
IrisLogging.info("Iris languages match " + sourceDescription() + " (" + revision + ").");
}
return report;
}
private static <T> T commitUpstream(LanguageUpstreamSync.CommitAction<T> action) throws IOException {
PluginLanguageService current = selections;
if (current == null) {
return action.apply();
}
return current.commitUpdate(action::apply);
}
private static void noteUpstreamWrite(Path file, String content) {
notifyManualReload(file.toFile().getAbsoluteFile(), content);
}
private static void applyUpstream(String locale, String content, LanguageCatalogMerge.MergeResult result)
throws Exception {
File root = dataFolder;
if (root == null) {
return;
}
File file = overrideFile(root, locale);
LocaleHotloadSnapshot source = LocaleHotloadSnapshot.present(
file, locale, content, sha256(content.getBytes(StandardCharsets.UTF_8)));
LocalizationSnapshot prepared = LocalizationSnapshot.create(loadCandidate(root, locale, source));
synchronized (SNAPSHOT_LOCK) {
if (root.equals(dataFolder) && locale.equals(activeLocale)) {
MANAGER.install(prepared);
}
}
PluginLanguageService current = selections;
if (current != null && root.equals(dataFolder)) {
current.cache(locale, prepared);
}
}
@@ -490,11 +680,15 @@ public final class IrisLanguage {
if (current != null) {
current.close();
}
RemoteLanguageCatalog currentRemote = remote;
remote = null;
remoteRoot = null;
if (currentRemote != null) {
currentRemote.close();
METAS.clear();
PENDING_INSTALLS.clear();
LanguageUpstream currentUpstream;
synchronized (UPSTREAM_LOCK) {
currentUpstream = upstream;
upstream = null;
}
if (currentUpstream != null) {
currentUpstream.close();
}
}
@@ -507,19 +701,60 @@ public final class IrisLanguage {
locales.add(CATALOG.englishLocale());
File root = dataFolder;
if (root != null) {
locales.addAll(remote(root).availableLocales());
File[] files = new File(root, "languages").listFiles();
if (files != null) {
for (File file : files) {
if (file.isFile() && isLanguageFile(file)) {
locales.add(file.getName().substring(0, file.getName().length() - 5));
}
}
LanguageUpstream source = upstream(root);
if (source.manifest() != null) {
locales.addAll(source.manifest().locales());
}
try {
locales.addAll(source.directory().scan());
} catch (IOException failure) {
IrisLogging.error("Could not list the Iris language files in " + source.directory().root() + ".");
IrisLogging.reportError(failure);
}
}
return Set.copyOf(locales);
}
public static String displayName(String locale) {
String normalized = locale == null ? "" : locale.trim();
return meta(normalized).name().or(() -> VolmitLocales.displayName(normalized)).orElse(normalized);
}
public static String metaName(String locale) {
return meta(locale).name().orElse(null);
}
public static LanguageMeta meta(String locale) {
File folder = overrideFolder();
String normalized = locale == null ? "" : locale.trim();
if (folder == null || !LOCALE_NAME.matcher(normalized).matches()) {
return LanguageMeta.empty();
}
Path file = folder.toPath().resolve(normalized + ".toml").toAbsolutePath().normalize();
BasicFileAttributes attributes;
try {
attributes = Files.readAttributes(file, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);
} catch (IOException missing) {
METAS.remove(normalized);
return LanguageMeta.empty();
}
CachedMeta cached = METAS.get(normalized);
if (cached != null && cached.file().equals(file) && cached.modified().equals(attributes.lastModifiedTime())
&& cached.size() == attributes.size()) {
return cached.meta();
}
LanguageMeta meta = LanguageMeta.empty();
if (attributes.isRegularFile() && attributes.size() <= MAX_LOCALE_BYTES) {
try {
meta = LanguageMeta.parse(LanguageDirectory.readContent(file)).withoutSelfBase(normalized);
} catch (IOException invalid) {
IrisLogging.debug("Ignoring unreadable [meta] in " + file + ": " + invalid.getMessage());
}
}
METAS.put(normalized, new CachedMeta(file, attributes.lastModifiedTime(), attributes.size(), meta));
return meta;
}
public static String text(UUID player, MessageKey key, MessageArgs arguments) {
return LanguageAudience.call(player, () -> text(key, arguments));
}
@@ -535,15 +770,10 @@ public final class IrisLanguage {
private static LocalizationSnapshot prepareLocale(String locale) throws Exception {
File root = dataFolder;
createEnglishLanguageIfMissing(root);
ensureEnglish(root);
File file = overrideFile(root, locale);
if (!CATALOG.englishLocale().equals(locale) && !Files.exists(file.toPath(), LinkOption.NOFOLLOW_LINKS)) {
try {
remote(root).readOrInstall(locale, file.toPath(), IrisLanguage::validateDownload);
} catch (Exception failure) {
IrisLogging.error("Could not install Iris language " + locale + "; using English.");
IrisLogging.reportError(failure);
}
installMissingLocale(root, locale, file);
}
if (!CATALOG.englishLocale().equals(locale)) {
refreshLanguageGuide(file, locale);
@@ -617,29 +847,61 @@ public final class IrisLanguage {
}
}
private static void installMissingLocale(File root, String locale, File file) throws IOException {
LanguageUpstream source = upstream(root);
if (source.manifest() == null || !source.manifest().contains(locale)) {
createCustomLanguage(file, locale);
return;
}
if (source.sync() == null) {
throw new IOException("Iris language " + locale + " is not installed and the language source is unavailable");
}
IrisLogging.info("Installing Iris language " + locale + " from " + sourceDescription() + "...");
source.sync().install(locale);
IrisLogging.info("Installed Iris language " + locale + " to " + file.toPath().toAbsolutePath().normalize() + ".");
}
private static void createCustomLanguage(File file, String locale) throws IOException {
if (Files.exists(file.toPath(), LinkOption.NOFOLLOW_LINKS)) {
return;
}
String rendered = IrisLanguageGuide.englishHeader(locale) + "\n" + LanguageReferenceRenderer.render(
CATALOG, List.of(), LanguageMeta.of(locale, CATALOG.englishLocale()));
Files.createDirectories(file.toPath().getParent());
AtomicFileIO.writeString(file.toPath(), rendered);
notifyManualReload(file.getAbsoluteFile(), rendered);
}
private static void requestConfiguredLocale() {
String locale = activeLocale;
if (CATALOG.englishLocale().equals(locale)) {
return;
}
File root = dataFolder;
if (root == null) {
if (root == null || CATALOG.englishLocale().equals(locale)) {
return;
}
remote(root).requestInstallIfMissing(locale, overrideFile(root, locale).toPath(), IrisLanguage::validateDownload, result -> {
if (!result.successful()) {
IrisLogging.error("Failed to download Iris locale " + locale + ".");
IrisLogging.reportError(result.failure());
LanguageUpstream source = upstream(root);
if (source.sync() == null || !source.manifest().contains(locale)
|| Files.exists(overrideFile(root, locale).toPath(), LinkOption.NOFOLLOW_LINKS)
|| !PENDING_INSTALLS.add(locale)) {
return;
}
source.sync().installAsync(locale).whenComplete((content, failure) -> {
PENDING_INSTALLS.remove(locale);
if (failure != null) {
IrisLogging.error("Failed to download Iris locale " + locale + " from " + sourceDescription() + ".");
IrisLogging.reportError(failure);
return;
}
synchronized (IrisLanguage.class) {
if (root.equals(dataFolder) && locale.equals(activeLocale)) {
reloadResolved(root, locale, false);
}
}
IrisLogging.info("Installed Iris language " + locale + " from " + sourceDescription() + ".");
reloadInstalledLocale(root, locale);
});
}
private static synchronized void reloadInstalledLocale(File root, String locale) {
if (root.equals(dataFolder) && locale.equals(activeLocale)) {
reloadResolved(root, locale, false);
}
}
static void validateDownload(String locale, String raw) {
LocaleOverlay overlay = parseOverlay("download:" + locale, locale, raw);
LocalizationValidator.validate(CATALOG, List.of(overlay)).throwIfInvalid();
@@ -658,12 +920,18 @@ public final class IrisLanguage {
}
static String englishReference() {
String reference = englishReference;
if (reference != null) {
return reference;
}
Map<String, MessageValue> values = new LinkedHashMap<>();
for (MessageKey key : CATALOG.keys()) {
values.put(key.id(), key.englishValue());
}
return IrisLanguageGuide.englishHeader(CATALOG.englishLocale()) + "\n"
String rendered = IrisLanguageGuide.englishHeader(CATALOG.englishLocale()) + "\n"
+ TomlLanguageWriter.render(values, List.of());
englishReference = rendered;
return rendered;
}
private static void refreshLanguageGuide(File file, String locale) {
@@ -675,24 +943,28 @@ public final class IrisLanguage {
}
}
private static void createEnglishLanguageIfMissing(File root) throws IOException {
Path target = overrideFile(Objects.requireNonNull(root, "Language data folder"), CATALOG.englishLocale()).toPath();
if (Files.exists(target, LinkOption.NOFOLLOW_LINKS)) {
refreshLanguageGuide(target.toFile(), CATALOG.englishLocale());
return;
}
Files.createDirectories(target.getParent());
Path temporary = Files.createTempFile(target.getParent(), "en_US-", ".toml.tmp");
try {
Files.writeString(temporary, englishReference(), StandardCharsets.UTF_8);
try {
Files.move(temporary, target);
} catch (FileAlreadyExistsException existing) {
private static void ensureEnglish(File root) throws IOException {
File english = overrideFile(Objects.requireNonNull(root, "Language data folder"), CATALOG.englishLocale());
LanguageUpstream source = upstream(root);
if (source.sync() == null) {
if (!Files.exists(english.toPath(), LinkOption.NOFOLLOW_LINKS)) {
Files.createDirectories(english.toPath().getParent());
AtomicFileIO.writeString(english.toPath(), englishReference());
notifyManualReload(english, englishReference());
return;
}
} finally {
Files.deleteIfExists(temporary);
} else {
try {
source.sync().mergeEnglish().filter(LanguageCatalogMerge.MergeResult::changed)
.ifPresent(result -> IrisLogging.info("Updated Iris language " + CATALOG.englishLocale()
+ " from the built-in catalog: " + result.summary() + "."));
} catch (IOException failure) {
throw failure;
} catch (Exception failure) {
throw new IOException("Could not refresh the Iris English language file", failure);
}
}
refreshLanguageGuide(english, CATALOG.englishLocale());
}
private static String render(ResolvedText resolved) {
@@ -969,4 +1241,16 @@ public final class IrisLanguage {
private record SnapshotCapture(LocaleHotloadSnapshot snapshot, Exception failure) {
}
private record CachedMeta(Path file, FileTime modified, long size, LanguageMeta meta) {
}
record LanguageUpstream(Path root, LanguageDirectory directory, LanguageSourceManifest manifest,
LanguageUpstreamSync sync) {
void close() {
if (sync != null) {
sync.close();
}
}
}
}
@@ -55,6 +55,7 @@ final class IrisLanguageGuide {
Map.entry("activeMax", "Upper boundary of the loaded dimension type's height range."),
Map.entry("activeMin", "Lower boundary of the loaded dimension type's height range."),
Map.entry("actualReverts", "Number of object pastes actually reverted."),
Map.entry("added", "Number of messages a language update added."),
Map.entry("afb", "Formatted part of an engine timing label after its bracketed portion."),
Map.entry("after", "Value after the change, or remaining unreachable tree blocks after repair."),
Map.entry("amount", "Quantity associated with the named entry in the report."),
@@ -144,6 +145,7 @@ final class IrisLanguageGuide {
Map.entry("irisPlaced", "Number of structures placed by Iris instead of native generation."),
Map.entry("job", "Name of the completed background operation."),
Map.entry("k", "Region load key in the region-distribution report."),
Map.entry("kept", "Number of local edits a language update kept."),
Map.entry("key", "Parameter, message or resource identifier named by the surrounding text."),
Map.entry("key2", "Structure identifier repeated in the suggested locate command."),
Map.entry("keyString", "Structure or resource identifier being imported or reported as invalid."),
@@ -212,7 +214,7 @@ final class IrisLanguageGuide {
Map.entry("ready", "Number of exact Atlas pages currently available."),
Map.entry("reason", "Explanation of why the requested action could not finish."),
Map.entry("region", "Name or identifier of the region being inspected."),
Map.entry("remaining", "Number of additional block states omitted from the displayed list."),
Map.entry("remaining", "Number of additional block states omitted from the displayed list, or the wait before the next language check."),
Map.entry("repository", "Repository or downloaded archive being unpacked."),
Map.entry("reverted", "Number of object pastes reverted."),
Map.entry("rotation", "Rotation applied to the placed object."),
@@ -262,6 +264,7 @@ final class IrisLanguageGuide {
Map.entry("typeKey", "Registered Minecraft dimension-type identifier, or inline."),
Map.entry("unreachableBiomes", "Number of native structures excluded by the pack's biome choices."),
Map.entry("unsupported", "Number of native structures reported as unsupported by this platform."),
Map.entry("updated", "Number of messages a language update changed."),
Map.entry("updates", "Block updates per second in the developer display."),
Map.entry("url", "Web address to open or copy."),
Map.entry("usage", "Command syntax, or memory-usage text in the memory display."),
@@ -128,10 +128,6 @@ public final class PackDownloadMessages {
"iris.runtime.pack_download.no_extracted_files",
"No files were extracted from the zip file."
);
public static final TextKey HOME_DIRECTORY_ERROR = TextKey.of(
"iris.runtime.pack_download.home_directory_error",
"Error when finding home directory. Are there any non-text characters in the file name?"
);
public static final TextKey INVALID_ARCHIVE_FORMAT = TextKey.of(
"iris.runtime.pack_download.invalid_archive_format",
"Invalid format. Missing root folder or too many folders!"
@@ -221,7 +217,6 @@ public final class PackDownloadMessages {
UNPACKING,
UNPACK_FAILED,
NO_EXTRACTED_FILES,
HOME_DIRECTORY_ERROR,
INVALID_ARCHIVE_FORMAT,
NO_DIMENSION_FILE,
CHECK_GITHUB,
@@ -31,22 +31,10 @@ public final class RuntimeUiMessages {
public static final TextKey ENGINE_HOTLOADED = TextKey.of("iris.runtime.engine.hotloaded", "Engine Hotloaded");
public static final TextKey JOB_COMPLETED = TextKey.of("iris.runtime.job.completed", "Completed {job} in {duration}");
public static final TextKey JOB_SCANNING_SELECTION = TextKey.of("iris.runtime.job.scanning_selection", "Scanning Selection");
public static final TextKey JOB_LOADING_CHUNKS = TextKey.of("iris.runtime.job.loading_chunks", "Loading Chunks");
public static final TextKey JOB_SEARCHED_CHUNKS = TextKey.of("iris.runtime.job.searched_chunks", "Searched {chunks} Chunks");
public static final TextKey JOB_COMPILE = TextKey.of("iris.runtime.job.compile", "Compile");
public static final TextKey JOB_SAVING_OBJECT = TextKey.of("iris.runtime.job.saving_object", "Saving Object");
public static final TextKey JOB_DOWNLOADING = TextKey.of("iris.runtime.job.downloading", "Downloading");
public static final TextKey JOB_EXTRACTING = TextKey.of("iris.runtime.job.extracting", "Extracting");
public static final TextKey JOB_INSTALLING = TextKey.of("iris.runtime.job.installing", "Installing");
public static final TextKey COMPILE_IOB_EMPTY = TextKey.of("iris.runtime.compile.iob_empty", "- IOB {file} has 0 blocks!");
public static final TextKey COMPILE_IOB_EMPTY_HOVER = TextKey.of("iris.runtime.compile.iob_empty_hover", "Error:\n{path}");
public static final TextKey COMPILE_IOB_NOT_3D = TextKey.of("iris.runtime.compile.iob_not_3d", "- IOB {file} is not 3D!");
public static final TextKey COMPILE_IOB_NOT_3D_HOVER = TextKey.of("iris.runtime.compile.iob_not_3d_hover", "Error:\n{path}\nThe width, height, or depth is zero (bad format)");
public static final TextKey COMPILE_JSON_ERROR = TextKey.of("iris.runtime.compile.json_error", "- JSON Error {file}");
public static final TextKey COMPILE_JSON_ERROR_HOVER = TextKey.of("iris.runtime.compile.json_error_hover", "Error:\n{path}\n{error}");
public static final TextKey COMPILE_LOADER_NOT_FOUND = TextKey.of("iris.runtime.compile.loader_not_found", "Can't find loader for {path}");
public static final TextKey FORCED_DATAPACK_NAME = TextKey.of("iris.runtime.datapack.name", "Iris World Generation");
public static final TextKey PACK_ALREADY_EXISTS = TextKey.of("iris.runtime.pack.already_exists", "Pack already exists!");
public static final TextKey TREE_DRY_SUFFIX = TextKey.of("iris.runtime.tree_plausibilize.dry_suffix", ", DRY");
public static final TextKey TREE_SKIP_LOAD = TextKey.of("iris.runtime.tree_plausibilize.skip_load", "skip {object}: failed to load");
public static final TextKey TREE_RESULT = TextKey.of("iris.runtime.tree_plausibilize.result", "{object}: +{wood} wood ({branches} branches), {converted} leaves->wood, ~{distances} distances");
@@ -82,7 +70,6 @@ public final class RuntimeUiMessages {
public static final TextKey DUST_COLUMN_NONE = TextKey.of("iris.runtime.dust.column_none", "none within 64 (decorator or terrain, NOT an object stilt)");
public static final TextKey DUST_COLUMN_ABOVE = TextKey.of("iris.runtime.dust.column.above", "{object} @Y={y} (above)");
public static final TextKey DUST_COLUMN_BELOW = TextKey.of("iris.runtime.dust.column.below", "{object} @Y={y} (below)");
public static final TextKey DUST_SURFACE_BIOME = TextKey.of("iris.runtime.dust.surface_biome", "Surface biome: {biome}");
public static final TextKey DUST_SURFACE_BIOME_DETAIL = TextKey.of("iris.runtime.dust.surface_biome_detail", "Surface biome: {biome} ({derivative})");
public static final TextKey DUST_BIOME_AT_Y = TextKey.of("iris.runtime.dust.biome_at_y", "Biome @Y: {biome}");
public static final TextKey DUST_CAVE_BIOME = TextKey.of("iris.runtime.dust.cave_biome", "Cave/Mantle biome: {biome}");
@@ -162,22 +149,10 @@ public final class RuntimeUiMessages {
ENGINE_HOTLOADED,
JOB_COMPLETED,
JOB_SCANNING_SELECTION,
JOB_LOADING_CHUNKS,
JOB_SEARCHED_CHUNKS,
JOB_COMPILE,
JOB_SAVING_OBJECT,
JOB_DOWNLOADING,
JOB_EXTRACTING,
JOB_INSTALLING,
COMPILE_IOB_EMPTY,
COMPILE_IOB_EMPTY_HOVER,
COMPILE_IOB_NOT_3D,
COMPILE_IOB_NOT_3D_HOVER,
COMPILE_JSON_ERROR,
COMPILE_JSON_ERROR_HOVER,
COMPILE_LOADER_NOT_FOUND,
FORCED_DATAPACK_NAME,
PACK_ALREADY_EXISTS,
TREE_DRY_SUFFIX,
TREE_SKIP_LOAD,
TREE_RESULT,
@@ -213,7 +188,6 @@ public final class RuntimeUiMessages {
DUST_COLUMN_NONE,
DUST_COLUMN_ABOVE,
DUST_COLUMN_BELOW,
DUST_SURFACE_BIOME,
DUST_SURFACE_BIOME_DETAIL,
DUST_BIOME_AT_Y,
DUST_CAVE_BIOME,
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+210 -265
View File
@@ -39,6 +39,7 @@
# {activeMax} Limite supérieure de la plage de hauteur du type de dimension chargé.
# {activeMin} Limite inférieure de la plage de hauteur du type de dimension chargé.
# {actualReverts} Nombre de collages d’objets effectivement annulés.
# {added} Messages ajoutés par une mise à jour de langue.
# {afb} Partie mise en forme d’un libellé de mesure du moteur, après le passage entre crochets.
# {after} Valeur après modification ou blocs d’arbre restant inaccessibles après réparation.
# {amount} Quantité associée à l’entrée indiquée dans le rapport.
@@ -128,6 +129,7 @@
# {irisPlaced} Nombre de structures placées par Iris à la place de la génération native.
# {job} Nom de l’opération en arrière-plan terminée.
# {k} Clé de chargement de la région dans le rapport de répartition des régions.
# {kept} Modifications locales conservées par une mise à jour de langue.
# {key} Identifiant du paramètre, du message ou de la ressource indiqué par le texte environnant.
# {key2} Identifiant de structure répété dans la commande de localisation proposée.
# {keyString} Identifiant de la structure ou de la ressource importée ou signalée comme invalide.
@@ -196,7 +198,7 @@
# {ready} Nombre de pages exactes de l’Atlas actuellement disponibles.
# {reason} Explication de l’impossibilité de terminer l’action demandée.
# {region} Nom ou identifiant de la région inspectée.
# {remaining} Nombre d’états de blocs supplémentaires omis dans la liste affichée.
# {remaining} Nombre d’états de blocs supplémentaires omis dans la liste affichée; délai restant avant la prochaine vérification des langues.
# {repository} Dépôt ou archive téléchargée en cours de décompression.
# {reverted} Nombre de collages d’objets annulés.
# {rotation} Rotation appliquée à l’objet placé.
@@ -246,6 +248,7 @@
# {typeKey} Identifiant enregistré du type de dimension Minecraft, ou inline.
# {unreachableBiomes} Nombre de structures natives exclues par les choix de biomes du pack.
# {unsupported} Nombre de structures natives signalées comme non prises en charge par cette plateforme.
# {updated} Messages modifiés par une mise à jour de langue.
# {updates} Mises à jour de blocs par seconde dans l’affichage de développement.
# {url} Adresse web à ouvrir ou à copier.
# {usage} Syntaxe de commande ou texte d’utilisation mémoire dans l’affichage mémoire.
@@ -288,8 +291,6 @@ description = "Outils de diagnostic Iris"
"param.world_teleport" = "Le monde vers lequel se téléporter"
"param.player_teleport" = "Le joueur à téléporter"
"director.print_version_information" = "Afficher les informations de version"
"director.benchmark_pack" = "Effectuer le benchmark d'un pack"
"param.dimension_benchmark" = "La dimension à soumettre au benchmark"
"director.print_world_height_information" = "Afficher les informations sur la hauteur du monde"
"director.check_access_all_worlds" = "Vérifier l'accès à tous les mondes."
"director.remove_iris_world" = "Supprimer un monde Iris"
@@ -404,7 +405,7 @@ operator_instruction = "Exécutez {command} depuis la console (ou activez les co
"entry.command.x_y_2" = "Sélectionner automatiquement vers le haut, le bas et l'extérieur"
"entry.command.analyze" = "Afficher la composition d'un objet"
"entry.command.shrink" = "Réduire un objet à sa taille minimale"
"entry.command.plausibilize" = "Faire pousser des branches pour que les feuilles survivent à la décomposition vanilla"
"entry.command.plausibilize" = "Faire pousser des branches pour que les feuilles des arbres survivent à la disparition naturelle de vanilla"
"entry.command.undo" = "Annuler les objets collés"
"entry.command.create_2" = "Créer un nouveau projet de pack"
"entry.command.package" = "Empaqueter une dimension dans un format compressé"
@@ -442,22 +443,22 @@ operator_instruction = "Exécutez {command} depuis la console (ou activez les co
"entry.command.capture" = "Expliquer le flux de capture des structures Bukkit"
"entry.command.verify" = "Afficher l'accessibilité des structures natives et Iris dans la dimension actuelle"
"entry.command.network" = "Lister les interfaces réseau et leurs adresses"
"entry.command.what.here" = "Inspecter le biome Iris, la région, le biome souterrain, la surface et le chunk à votre position"
"entry.command.what.biome" = "Inspect the Iris biome, configured derivative and registered native biome"
"entry.command.what.region" = "Inspect the Iris region at your current chunk"
"entry.command.what.block" = "Inspect the targeted block state, properties, object and block entity"
"entry.command.what.hand" = "Inspect the held item and its default block state"
"entry.command.what.markers" = "Reveal nearby Iris Mantle markers with particles"
"entry.command.height" = "Print the current dimension height range"
"entry.command.worlds" = "List loaded dimensions and identify the Iris-generated dimensions"
"entry.command.mainworld" = "Configure or clear the Iris primary-world preset used on restart"
"entry.command.object.we" = "Explain why WorldEdit selection import requires the Bukkit plugin"
"entry.command.object.studio" = "Explain why the object studio world requires the Bukkit toolchain"
"entry.command.object.convert" = "Explain why schematic conversion requires the Bukkit plugin"
"entry.command.studio.loot" = "Explain why the Bukkit loot simulation GUI is unavailable"
"entry.command.studio.profile" = "Explain why Bukkit pack profiling is unavailable"
"entry.command.studio.spawn" = "Explain why Bukkit Iris entity spawning is unavailable"
"entry.command.studio.objects" = "Explain why the Bukkit chunk object report is unavailable"
"entry.command.what.here" = "Inspecter le biome Iris, la région, le biome de grotte, la surface et le chunk à votre position"
"entry.command.what.biome" = "Inspecter le biome Iris, son dérivé configuré et le biome natif enregistré"
"entry.command.what.region" = "Inspecter la région Iris de votre chunk actuel"
"entry.command.what.block" = "Inspecter l'état, les propriétés, l'objet et l'entité de bloc du bloc ciblé"
"entry.command.what.hand" = "Inspecter l'objet tenu et son état de bloc par défaut"
"entry.command.what.markers" = "Afficher avec des particules les marqueurs Mantle Iris proches"
"entry.command.height" = "Afficher la plage de hauteur de la dimension actuelle"
"entry.command.worlds" = "Lister les dimensions chargées et identifier celles générées par Iris"
"entry.command.mainworld" = "Configurer ou effacer le préréglage du monde principal Iris utilisé au redémarrage"
"entry.command.object.we" = "Expliquer pourquoi l'importation de sélections WorldEdit nécessite le plugin Bukkit"
"entry.command.object.studio" = "Expliquer pourquoi le monde Object Studio nécessite la chaîne d'outils Bukkit"
"entry.command.object.convert" = "Expliquer pourquoi la conversion de schematics nécessite le plugin Bukkit"
"entry.command.studio.loot" = "Expliquer pourquoi la GUI de simulation de butin de Bukkit n'est pas disponible"
"entry.command.studio.profile" = "Expliquer pourquoi le profilage de packs de Bukkit n'est pas disponible"
"entry.command.studio.spawn" = "Expliquer pourquoi l'apparition d'entités Iris de Bukkit n'est pas disponible"
"entry.command.studio.objects" = "Expliquer pourquoi le rapport d'objets par chunk de Bukkit n'est pas disponible"
"entry.command.compat_content" = "Afficher le contenu qui ne peut pas être généré sur cette version de Minecraft"
[iris.modded.catalog]
@@ -482,7 +483,7 @@ ingest_line = " {summary}"
ingest_complete = "Intégration des mods terminée : {path}"
[iris.modded.command]
"properties.none" = "Propriétés: (aucune)"
"properties.none" = "Propriétés : (aucune)"
"properties.list" = "Propriétés : {properties}"
[iris.bukkit.commanddatapack]
@@ -491,7 +492,7 @@ configured_datapack_imports = "§aImportations de datapacks configurées : §f{v
message = "§7 - §f{url}"
installed_datapacks = "§aDatapacks installés : §f{value}"
message_2 = "§7 - §f{value}§7 {value2}"
add_modrinth_urls_dimension_s_datapackimports_list_then_run_iris = "§eAjoutez des URL Modrinth à la liste 'datapackImports' d'une dimension, puis exécutez /iris datapack ingest."
add_modrinth_urls_dimension_s_datapackimports_list_then_run_iris = "§eAjoutez des URL sources à la liste 'datapackImports' d'une dimension ou utilisez le dossier d'importation local, puis exécutez /iris datapack ingest."
[iris.bukkit.commanddeveloper]
genhash_started_chunks = "§agenhash démarré : {value} chunks..."
@@ -530,17 +531,14 @@ object_studio_teleporting = "§aObject Studio : téléportation vers {object}"
is_not_configured_any_region_biome_object_placements = "§c{object} n'est configuré dans aucun placement d'objets de région ou de biome."
[iris.bukkit.commandiris]
successfully_removed_world_folder = "§aDossier du monde supprimé avec succès"
successfully_removed_world_folder_2 = "§aDossier du monde supprimé avec succès"
failed_remove_world_folder = "§cImpossible de supprimer le dossier du monde"
you_cannot_use_world_name_iris_creating_worlds_as_iris = "§cVous ne pouvez pas nommer un monde \"iris\" : Iris réserve ce répertoire aux mondes Studio."
may_we_suggest_name_irisworld_instead = "§cNous vous suggérons plutôt le nom \"IrisWorld\"."
you_cannot_use_world_name_benchmark_creating_worlds_as_iris = "§cVous ne pouvez pas nommer un monde \"benchmark\" : Iris réserve ce répertoire aux benchmarks de packs."
may_we_suggest_name_irisworld_instead_2 = "§cNous vous suggérons plutôt le nom \"IrisWorld\"."
that_folder_already_exists = "§cCe dossier existe déjà !"
try_one_overworld_vanilla_flat_theend = "§eEssayez l'une des options suivantes : overworld, vanilla, flat, theend"
dimension_not_found = "§cCould not find dimension §f{dimension}§c."
install_pack_and_restart = "§eInstall it with §b{command}§e and restart the server."
dimension_not_found = "§cImpossible de trouver la dimension §f{dimension}§c."
install_pack_and_restart = "§eInstallez-le avec §b{command}§e et redémarrez le serveur."
exception_raised_during_creation_see_console_more_details = "§cUne exception s'est produite pendant la création. Consultez la console pour plus de détails."
successfully_created_your_world = "§aVotre monde a été créé avec succès !"
specified_player_does_not_exist = "§cLe joueur indiqué n'existe pas."
@@ -550,13 +548,6 @@ iris_worlds = "§9Mondes Iris : "
message = "§a- {value}"
bukkit_worlds = "§6Mondes Bukkit : "
message_2 = "§7- {value}"
this_is_not_iris_world_iris_worlds = "§cCe monde n'est pas un monde Iris. Mondes Iris : {value}"
removing_world = "§aSuppression du monde : {value}"
failed_evacuate_world = "§cImpossible d'évacuer le monde : {value}"
failed_unload_world = "§cImpossible de décharger le monde de la mémoire : {value}"
successfully_removed_from_bukkit_yml = "§a{value} a été supprimé de bukkit.yml avec succès"
looks_like_world_was_already_removed_from_bukkit_yml = "§eIl semble que le monde avait déjà été supprimé de bukkit.yml"
failed_save_bukkit_yml_because = "§cImpossible d'enregistrer bukkit.yml à cause de {value}"
set_debug = "§aDébogage défini sur : {to}"
you_must_be_iris_world = "§cVous devez être dans un monde Iris"
sending_metrics = "§aEnvoi des métriques..."
@@ -566,9 +557,6 @@ world_unloaded_successfully = "§aLe monde a été déchargé de la mémoire ave
failed_unload_world_2 = "§cImpossible de décharger le monde de la mémoire."
failed_unload_world_3 = "§cImpossible de décharger le monde de la mémoire : {value}"
doesnt_exist_on_server = "§e{logicalWorldName} n'existe pas sur le serveur."
generator = "§9Générateur : {dimension}"
is_not_iris_world = "§6{logicalWorldName} n'est pas un monde Iris."
could_not_determine_iris_dimension = "§cImpossible de déterminer la dimension Iris de {logicalWorldName}."
loading_world = "§aChargement du monde : {logicalWorldName}"
loaded_successfully = "§a{logicalWorldName} a été chargé avec succès."
this_is_not_iris_world_iris_worlds_3 = "§cCe monde n'est pas un monde Iris. Mondes Iris : {value}"
@@ -640,13 +628,13 @@ structure_pieces_footprint_x_blocks_sample_seed_1234 = "§aStructure '{structure
could_not_resolve_pack_dimension_5 = "§cImpossible de résoudre le pack de la dimension {value}"
no_iris_structure_this_pack_2 = "§cAucune structure Iris '{structure}' dans ce pack"
structure_assembled_0_pieces = "§cLa structure '{structure}' a assemblé 0 pièce"
placed_pieces_at_your_location = "§aLa structure '{structure}' ({value} pièces) a été placée à votre position. ({value2} block changes)"
placement_changed_no_blocks = "§cStructure '{structure}' assembled {value} pieces but changed 0 blocks at your location. Check that the selected variants contain non-air blocks and that the placement is above the world's minimum height."
placed_pieces_at_your_location = "§aLa structure '{structure}' ({value} pièces, {value2} blocs modifiés) a été placée à votre position."
placement_changed_no_blocks = "§cLa structure '{structure}' a assemblé {value} pièces mais n'a modifié aucun bloc à votre position. Vérifiez que les variantes sélectionnées contiennent des blocs autres que l'air et que le placement se trouve au-dessus de la hauteur minimale du monde."
[iris.bukkit.commandstudio]
hotloading = "§eRechargement à chaud de Studio..."
hotloaded = "§aStudio rechargé à chaud."
hotload_failed = "§cÉchec du rechargement à chaud de Studio: {value}"
hotload_failed = "§cÉchec du rechargement à chaud de Studio : {value}"
importing_vanilla_content_into = "§aImportation du contenu vanilla dans §f{value}§a..."
importvanilla_complete_objects_structures_written_failed = "§aimportvanilla terminé : §f{imported}§a objects/structures écrits, §f{failed}§a échecs."
trees_objects_are_under_objects_vanilla_reference_them_from_biome = "§7Les arbres/objets se trouvent dans objects/vanilla/... ; référencez-les depuis les placements d'objets du biome."
@@ -697,10 +685,7 @@ desktop_unavailable = "§cCe serveur ne dispose pas d’un affichage de bureau.
players_only = "§cJoueurs uniquement !"
no_studio_world_is_open_2 = "§cAucun monde Studio n'est ouvert !"
you_must_be_studio_world = "§cVous devez être dans un monde Studio !"
opening_image_map_studio = "§aOpening the Image Map Studio."
[iris.bukkit.commandsvc]
you_lack_permission = "Tu manques de la permission{ROOTPERMISSION}'"
opening_image_map_studio = "§aOuverture d'Image Map Studio."
[iris.bukkit.irisenginestatus]
message = "§5-------------------------"
@@ -755,7 +740,7 @@ paused_unpaused_pregeneration_task_now = "§aL'état de pause de la tâche de pr
no_active_pregeneration_tasks_pause_unpause = "§eAucune tâche de prégénération active à suspendre ou reprendre."
no_active_pregeneration_task = "§eAucune tâche de prégénération active."
pregen = "§aPregen §6{world}§a : §6{value}/{value2}§a (§6{value3}%§a){value4}"
speed_s_eta_elapsed_method = "§aVitesse : §6overall {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s§a ETA: §6{eta}§a Elapsed: §6{elapsed}§a Method: §6{method}{failures}"
speed_s_eta_elapsed_method = "§aDébits : §6global {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s§a ETA : §6{eta}§a Écoulé : §6{elapsed}§a Méthode : §6{method}{failures}"
[iris.bukkit.commandwhat]
material = "Matériau : §a{value}"
@@ -787,9 +772,9 @@ console_must_name_biome_iris_edit_biome_key = "La console doit indiquer un biome
biome_lookup_failed = "La recherche de biome a échoué : {value}"
unknown_biome = "Biome inconnu : {key}"
this_dimension_is_not_generated_by_iris_2 = "Cette dimension n'a pas été générée par Iris."
console_must_name_region_iris_edit_region_key = "Console doit nommer une région: /iris edit region <key>"
console_must_name_region_iris_edit_region_key = "La console doit indiquer une région : /iris edit region <key>"
region_lookup_failed = "Échec de la recherche de région : {value}"
unknown_region = "Région inconnue: {key}"
unknown_region = "Région inconnue : {key}"
this_dimension_is_not_generated_by_iris_3 = "Cette dimension n'a pas été générée par Iris."
cannot_open_files_here = "Impossible d'ouvrir les fichiers ici : {value}"
cannot_find_file_perhaps_it_was_not_loaded_directly_from = "Impossible de trouver le fichier ; il n'a peut-être pas été chargé directement depuis un fichier."
@@ -806,10 +791,8 @@ is_not_generated_by_iris_2 = "{value} n'est pas généré par Iris."
cannot_evacuate_primary_world_there_is_nowhere_send_players = "Impossible d'évacuer le monde principal, car aucun autre monde ne peut accueillir les joueurs."
evacuated_player_s_from = "{count} joueur(s) évacué(s) de {value} vers {value2}."
set_debug = "Débogage défini sur : {to}"
hotloaded_settings = "Paramètres rechargés à chaud"
this_command_can_only_be_used_by_players_it_inspects = "Cette commande est réservée aux joueurs (elle inspecte l'objet que vous tenez)."
your_main_hand_is_empty = "Votre main principale est vide."
hand_x = "Main : {value} x{value2}"
this_command_can_only_be_used_by_players = "Cette commande ne peut être utilisée que par les joueurs."
this_dimension_is_not_generated_by_iris_4 = "Cette dimension n'a pas été générée par Iris."
this_dimension_is_not_generated_by_iris_5 = "Cette dimension n'a pas été générée par Iris."
@@ -826,17 +809,13 @@ iris_by_volmit_software_on_minecraft_iris_dimension_s = "Iris {value} par Volmit
loaded_dimensions_iris = "Dimensions chargées : {total} ({iris} Iris)"
this_command_can_only_be_used_by_players_2 = "Cette commande ne peut être utilisée que par les joueurs."
this_dimension_is_not_generated_by_iris_6 = "Cette dimension n'a pas été générée par Iris."
biome = "Biome : {value} ({value2})"
biome_lookup_failed_2 = "La recherche de biome a échoué : {value}"
region = "Région: {value} ({value2})"
region_lookup_failed_2 = "Échec de la recherche de région : {value}"
cave_biome = "Biome de la grotte: {value}"
cave_biome = "Biome de grotte : {value}"
cave_biome_lookup_failed = "Échec de la recherche du biome de grotte : {value}"
surface_block_y = "Bloc de surface: {value} (y={value2})"
position_chunk = "Position : {value} {value2} {value3} (chunk {value4},{value5})"
surface_block_y = "Bloc de surface : {value} (y={value2})"
this_command_can_only_be_used_by_players_it_inspects_2 = "Cette commande est réservée aux joueurs (elle inspecte le bloc que vous regardez)."
look_at_block_not_sky = "Regardez un bloc, pas le ciel."
block_y = "Bloc : {value} (y={value2})"
this_command_can_only_be_used_by_players_markers_render = "Cette commande est réservée aux joueurs (les marqueurs apparaissent comme des particules autour de vous)."
this_dimension_is_not_generated_by_iris_7 = "Cette dimension n'a pas été générée par Iris."
scanning_markers_around_you = "Recherche des marqueurs '{marker}' autour de vous..."
@@ -844,11 +823,10 @@ marker_scan_failed = "Échec de l'analyse des marqueurs : {value}"
found_nearby_marker_s = "{value} marqueur(s) proche(s) trouvé(s) ({marker})"
this_command_can_only_be_used_by_players_3 = "Cette commande ne peut être utilisée que par les joueurs."
this_dimension_is_not_generated_by_iris_8 = "Cette dimension n'a pas été générée par Iris."
unknown_biome_2 = "Biome inconnu: {key}"
unknown_biome_2 = "Biome inconnu : {key}"
this_command_can_only_be_used_by_players_4 = "Cette commande ne peut être utilisée que par les joueurs."
this_dimension_is_not_generated_by_iris_9 = "Cette dimension n'a pas été générée par Iris."
unknown_region_2 = "Région inconnue: {key}"
is_not_defined_dimension = "{value} n'est pas défini dans la dimension !"
unknown_region_2 = "Région inconnue : {key}"
this_dimension_is_not_generated_by_iris_10 = "Cette dimension n'a pas été générée par Iris."
is_not_configured_any_region_biome_object_placements_object_keys = "{key} n'est configuré dans aucun placement d'objets de région ou de biome ({value} clés d'objet chargées)."
this_command_can_only_be_used_by_players_object_key = "Cette commande est réservée aux joueurs. (La clé d'objet '{key}' a été résolue parmi {value} clés d'objet chargées)"
@@ -886,19 +864,15 @@ world_seed = "Graine du monde : {value}"
engine_seed_mixed = "Graine du moteur : {value} (mélangée : {value2})"
this_dimension_is_not_generated_by_iris_15 = "Cette dimension n'a pas été générée par Iris."
downloading_irisdimensions = "Téléchargement de IrisDimensions/{pack} ({downloadSource})..."
pack_installed_its_exact_dimension_types_custom_biomes_join_forced = "Pack '{pack}' installé. Ses types de dimension exacts et ses biomes personnalisés rejoindront le datapack Iris forcé au prochain redémarrage du serveur ; redémarrez avant de créer des mondes avec ce pack."
pack_download_failed_see_console = "Échec du téléchargement du pack {pack} ({downloadSource} ; consultez la console)."
this_dimension_is_not_generated_by_iris_16 = "Cette dimension n'a pas été générée par Iris."
generated_chunk_s_s = "Générés : {value} chunk(s), {value2}/s"
ms = " {value}: {value2}ms"
[iris.modded.moddedcommandhelp]
unknown_iris_help_section = "Inconnu Iris section d'aide: {normalized}"
[iris.modded.moddeddatapackcommands]
type_active_logical_pack_engine_not_started_pack_heights_unknown = "{dimensionId} : type={typeKey} actif={activeMin}..{activeMax} logique={value} (pack={value2}, moteur non démarré ; hauteurs du pack inconnues)"
type_active_logical_pack_wants_logical = "{dimensionId} : type={typeKey} actif={activeMin}..{activeMax} logique={value} | le pack '{value2}' demande {packMin}..{packMax} logique={packLogical} | {value3}{value4}"
warning_active_dimension_type_does_not_match_pack_iris_will = " WARNING: le type de dimension actif ne correspond pas au pack. Iris refusera de démarrer le moteur de ce monde au lieu de rogner le terrain. Exécutez /iris world enable <dimension> <pack> pour les nouveaux mondes ou /iris datapack install pour les dimensions Iris déjà chargées, puis redémarrez."
warning_active_dimension_type_does_not_match_pack_iris_will = " AVERTISSEMENT : le type de dimension actif ne correspond pas au pack. Iris refusera de démarrer le moteur de ce monde au lieu de rogner le terrain. Exécutez /iris world enable <dimension> <pack> pour les nouveaux mondes ou /iris datapack install pour les dimensions Iris déjà chargées, puis redémarrez."
no_iris_dimensions_are_loaded = "Aucune dimension Iris n'est chargée."
all_iris_dimension_s_match_their_pack_height_ranges = "Les {irisLevels} dimension(s) Iris correspondent aux plages de hauteur de leurs packs."
engine_not_started_cannot_derive_its_dimension_type_yet = "{value} : moteur non démarré ; son type de dimension ne peut pas encore être déterminé."
@@ -916,7 +890,7 @@ message_2 = " - {name}"
[iris.modded.moddeddevelopercommands]
message = " {value}"
network_scan_failed = "La numérisation réseau a échoué : {value}"
network_scan_failed = "Échec de l'analyse réseau : {value}"
[iris.modded.moddedgoldenhash]
goldenhash_scan_is_already_running = "Une analyse GoldenHash est déjà en cours."
@@ -933,7 +907,7 @@ this_dimension_is_not_generated_by_iris_objects_save_into = "Cette dimension n'e
hold_your_iris_wand_iris_wand = "Tenez votre baguette Iris. (/iris wand)"
no_area_selected_left_right_click_blocks_with_wand_first = "Aucune zone sélectionnée. Faites d'abord des clics gauche et droit sur des blocs avec la baguette."
invalid_object_name = "Nom de l'objet non valide : {nameRaw}"
selection_too_large_blocks_max = "Sélection trop grande: {volume} blocs (max {MAXSAVEVOLUME})."
selection_too_large_blocks_max = "Sélection trop grande : {volume} blocs (max {MAXSAVEVOLUME})."
file_already_exists_use_iris_object_save_overwrite = "Le fichier existe déjà. Utilisez /iris object save overwrite {name}"
failed_save_object = "Impossible d'enregistrer l'objet : {value}"
saved_objects_iob_x_x_block_s = "{value}/objects/{name}.iob enregistré : {w}x{h}x{d}, {value2} bloc(s){tileNote}"
@@ -951,22 +925,22 @@ ready_your_wand_iris_wand = "Préparez votre baguette. (/iris wand)"
you_are_not_looking_at_block = "Vous ne regardez pas un bloc."
position_set = "Position {value} définie sur {value2} {value3} {value4}"
this_command_can_only_be_used_by_players_3 = "Cette commande ne peut être utilisée que par les joueurs."
hold_your_wand = "Tiens ta baguette !"
hold_your_wand = "Tenez votre baguette !"
no_area_selected_2 = "Aucune zone sélectionnée."
selection_too_large_auto_select_blocks_max = "Sélection trop grande pour sélectionner automatiquement : {volume} blocs (max {MAXAUTOSELECTVOLUME})."
selection_too_large_auto_select_blocks_max = "Sélection trop grande pour la sélection automatique : {volume} blocs (max {MAXAUTOSELECTVOLUME})."
auto_select_complete = "Sélection automatique terminée : {value}"
unknown_object = "Objet inconnu : {key}"
object_size = "Taille de l'objet : {value} * {value2} * {value3}"
blocks_used = "Blocs utilisés : {value}"
blocks_object = "== Blocs dans l'objet =="
message_2 = " - {value} * {value2}"
other_block_state_s = "+ {remaining} autre(s) état(s) de bloc"
other_block_state_s = " + {remaining} autre(s) état(s) de bloc"
unknown_object_2 = "Objet inconnu : {key}"
current_object_size = "Taille actuelle de l'objet : {value} * {value2} * {value3}"
new_object_size = "Nouvelle taille d'objet : {value} * {value2} * {value3}"
object_has_no_load_file_cannot_persist_shrink = "L'objet n'a pas de fichier de chargement ; impossible de conserver la réduction."
failed_save_object_2 = "Impossible d'enregistrer l'objet {value} : {value2}"
invalid_reach = "Portée non valide: {token}"
invalid_reach = "Portée non valide : {token}"
no_objects_matched = "Aucun objet ne correspond à : {target}"
plausibilize_reach_queued_object_s = "Plausibilize [reach={reach}{value}] a mis {value2} objet(s) en file d'attente"
nothing_undo = "Rien à annuler."
@@ -1008,18 +982,18 @@ compat_none = "Le pack '{pack}' n'utilise aucun contenu absent de Minecraft {ver
compat_remedy = "Mettez le serveur à jour vers un Minecraft plus récent pour restaurer ce contenu, ou déclarez des replis (blockFallbacks de la dimension, backup du bloc)."
[iris.modded.moddedregen]
regen_is_already_running = "Un régen est déjà en marche."
regen_is_already_running = "Une régénération est déjà en cours."
[iris.modded.moddedstructurecommands]
this_dimension_is_not_generated_by_iris_run_this_from = "Cette dimension n'est pas générée par Iris. Exécutez ceci d'un Iris dimension pour que le pack puisse être résolu."
wrote_structure_index = "Indice de structure des mailles: {value}"
no_iris_structure_this_pack = "Pas de structure iris '{key}' dans ce pack"
structure_assembled_0_pieces_check_startpool = "Structure{key}' assemblés 0 pièces (vérifier startPool '{value}')"
this_dimension_is_not_generated_by_iris_run_this_from = "Cette dimension n'est pas générée par Iris. Exécutez cette commande depuis une dimension Iris pour que le pack puisse être résolu."
wrote_structure_index = "Index des structures écrit : {value}"
no_iris_structure_this_pack = "Aucune structure Iris '{key}' dans ce pack"
structure_assembled_0_pieces_check_startpool = "La structure '{key}' a assemblé 0 pièce (vérifiez startPool '{value}')"
structure_pieces_footprint_x_blocks_sample_seed_1234 = "Structure '{key}' : {value} pièces, emprise de {value2}x{value3} blocs (graine d'exemple 1234)"
this_command_can_only_be_used_by_players_structure_is = "Cette commande ne peut être utilisée que par les joueurs (la structure est assemblée à votre position)."
no_iris_structure_this_pack_2 = "Pas de structure iris '{key}' dans ce pack"
structure_assembled_0_pieces = "Structure{key}' assemblés 0 pièces"
place_failed_partial_changes_recorded_undo = "Lieu échoué: {value} (variations partielles enregistrées pour annuler)"
no_iris_structure_this_pack_2 = "Aucune structure Iris '{key}' dans ce pack"
structure_assembled_0_pieces = "La structure '{key}' a assemblé 0 pièce"
place_failed_partial_changes_recorded_undo = "Échec du placement : {value} (les modifications partielles ont été enregistrées pour pouvoir les annuler)"
placed_pieces_write_s_at_your_location_iris_object_undo = "'{key}' placé ({value} pièces, {value2} écriture(s){tileNote}) à votre position. Utilisez /iris object undo pour annuler."
[iris.modded.moddedstudiocommands]
@@ -1041,16 +1015,11 @@ this_dimension_is_not_generated_by_iris_specify_pack_name = "Cette dimension n'e
pack_not_found_under = "Le pack '{name}' est introuvable dans {value}"
provide_dimension_pack_iris_studio_open_pack_seed_2 = "Indiquez un pack de dimension : /iris studio open <pack> [seed]"
opening_studio_seed = "Ouverture de Studio pour '{pack}' (graine {seed})..."
pack_missing_downloading_irisdimensions = "Le pack '{pack}' manque ; téléchargement de IrisDimensions/{pack2}..."
pack_could_not_be_downloaded_check_name_try_iris_download = "Impossible de télécharger le pack '{pack}' ; vérifiez le nom et essayez /iris download {pack2}."
pack_has_no_dimensions_json = "Le pack '{pack}' ne contient pas dimensions/{pack2}.json"
studio_open_failed = "Impossible d'ouvrir Studio : {value}{errorMessage}"
studio_injection_failed = "Impossible d'injecter Studio : {value}{errorMessage}"
console_studio_open_now_runs_seed_transient_not_written_iris = "Studio de console ouvert : {dimensionId} exécute maintenant '{pack}' avec la graine {seed} (temporaire ; non écrit dans iris-dimensions.json et supprimé au redémarrage)."
enter_it_with_execute_run_tp_s_8_5_8 = "Entrez avec : /execute in {dimensionId} run tp @s 8.5 {surface} 8.5"
pregen_it_with_iris_pregen_start_radius = "Prégénérez avec : /iris pregen start <radius> {dimensionId}"
remove_it_with_iris_studio_close = "Supprimez-le avec : /iris studio close"
studio_injection_failed_2 = "Impossible d'injecter Studio : {value}{errorMessage}"
studio_open_now_runs_seed_use_iris_studio_close_when = "Studio ouvert : {dimensionId} exécute maintenant '{pack}' avec la graine {seed}. Utilisez /iris studio close une fois terminé."
you_do_not_have_open_studio_use_iris_studio_open = "Vous n'avez pas de Studio ouvert. Utilisez d'abord /iris studio open <pack>."
studio_close_failed = "Impossible de fermer Studio : {value}{errorMessage}"
@@ -1072,15 +1041,15 @@ created_project_at = "Projet '{name}' créé dans {value}"
edit_dimensions_json_rest_pack_vscode_workspace_with_json_schema = "Modifiez dimensions/{name}.json et le reste du pack. Un espace de travail VSCode avec autocomplétion par schémas JSON a été généré ; ouvrez-le ou relancez /iris studio vscode."
project_creation_failed = "Échec de la création du projet : {value}{errorMessage}"
packaging_dimension = "Empaquetage de la dimension '{dimKey}'..."
package_compiled = "Paquet compilé : {value}"
package_compiled = "Pack compilé : {value}"
packaging_failed = "Échec de l'empaquetage : {value}{errorMessage}"
this_command_can_only_be_used_by_players_sampling_is = "Cette commande est réservée aux joueurs (l'échantillonnage est centré sur votre position)."
this_dimension_is_not_generated_by_iris = "Cette dimension n'a pas été générée par Iris."
sampling_region_distribution_x_chunks_around_you = "Échantillonnage de la répartition des régions dans {value}x{value2} chunks autour de vous..."
rarity = "{key} : rareté={rarity} / {value}%"
region_sampling_failed = "Échec de l'échantillonnage des régions : {value}"
image_map_requires_iris_dimension = "Stand in an active Iris or Studio dimension before opening the Image Map Studio."
opening_image_map_studio_on_server_display = "Opening the Image Map Studio for {value} on the server display."
image_map_requires_iris_dimension = "Placez-vous dans une dimension Iris ou Studio active avant d'ouvrir Image Map Studio."
opening_image_map_studio_on_server_display = "Ouverture d'Image Map Studio pour {value} sur l'écran du serveur."
[iris.modded.moddedworldcommands]
required_pack_is_not_installed_install_then_restart = "Le pack requis '{pack}' n’est pas installé. Installez-le avec /iris download, puis redémarrez le serveur."
@@ -1095,7 +1064,7 @@ instead_is_now_configured_primary_world_players_vanilla_overworld_are = "À la p
iris_main_world_override_cleared_overworld_keeps_its_current_generator = "Le remplacement du monde principal Iris a été supprimé. L'overworld conserve son générateur actuel ; modifiez level-type dans server.properties et redémarrez pour le rétablir."
invalid_seed_use_number_random = "Graine non valide '{seedRaw}'. Utilisez un nombre ou 'random'."
pack_is_not_ready_yet_still_loading_validating_try_command = "Le pack '{pack}' n'est pas encore prêt (chargement ou validation en cours). Réessayez la commande dans un instant."
failed_write_server_properties_check_file_permissions_set_level_type = "Impossible d'écrire server.properties ; vérifiez les droits du fichier et définissez level-type manuellement."
failed_write_server_properties_check_file_permissions_set_level_type = "Impossible de mettre à jour server.properties (absent du répertoire de travail du serveur ou non modifiable) ; consultez le journal du serveur ou définissez level-type manuellement."
iris_main_world_set_preset_seed = "Le monde principal Iris est défini sur '{pack}' (preset {preset}, graine {value})."
server_properties_level_type_is_now_on_next_restart_overworld = "level-type dans server.properties vaut maintenant {preset}. Au prochain redémarrage, overworld, nether et end seront régénérés comme ce monde Iris."
player_data_inventories_advancements_stats_is_kept_existing_terrain_those = "Les données des joueurs (inventaires, progrès et statistiques) sont conservées ; le terrain existant de ces dimensions sera remplacé. Cette opération s'applique une seule fois."
@@ -1125,7 +1094,7 @@ replace_registry_not_ready = "Iris lit encore les dimensions de ce serveur. Rée
replace_installed_types = "Packs installés : {value}"
[iris.director.commanddatapack]
"director.download_manage_external_datapack_imports_modrinth" = "Télécharger et gérer les importations externes de datapacks (Modrinth)"
"director.download_manage_external_datapack_imports_modrinth" = "Télécharger et gérer les importations externes de datapacks"
"director.download_update_every_datapack_listed_pack_dimension_s_datapackimports_install_it_into" = "Télécharger ou mettre à jour tous les datapacks répertoriés dans 'datapackImports' d'une dimension du pack, puis les installer dans le monde afin que leurs structures soient enregistrées comme dans vanilla"
"param.restart_server_when_new_datapacks_are_installed_required_new_structures_register_generate" = "Redémarrer le serveur lorsque de nouveaux datapacks sont installés (nécessaire pour enregistrer et générer leurs structures)"
"director.list_configured_datapack_imports_their_installed_versions" = "Répertorier les importations de datapacks configurées et leurs versions installées"
@@ -1182,7 +1151,7 @@ replace_installed_types = "Packs installés : {value}"
"param.radius_chunks_around_center_2" = "Rayon en chunks autour du centre"
"param.center_chunk_x_2" = "Chunk central X"
"param.center_chunk_z_2" = "Chunk central Z"
"param.delete_mantle_data_scan_area_first_full_regeneration_from_scratch" = "Supprime d'abord l'intégralité du dossier Mantle du monde afin de tout régénérer depuis zéro. Ne se limite pas à la zone analysée"
"param.delete_mantle_data_scan_area_first_full_regeneration_from_scratch" = "Supprimer d'abord l'intégralité du dossier Mantle du monde afin de tout régénérer depuis zéro"
"param.concurrent_chunk_generations_1_strictly_serial_order_dependence_testing" = "Générations de chunks simultanées ; 1 = exécution strictement séquentielle pour tester la dépendance à l'ordre"
"param.also_dump_full_per_chunk_non_air_blockstates_offline_diffing" = "Vider également tous les états de blocs hors air de chaque chunk pour une comparaison hors ligne"
@@ -1342,7 +1311,7 @@ replace_installed_types = "Packs installés : {value}"
"director.capture_igendata_chunk_report_nearby_chunks" = "Capturer un rapport de chunks IGenData pour les chunks proches"
[iris.director.commandwhat]
"director.iris_what" = "Qu'y a-t-il dans Iris ?"
"director.iris_what" = "Iris What ?"
"director.what_is_my_hand" = "Qu'est-ce que j'ai dans la main ?"
"director.what_biome_am_i" = "Dans quel biome suis-je ?"
"director.what_region_am_i" = "Dans quelle région suis-je ?"
@@ -1393,28 +1362,12 @@ hotloaded = "Moteur rechargé à chaud"
[iris.runtime.job]
completed = "{job} terminé en {duration}"
scanning_selection = "Analyse de la sélection"
loading_chunks = "Chargement des chunks"
searched_chunks = "{chunks} chunks recherchés"
compile = "Compiler"
saving_object = "Enregistrement de l'objet"
downloading = "Téléchargement"
extracting = "Extraction"
installing = "Installation"
[iris.runtime.compile]
iob_empty = "- IOB {file} contient 0 bloc !"
iob_empty_hover = "Erreur :\n{path}"
iob_not_3d = "- IOB {file} n'est pas en 3D !"
iob_not_3d_hover = "Erreur :\n{path}\nLa largeur, la hauteur ou la profondeur est nulle (format incorrect)"
json_error = "- Erreur JSON {file}"
json_error_hover = "Erreur :\n{path}\n{error}"
loader_not_found = "Chargeur introuvable pour {path}"
[iris.runtime.pack]
already_exists = "Le pack existe déjà !"
[iris.runtime.tree_plausibilize]
dry_suffix = ", DRY"
dry_suffix = ", SIMULATION"
skip_load = "ignorer {object} : échec du chargement"
result = "{object} : +{wood} bois ({branches} branches), {converted} feuilles->bois, ~{distances} distances"
result_pinned = "{object} : +{wood} bois ({branches} branches), {converted} feuilles->bois, ~{distances} distances, !{pinned} fixées"
@@ -1435,11 +1388,11 @@ totals = "Totaux : +{wood} bois ({branches} branches), {converted} feuilles->boi
position_set = "Position {position} définie sur {x}, {y}, {z}"
[iris.runtime.dust]
biome_loading = "Les informations enregistrées du biome sont en cours de chargement. Réessaie de révéler ce bloc dans quelques instants."
biome_loading = "Les informations enregistrées du biome sont en cours de chargement. Réessayez de révéler ce bloc dans quelques instants."
iris_world_required = "Cette dimension n'a pas été générée par Iris."
found_object = "Objet trouvé : {object}"
revealed = "{count} bloc(s) de {object} révélés"
revealed_capped = "{count} bloc(s) de {object} révélés (limite atteinte)"
revealed = "{count} bloc(s) de {object} révélé(s)"
revealed_capped = "{count} bloc(s) de {object} révélé(s) (limite atteinte)"
header = "--- Poussière d'Iris @ {x}, {y}, {z} ---"
block = "Bloc : {block}"
"position.above" = "Position : +{offset} AU-DESSUS de la surface (Y de surface={surfaceY})"
@@ -1456,7 +1409,6 @@ column_object_none = "Objet de colonne : {detail}"
column_none = "aucun dans un rayon de 64 (décorateur ou terrain, PAS le pilotis d'un objet)"
"column.above" = "{object} @Y={y} (au-dessus)"
"column.below" = "{object} @Y={y} (en dessous)"
surface_biome = "Biome de surface : {biome}"
surface_biome_detail = "Biome de surface : {biome} ({derivative})"
biome_at_y = "Biome @Y : {biome}"
cave_biome = "Biome de grotte/Mantle : {biome}"
@@ -1465,7 +1417,7 @@ region = "Région : {region} ({name})"
objects_in_chunk = "Objets du chunk : {objects}"
copy_button = "[Cliquer pour copier ces statistiques]"
copy_hover = "Copier les statistiques du bloc dans le presse-papiers"
reveal_failed = "Object reveal failed; see the console for details."
reveal_failed = "Échec de la révélation de l'objet ; consultez la console pour plus de détails."
[iris.runtime.pregen]
starting = "Démarrage de la pregen Iris..."
@@ -1476,8 +1428,8 @@ eta_fragment = " ETA {eta}"
failed_fragment = " échecs {failed}"
"status.context" = "Dimension {dimension} · Méthode {method}"
"status.progress" = "{percent}%"
"status.chunks" = "Chunks {generated}/{total} · Vitesse overall {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s"
"status.chunks_failed" = "Chunks {generated}/{total} · Vitesse overall {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s · Failed {failed}"
"status.chunks" = "Chunks {generated}/{total} · Débits : global {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s"
"status.chunks_failed" = "Chunks {generated}/{total} · Débits : global {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s · Échecs {failed}"
"status.time" = "ETA {eta} · Écoulé {elapsed}"
"status.time_paused" = "ETA {eta} · Écoulé {elapsed} · EN PAUSE"
"button.pause" = "Pause/Reprise"
@@ -1516,7 +1468,6 @@ failed_fragment = " échecs {failed}"
"commandpack.path.restored" = "restauré"
"commandpack.path.file" = "fichier"
"commandpack.no_validation_result_run_iris_pack_validate" = "§eAucun résultat de validation pour '{pack}'. Exécutez /iris pack validate {pack2}."
"commandpack.validation_failed" = "§cÉchec de la validation de '{name}' : {error}"
"commandpack.pack_is_loadable_warnings" = "§aLe pack '{packName}' peut être chargé.§7 (avertissements={size})"
"commandpack.pack_is_broken" = "§cLe pack '{packName}' est CASSÉ :"
"commandpack.message" = "§c - {reason}"
@@ -1537,7 +1488,7 @@ failed_fragment = " échecs {failed}"
"bulkstructureimporter.skip" = "§e[ignoré] {value}: {message}"
"bulkstructureimporter.fail_4" = "§c[échec] {value}: {error}"
"bulkstructureimporter.single_template_structures_built_skipped_failed" = "§aStructures à modèle unique : §f{imported}§a créées, §f{skipped}§a ignorées, §f{failed}§a échecs."
"bulkstructureimporter.failed_enumerate_structure_templates_via_server_resourcemanager" = "§cImpossible d'énumérer les modèles de structure via le serveur ResourceManager: {e}"
"bulkstructureimporter.failed_enumerate_structure_templates_via_server_resourcemanager" = "§cImpossible d'énumérer les modèles de structure via le ResourceManager du serveur : {e}"
"bulkstructureimporter.no_structure_templates_were_found_under_structure_resource_path" = "§eAucun modèle de structure trouvé dans le chemin de ressources 'structure'."
"bulkstructureimporter.importing_structure_templates_mode" = "§aImportation de §f{total}§a modèles de structures (mode={mode})..."
"bulkstructureimporter.fail_invalid_key_2" = "§c[échec] {keyString}: clé invalide"
@@ -1576,20 +1527,15 @@ failed_fragment = " échecs {failed}"
"featureimporter.feature_import_complete_features_written_skipped_failed_total" = "§aImportation des fonctionnalités terminée : §f{imported}§a écrites, §f{skipped}§a ignorées, §f{failed}§a en échec (§f{total}§a au total)."
"featureimporter.could_not_create_scratch_world_feature_import_skipping_tree_object_pass" = "§cImpossible de créer le monde temporaire pour importer les fonctionnalités ({error}) ; la phase des arbres et objets sera ignorée."
"irisconverter.no_schematic_files_convert_found" = "Aucun fichier schematic à convertir trouvé dans {path}"
"irisconverter.converted" = "§aConversion : {name} -> {value} dans {value2}"
"irisconverter.converted" = "§aConversion : {name} -> {value} en {value2}"
"irisconverter.converted_2" = "§aConversion : {name} -> {value}"
"irisconverter.failed_save" = "§cÉchec de l'enregistrement : {name}"
"irisconverter.failed_convert" = "§cImpossible de convertir : {name}"
"irisconverter.converted_3" = "§7Converti : {get} dans {value}"
"irisconverter.converted_3" = "§7Converti : {get} en {value}"
"irisconverter.some_schematics_failed_convert_check_console_details" = "§cCertains schematics n'ont pas pu être convertis. Consultez la console pour plus de détails."
"studiosvc.pack_copy_requires_async_thread" = "§cIris refused to copy the world pack on the Bukkit primary thread."
"studiosvc.pack_install_failed" = "§cFailed to install world pack §f{dimension}§c: {error}"
"studiosvc.pack_copy_requires_async_thread" = "§cIris a refusé de copier le pack du monde sur le thread principal de Bukkit."
"studiosvc.pack_install_failed" = "§cImpossible d'installer le pack du monde §f{dimension}§c : {error}"
"studiosvc.looking_package" = "Recherche du pack : {type}"
"studiosvc.found_iris_folder" = "{type}.iris trouvé dans le dossier {WORKSPACENAME}"
"studiosvc.found_dimension_folder_repackaging" = "Dimension {type} trouvée dans le dossier {WORKSPACENAME}. Nouvel empaquetage"
"studiosvc.can_t_find_dimensions_folder_this_pack_failed" = "{name} est introuvable dans le dossier dimensions de ce pack. Échec !"
"studiosvc.can_t_load_dimension_failed" = "Impossible de charger la dimension. Échec !"
"studiosvc.type_installed" = "Type {name} installé. "
"studiosvc.failed_open_studio_world" = "Impossible d'ouvrir le monde Studio : {error}"
"studiosvc.cannot_open_studio_pack_has_blocking_errors" = "Impossible d'ouvrir Studio '{dimm}' : le pack contient des erreurs bloquantes :"
"studiosvc.message" = " - {reason}"
@@ -1600,26 +1546,23 @@ failed_fragment = " échecs {failed}"
"studiosvc.couldn_t_find_pack_create_new_dimension_from" = "Impossible de trouver le pack avec lequel créer une nouvelle dimension."
"studiosvc.missing_imported_dimension_file" = "Fichier de dimension importée manquant"
"studiosvc.importing_into_new_project" = "Importation de {downloadable} dans le nouveau projet {s}"
"objectstudiosaveservice.object_studio_no_cell_under_click_x_z" = "§7Object Studio : aucune cellule sous clic (x={x} z={z})."
"objectstudiosaveservice.object_studio_no_cell_under_click_x_z" = "§7Object Studio : aucune cellule sous le clic (x={x} z={z})."
"objectstudiosaveservice.object_studio_saving_x_x" = "§bObject Studio : enregistrement de §f{pack}/{key}§7 ({w}x{h}x{d})"
"objectstudiosaveservice.object_studio_no_changes" = "§7Object Studio : aucun changement pour {pack}/{key}."
"objectstudiosaveservice.object_studio_empty_cell_nothing_write" = "§7Object Studio : cellule vide {pack}/{key} (rien à écrire)."
"objectstudiosaveservice.object_studio_no_target_file" = "§cObject Studio : aucun fichier cible pour {pack}/{key}."
"objectstudiosaveservice.object_studio_saved" = "§aObject Studio : enregistrement terminé pour §f{pack}/{key}"
"objectstudiosaveservice.object_studio_save_failed" = "§cObject Studio : l'enregistrement a échoué {pack}/{key} ({error})"
"irisproject.could_not_load_dimension" = "Impossible de charger la dimension \"{value}\""
"irisproject.could_not_get_dimension_loader" = "Impossible d'obtenir le chargeur de dimensions"
"objectstudiosaveservice.object_studio_save_failed" = "§cObject Studio : échec de l'enregistrement de {pack}/{key} ({error})"
"irisproject.studio_open_failed" = "§cImpossible d'ouvrir Studio : {error}"
"irisproject.studio_open_failed_2" = "§cImpossible d'ouvrir Studio."
"irisproject.studio_ready" = "§aStudio prêt §7({value})"
"irisproject.studio" = "§6Studio §b{bar} §e{percent}%§7 {currentStage}§8 ({value})"
"irisproject.serializing_objects" = "Sérialisation des objets"
"irisproject.wrote_another_objects" = "{g} objets supplémentaires écrits"
"irisproject.package_compiled" = "Pack compilé !"
"irisproject.failed" = "Échec !"
"irisengine.total" = "Total : §l§f{value}"
"irisengine.engine" = " Moteur §n§a{i}§r: §l§f{value}"
"irisengine.details" = "Détails: "
"irisengine.details" = "Détails : "
"irisengine.message" = " {befb}{num}{afb}: §l§f{value}"
"enginebukkitops.is_not_defined_dimension" = "§c{name} n'est pas défini dans la dimension !"
"enginebukkitops.could_not_find_within_search_range" = "§cImpossible de trouver {message} dans le rayon de recherche."
@@ -1629,9 +1572,6 @@ failed_fragment = " échecs {failed}"
"iristoolbelt.you_have_been_evacuated_from_this_world_2" = "Vous avez été évacué de ce monde. {m}"
"serverconfigurator.there_are_some_iris_packs_that_have_custom_biomes_them" = "Certains packs Iris contiennent des biomes personnalisés"
"serverconfigurator.you_need_restart_your_server_use_these_packs" = "Vous devez redémarrer votre serveur pour utiliser ces packs."
"virtualcommand.message" = "- §f{i}"
"virtualcommand.insufficient_permissions" = "Autorisations insuffisantes"
"mortarcommand.parameters_ignored" = "Paramètres ignorés: {m}"
"commandpack.compat_header" = "§ePack '{pack}' : contenu indisponible sur Minecraft {version}"
"commandpack.compat_none" = "§aLe pack '{pack}' n'utilise aucun contenu absent de Minecraft {version}."
"commandpack.compat_remedy" = "§7Mettez le serveur à jour vers un Minecraft plus récent pour restaurer ce contenu, ou déclarez des replis (blockFallbacks de la dimension, backup du bloc)."
@@ -1639,7 +1579,6 @@ failed_fragment = " échecs {failed}"
"commandpack.update_world_staged" = "§a{pack} v{version} préparé pour le monde '{world}'. Un redémarrage propre activera le pack avec une transition du terrain."
"commandpack.update_world_unchanged" = "§aLe monde '{world}' utilise déjà {pack} v{version} avec les mêmes paramètres de génération. Aucun redémarrage nécessaire."
[iris.runtime.studio]
opening = "§6Studio §bOUVERTURE"
opening_progress = "§6Studio §bOUVERTURE§7 {percent}%"
@@ -1664,30 +1603,30 @@ ready_progress = "§6Studio §aPRÊT§7 100%"
[iris.runtime.world_create]
teleport_failed = "§eLe monde a été créé, mais la téléportation automatique a échoué. Essayez /iris teleport world={world}"
"lifecycle.action" = "{bar}§7 §e{percent}%§7 | §f{stage}{detail}§8 {elapsed}"
"lifecycle.action.failed" = "{bar}§7 §cFAILED§7 | §f{stage}{detail}§8 {elapsed}"
"lifecycle.action.ready" = "{bar}§7 §a100%§7 | §aWorld ready§8 {elapsed}"
"lifecycle.console" = "§6World §b{world} {bar} §e{percent}%§7 {stage}{detail}§8 ({elapsed})"
"lifecycle.console.failed" = "§6World §b{world}§7 | §ccreation failed§8 after {elapsed}"
"lifecycle.console.ready" = "§6World §b{world}§7 | §aready§8 in {elapsed}"
"stage.initializing" = "Initializing"
"stage.resolve_dimension" = "Resolving dimension"
"stage.validate_pack" = "Validating pack"
"stage.prepare_world_pack" = "Preparing world pack"
"stage.install_datapacks" = "Installing datapacks"
"stage.prepare_generator" = "Preparing generator"
"stage.create_world" = "Generating spawn"
"stage.register_world" = "Registering world"
"stage.teleport_player" = "Entering world"
"stage.pregenerate" = "Pregenerating"
"stage.finalize" = "Finalizing"
"stage.complete" = "World ready"
"lifecycle.action.failed" = "{bar}§7 §cÉCHEC§7 | §f{stage}{detail}§8 {elapsed}"
"lifecycle.action.ready" = "{bar}§7 §a100%§7 | §aMonde prêt§8 {elapsed}"
"lifecycle.console" = "§6Monde §b{world} {bar} §e{percent}%§7 {stage}{detail}§8 ({elapsed})"
"lifecycle.console.failed" = "§6Monde §b{world}§7 | §céchec de la création§8 après {elapsed}"
"lifecycle.console.ready" = "§6Monde §b{world}§7 | §aprêt§8 en {elapsed}"
"stage.initializing" = "Initialisation"
"stage.resolve_dimension" = "Résolution de la dimension"
"stage.validate_pack" = "Validation du pack"
"stage.prepare_world_pack" = "Préparation du pack du monde"
"stage.install_datapacks" = "Installation des datapacks"
"stage.prepare_generator" = "Préparation du générateur"
"stage.create_world" = "Génération du point d'apparition"
"stage.register_world" = "Enregistrement du monde"
"stage.teleport_player" = "Entrée dans le monde"
"stage.pregenerate" = "Prégénération"
"stage.finalize" = "Finalisation"
"stage.complete" = "Monde prêt"
"pregen.action" = "{bar}§7 §e{percent}%§7 | §fPrégénération"
"pregen.console" = "§6Prégénération §e{percent}%"
[iris.runtime.world_replace]
start = "§ePréparation du remplacement de {world} par Iris. Le monde actuel reste actif jusqu’au redémarrage."
progress = "§eRemplacement de {world} : {stage} ({elapsed}s écoulées)"
"stage.datapacks" = "Vérification des packs de données de la dimension"
"stage.datapacks" = "Vérification des datapacks de la dimension"
"stage.seed" = "Préparation de la graine du remplacement"
"stage.pack" = "Copie et validation du pack de la dimension"
"stage.players" = "Enregistrement de la protection à l’entrée des joueurs"
@@ -1731,7 +1670,7 @@ match = "GOLDEN MATCH : {current}/{golden} chunks, combiné={hash}"
mismatch = "GOLDEN MISMATCH : {mismatches}/{chunks} chunks diffèrent."
mismatch_chunk = " chunk {chunk}"
missing_in_golden = "{chunk} (absent de golden)"
mismatch_more = " ... et {count} plus"
mismatch_more = " ... et {count} de plus"
current_written = "Hashes actuels écrits dans {file}"
"diag.stable" = "Répétition de génération STABLE, réinitialisation de Mantle {mantleStatus} -> {file}"
"diag.unstable" = "Répétition de génération INSTABLE ({diffs}+ différences de blocs), réinitialisation de Mantle {mantleStatus} -> {file}"
@@ -1769,7 +1708,6 @@ downloading = "Téléchargement de {url}"
unpacking = "Décompression de {repository}"
unpack_failed = ["Un problème est survenu pendant la décompression. Vérifiez les points suivants :", "1. Votre connexion Internet fonctionne-t-elle ?", "2. Le téléchargement est-il corrompu ?", "3. Essayez de supprimer le dossier */plugins/iris/packs puis téléchargez à nouveau.", "4. Téléchargez le pack depuis le dépôt GitHub : https://github.com/IrisDimensions/overworld", "5. Contactez l'assistance (si aucune autre option ne fonctionne)"]
no_extracted_files = "Aucun fichier n'a été extrait du fichier zip."
home_directory_error = "Erreur lors de la recherche du dossier personnel. Le nom du fichier contient-il des caractères non textuels ?"
invalid_archive_format = "Format non valide. Le dossier racine est absent ou il y a trop de dossiers."
no_dimension_file = "Aucun fichier de dimension trouvé dans le fichier zip extrait."
check_github = "Vérifiez qu'il est présent sur GitHub et signalez-le à l'équipe !"
@@ -1787,7 +1725,6 @@ validated = "Le pack '{pack}' a été validé."
"close_studio" = "Fermez le projet Studio actif avant de remplacer un pack installé."
"backup_retained" = "Ancien pack sauvegardé dans {path}."
[iris.client.vision]
title = "Iris Vision"
connecting = "Connexion au serveur Iris..."
@@ -1802,14 +1739,13 @@ dimension_pack = "{dimension} pack {pack}"
[iris.client.create]
structures_required_title = "Iris nécessite Générer des structures"
structures_required_body = "Iris place ses propres structures pendant l'étape de génération des structures et refuse de charger un monde créé avec Générer des structures désactivé. Réactive Générer des structures ou choisis un autre type de monde."
structures_required_body = "Iris place ses propres structures pendant l'étape de génération des structures et refuse de charger un monde créé avec Générer des structures désactivé. Réactivez Générer des structures ou choisissez un autre type de monde."
[iris.client.toast]
studio_hotload = "Rechargement à chaud de Studio"
changed_files = { other = "{count} fichiers", one = "{count} fichier" }
reload_failed = "échec du rechargement"
reloaded = "rechargé"
pack_failed = "échec de {pack}"
[iris.client.what]
title = "Iris What"
@@ -1836,7 +1772,7 @@ title = "§aIris"
speed = "§aVitesse§7: {speed}/s {duration}"
cache = "§bCache§7: {count}"
mantle = "§bMantle§7: {count}"
carving = "§dSculpture§7: {state}"
carving = "§dCreusement§7: {state}"
region = "§bRégion§7: {region}"
biome = "§bBiome§7: {biome}"
biome_loading = "Chargement"
@@ -1925,10 +1861,10 @@ status = "{name} | X: {x} Z: {z} | Zoom : {zoom} | Valeur : {value} | {
[iris.desktop.pregen]
chunk_coordinates = "Chunk X {x} · Z {z}"
window_hint = "La génération continue après la fermeture de cette fenêtre."
initializing = "Initialisation..."
title = "Vue de pregen"
initializing = "Préparation de la génération"
title = "Prégénération"
method_pending = "En attente"
paused = "EN PAUSE"
paused = "En pause"
resume_hint = "Appuyez sur P pour reprendre"
pause_hint = "Appuyez sur P pour mettre en pause"
method = "Méthode de génération : {method}"
@@ -1963,114 +1899,114 @@ ready = "Prêt"
existing = "Existant"
network = "Réseau"
terrain_hint = "Les chunks terminés affichent les couleurs du terrain"
grid = "Grid"
grid_hint = "Show chunk and region borders (G)"
fit = "Reset view"
fit_hint = "Fit the whole generation area (R)"
zoom_in = "Zoom in (+)"
zoom_out = "Zoom out (-)"
grid = "Grille"
grid_hint = "Afficher les bordures des chunks et des régions (G)"
fit = "Réinitialiser la vue"
fit_hint = "Afficher toute la zone de génération (R)"
zoom_in = "Zoom avant (+)"
zoom_out = "Zoom arrière (-)"
zoom = "Zoom {zoom}"
shortcuts = "Shortcuts"
shortcuts_hint = "Show mouse and key shortcuts (/)"
navigation_hint = "Drag to pan · Scroll to zoom · Hover to inspect chunks"
shortcut_details = "Drag or arrow keys: pan\nScroll or + / -: zoom\nR or \\: fit generation area\nG: chunk and region grid\nP: pause or resume generation\n/ or Escape: close shortcuts"
shortcuts = "Raccourcis"
shortcuts_hint = "Afficher les raccourcis souris et clavier (/)"
navigation_hint = "Glisser pour déplacer · Molette pour zoomer · Survoler pour inspecter les chunks"
shortcut_details = "Glisser ou touches fléchées : déplacer\nMolette ou + / - : zoomer\nR ou \\ : afficher toute la zone de génération\nG : grille des chunks et des régions\nP : mettre en pause ou reprendre la génération\n/ ou Échap : fermer les raccourcis"
[iris.runtime.what]
material = "Material: {material}"
full_state = "Full: {state}"
item_count = "Count: {count}"
iris_biome = "Iris biome: {biome} ({name})"
derivative_biome = "Derivative biome: {biome}"
native_biome = "Registered biome: {biome} (ID: {id})"
non_iris_biome = "Non-Iris biome: {biome} (ID: {id})"
iris_region = "Iris region: {region} ({name})"
position = "Position: {x}, {y}, {z} (chunk {chunkX}, {chunkZ})"
object = "Iris object: {object}"
block_entity = "Block entity: {type}"
loot_table = "Loot table: {loot}"
spawner_entity = "Spawner entity: {entity}"
"flag.solid" = "solid"
"flag.fluid" = "fluid"
"flag.water" = "water"
"flag.waterlogged" = "waterlogged"
"flag.storage" = "storage (loot capable)"
"flag.lit" = "lit"
"flag.foliage" = "foliage"
"flag.plantable_foliage" = "plantable foliage"
"flag.decorant" = "decorant"
"flag.ore" = "ore"
"flag.block_entity" = "block entity"
material = "Matériau : {material}"
full_state = "Complet : {state}"
item_count = "Nombre : {count}"
iris_biome = "Biome Iris : {biome} ({name})"
derivative_biome = "Biome dérivé : {biome}"
native_biome = "Biome enregistré : {biome} (ID : {id})"
non_iris_biome = "Biome non-Iris : {biome} (ID : {id})"
iris_region = "Région Iris : {region} ({name})"
position = "Position : {x}, {y}, {z} (chunk {chunkX}, {chunkZ})"
object = "Objet Iris : {object}"
block_entity = "Entité de bloc : {type}"
loot_table = "Table de butin : {loot}"
spawner_entity = "Entité du générateur de créatures : {entity}"
"flag.solid" = "solide"
"flag.fluid" = "fluide"
"flag.water" = "eau"
"flag.waterlogged" = "immergé"
"flag.storage" = "stockage (prend en charge le butin)"
"flag.lit" = "éclairé"
"flag.foliage" = "feuillage"
"flag.plantable_foliage" = "feuillage plantable"
"flag.decorant" = "décoratif"
"flag.ore" = "minerai"
"flag.block_entity" = "entité de bloc"
[iris.runtime.world]
height_range = "World height: {minY} to {maxY}"
height_total = "Total height: {height}"
height_range = "Hauteur du monde : de {minY} à {maxY}"
height_total = "Hauteur totale : {height}"
[iris.desktop.imagemap]
title = "Image Map Studio"
preset = "Preset:"
load = "Load"
import_png = "Import PNG"
replace_png = "Replace PNG"
preview = "Preview"
export = "Export to active pack"
metadata = "Source metadata"
resource = "Resource binding"
coordinates = "Coordinates and sampling"
binding_key = "Binding key"
map_key = "Map key"
image_key = "Image key"
preset = "Préréglage :"
load = "Charger"
import_png = "Importer un PNG"
replace_png = "Remplacer le PNG"
preview = "Aperçu"
export = "Exporter vers le pack actif"
metadata = "Métadonnées de la source"
resource = "Liaison de ressource"
coordinates = "Coordonnées et échantillonnage"
binding_key = "Clé de liaison"
map_key = "Clé de la carte"
image_key = "Clé d'image"
type = "Type"
application = "Application"
blocks_per_pixel = "Blocks per pixel"
origin_x = "World origin X"
origin_z = "World origin Z"
source_origin_x = "Source origin X"
source_origin_z = "Source origin Z"
blocks_per_pixel = "Blocs par pixel"
origin_x = "Origine X du monde"
origin_z = "Origine Z du monde"
source_origin_x = "Origine X de la source"
source_origin_z = "Origine Z de la source"
rotation = "Rotation"
mirror_x = "Mirror X"
mirror_z = "Mirror Z"
sampling = "Sampling"
out_of_bounds = "Out of bounds"
alpha = "Alpha policy"
fallback_value = "Fallback value"
fallback_target = "Fallback target"
minimum_height = "Minimum height"
maximum_height = "Maximum height"
vertical_offset = "Vertical offset"
clamp = "Clamp height"
inverted = "Invert values"
curve_exponent = "Curve exponent"
smoothing_radius = "Smoothing radius"
threshold = "Threshold"
falloff = "Falloff"
color_tolerance = "Raw sRGB tolerance"
unknown_color = "Unknown color"
add_color = "Add legend color"
remove_color = "Remove selected"
composed_masks = "Composed masks"
add_mask = "Add mask binding"
height = "Height interpretation"
mask = "Mask interpretation"
color_map = "Color legend"
overlays = "World overlays"
chunks = "16-block chunks"
regions = "512-block regions"
boundary = "World boundary"
coverage = "Source coverage"
mirror_x = "Miroir X"
mirror_z = "Miroir Z"
sampling = "Échantillonnage"
out_of_bounds = "Hors limites"
alpha = "Gestion de l'alpha"
fallback_value = "Valeur de repli"
fallback_target = "Cible de repli"
minimum_height = "Hauteur minimale"
maximum_height = "Hauteur maximale"
vertical_offset = "Décalage vertical"
clamp = "Limiter la hauteur"
inverted = "Inverser les valeurs"
curve_exponent = "Exposant de la courbe"
smoothing_radius = "Rayon de lissage"
threshold = "Seuil"
falloff = "Atténuation"
color_tolerance = "Tolérance sRGB brute"
unknown_color = "Couleur inconnue"
add_color = "Ajouter une couleur de légende"
remove_color = "Supprimer la sélection"
composed_masks = "Masques composés"
add_mask = "Ajouter une liaison de masque"
height = "Interprétation de la hauteur"
mask = "Interprétation du masque"
color_map = "Légende des couleurs"
overlays = "Superpositions du monde"
chunks = "Chunks de 16 blocs"
regions = "Régions de 512 blocs"
boundary = "Limite du monde"
coverage = "Couverture de la source"
diagnostics = "Diagnostics"
ready = "Ready"
no_source = "Import a PNG source to begin."
loading = "Loading preset..."
load_failed = "Preset load failed"
previewing = "Compiling preview..."
preview_valid = "Runtime compiler validation passed."
preview_failed = "Preview failed"
exporting = "Validating and exporting..."
exported = "Exported image map, PNG, and dimension binding atomically."
export_failed = "Export failed"
source = "Source pixels"
interpreted = "Runtime interpretation"
no_preview = "Compile a valid preview to inspect world output."
ready = "Prêt"
no_source = "Importez une source PNG pour commencer."
loading = "Chargement du préréglage..."
load_failed = "Échec du chargement du préréglage"
previewing = "Compilation de l'aperçu..."
preview_valid = "La validation par le compilateur d'exécution a réussi."
preview_failed = "Échec de l'aperçu"
exporting = "Validation et export..."
exported = "Carte d'image, PNG et liaison de dimension exportés de manière atomique."
export_failed = "Échec de l'export"
source = "Pixels source"
interpreted = "Interprétation à l'exécution"
no_preview = "Compilez un aperçu valide pour inspecter le résultat dans le monde."
preview_status = "X {x} Z {z} | {value} | {scale} blocks/pixel"
[language.menu]
@@ -2088,9 +2024,9 @@ edit_description = "Ouvrez l’éditeur de messages pour chaque langue."
select_description = "Cliquez pour sélectionner cette langue."
remove_personal_description = "Supprimez votre choix de langue personnel."
no_controls = "Aucune option de langue ne vous est accessible."
command = "Commande: {command}"
command = "Commande : {command}"
selected = "sélectionné"
all-volmit-plugins = "Tous les plugins Volmit"
all-volmit-plugins = "tous les plugins Volmit"
[language.error]
stopping = "La sélection de la langue est indisponible pendant que le plugin s'arrête."
@@ -2105,18 +2041,27 @@ server-locale-required = "Choisissez un code de langue comme en_US pour la langu
unavailable-for-all = "La langue {locale} n’est pas disponible pour tous les plugins sélectionnés."
[language.usage]
editor = "Utilisation: /{command} language server edit [locale]"
selection = "Utilisation: /{command} language self [locale|reset] or server [locale]"
volmit-selection = "Utilisation: /volmit plugins languages [locale]"
editor = "Utilisation : /{command} language server edit [locale]"
selection = "Utilisation : /{command} language self [locale|reset] ou server [locale]"
volmit-selection = "Utilisation : /volmit plugins languages [locale]"
update = "Utilisation : /{command} language update"
[language.selection]
preparing = "Préparation de la langue {locale} pour {target}..."
save-failed = "{plugin} : impossible d’enregistrer le choix de langue ; consultez la console du serveur."
english-fallback = "{plugin} : {locale} est indisponible ; l’anglais (en_US) est utilisé."
personal-selected = "{plugin}: votre langue est maintenant {locale}."
server-selected = "{plugin}: la langue du serveur est maintenant {locale}."
personal-selected = "{plugin} : votre langue est maintenant {locale}."
server-selected = "{plugin} : la langue du serveur est maintenant {locale}."
server-default-selected = "{plugin} : votre langue suit désormais la langue par défaut du serveur."
[language.update]
checking = "{plugin} : vérification des modifications du dépôt de langues..."
unchanged = "{plugin} : les langues installées correspondent déjà au dépôt."
cooldown = "{plugin} : le dépôt de langues a été vérifié récemment ; réessayez dans {remaining}."
applied = "{plugin} : {locale} mis à jour ({added} ajoutés, {updated} modifiés, {kept} modifications locales conservées)."
locale-failed = "{plugin} : {locale} n’a pas été mis à jour : {reason}"
failed = "{plugin} : la mise à jour des langues a échoué : {reason}"
[language.editor]
"section.languages" = "Langues"
"section.search" = "Recherche"
@@ -2138,7 +2083,7 @@ loading = "Chargement des messages en {locale}..."
"search.messages" = "Rechercher des messages"
"search.messages-lore" = "Cliquez pour rechercher parmi tous les messages."
"search.clear" = "Effacer la recherche"
"message.current-value" = "&7Valeur actuelle:&r"
"message.current-value" = "&7Valeur actuelle :&r"
"message.variables" = "&8{variables}&r"
"message.edit-plural" = "&7Cliquez pour modifier une forme plurielle.&r"
"message.edit-lines" = "&7Cliquez pour modifier les lignes individuellement.&r"
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+224 -279
View File
@@ -42,6 +42,7 @@
# {activeMax} 読み込まれたディメンションタイプの高さ範囲の上限。
# {activeMin} 読み込まれたディメンションタイプの高さ範囲の下限。
# {actualReverts} 実際に取り消されたオブジェクト貼り付け回数。
# {added} 言語更新で追加されたメッセージ。
# {afb} エンジン処理時間ラベルの括弧部分より後にある書式付きテキスト。
# {after} 変更後の値、または修復後も接続されていない木のブロック数。
# {amount} レポートの指定項目に対応する数量。
@@ -131,6 +132,7 @@
# {irisPlaced} ネイティブ生成の代わりに Iris が配置した構造物の数。
# {job} 完了したバックグラウンド処理の名前。
# {k} リージョン分布レポートに使うリージョンの読み込みキー。
# {kept} 言語更新で保持されたローカル編集。
# {key} 前後の文が示すパラメーター、メッセージ、またはリソースの識別子。
# {key2} 検索コマンドの提案で再び使われる構造物識別子。
# {keyString} インポートする、または無効と報告された構造物・リソースの識別子。
@@ -199,7 +201,7 @@
# {ready} 現在利用できる精密 Atlas ページ数。
# {reason} 要求された操作を完了できなかった理由。
# {region} 調べているリージョンの名前または識別子。
# {remaining} 表示一覧から省略された追加のブロック状態数。
# {remaining} 表示一覧から省略された追加のブロック状態数;次回の言語確認が可能になるまでの時間。
# {repository} 展開中のリポジトリまたはダウンロードしたアーカイブ。
# {reverted} 取り消したオブジェクト貼り付けの回数。
# {rotation} 配置したオブジェクトに適用された回転。
@@ -249,6 +251,7 @@
# {typeKey} 登録された Minecraft ディメンションタイプ識別子、または inline。
# {unreachableBiomes} パックのバイオーム選択によって除外されたネイティブ構造物の数。
# {unsupported} このプラットフォームで未対応と判定されたネイティブ構造物の数。
# {updated} 言語更新で変更されたメッセージ。
# {updates} 開発者向け表示のブロック更新数(毎秒)。
# {url} 開く、またはコピーする Web アドレス。
# {usage} コマンド構文、またはメモリー表示の使用状況テキスト。
@@ -291,8 +294,6 @@ description = "Iris診断ツール"
"param.world_teleport" = "テレポート先のワールド"
"param.player_teleport" = "テレポートさせるプレイヤー"
"director.print_version_information" = "バージョン情報を表示します"
"director.benchmark_pack" = "パックをベンチマークします"
"param.dimension_benchmark" = "ベンチマークするディメンション"
"director.print_world_height_information" = "ワールドの高さ情報を表示します"
"director.check_access_all_worlds" = "全ワールドへのアクセスを確認します。"
"director.remove_iris_world" = "Iris ワールドを削除します"
@@ -363,7 +364,7 @@ operator_instruction = "コンソールから {command} を実行してくださ
"entry.command.evacuate" = "Iris ディメンション内の全プレイヤーをプライマリーワールドのスポーン地点へ退避させます"
"entry.command.seed" = "ワールドとエンジンのシード情報を表示します"
"entry.command.debug" = "Iris のデバッグログを切り替えて iris.json を保存します"
"entry.command.reload" = "iris.json を再読み込みします(3s ごとの自動ホットロードにも対応)"
"entry.command.reload" = "iris.json を再読み込みします(3 秒ごとに自動でホットリロードもされます)"
"entry.command.download" = "パックプロジェクトをダウンロードします"
"entry.command.catalog" = "読み込まれた Mod のワールド生成コンテンツを一覧表示し、1 つの名前空間を表示し、または再取得します"
"entry.group.ingest" = "読み込まれた Mod のワールド生成コンテンツから Iris パックを作成します"
@@ -417,7 +418,7 @@ operator_instruction = "コンソールから {command} を実行してくださ
"entry.command.close" = "開いているスタジオディメンションを閉じ、そのワールドを破棄します"
"entry.command.tpstudio" = "開いているスタジオディメンションへテレポートします"
"entry.command.status_studio" = "開いているスタジオディメンションとパックを表示します"
"entry.command.noise" = "サーバー画面でノイズエクスプローラーの GUI を開きます"
"entry.command.noise" = "サーバー画面で Noise Explorer の GUI を開きます"
"entry.command.map" = "サーバー画面で Vision マップの GUI を開きます"
"entry.command.vscode" = "パックの .code-workspace を再生成し、デスクトップエディターで開きます"
"entry.command.update" = "パックの .code-workspace を再生成します"
@@ -445,22 +446,22 @@ operator_instruction = "コンソールから {command} を実行してくださ
"entry.command.capture" = "Bukkit の構造物キャプチャ手順を説明します"
"entry.command.verify" = "現在のディメンションでネイティブ構造物と Iris 構造物が到達可能か報告します"
"entry.command.network" = "ネットワークインターフェースとアドレスを一覧表示します"
"entry.command.what.here" = "Inspect the Iris biome, region, cave biome, surface and chunk at your position"
"entry.command.what.biome" = "Inspect the Iris biome, configured derivative and registered native biome"
"entry.command.what.region" = "Inspect the Iris region at your current chunk"
"entry.command.what.block" = "Inspect the targeted block state, properties, object and block entity"
"entry.command.what.hand" = "Inspect the held item and its default block state"
"entry.command.what.markers" = "Reveal nearby Iris Mantle markers with particles"
"entry.command.height" = "Print the current dimension height range"
"entry.command.worlds" = "List loaded dimensions and identify the Iris-generated dimensions"
"entry.command.mainworld" = "Configure or clear the Iris primary-world preset used on restart"
"entry.command.object.we" = "Explain why WorldEdit selection import requires the Bukkit plugin"
"entry.command.object.studio" = "Explain why the object studio world requires the Bukkit toolchain"
"entry.command.object.convert" = "Explain why schematic conversion requires the Bukkit plugin"
"entry.command.studio.loot" = "Explain why the Bukkit loot simulation GUI is unavailable"
"entry.command.studio.profile" = "Explain why Bukkit pack profiling is unavailable"
"entry.command.studio.spawn" = "Explain why Bukkit Iris entity spawning is unavailable"
"entry.command.studio.objects" = "Explain why the Bukkit chunk object report is unavailable"
"entry.command.what.here" = "現在位置の Iris バイオーム、リージョン、洞窟バイオーム、地表、チャンクを調べます"
"entry.command.what.biome" = "Iris バイオーム、設定された派生バイオーム、登録済みのネイティブバイオームを調べます"
"entry.command.what.region" = "現在のチャンクの Iris リージョンを調べます"
"entry.command.what.block" = "対象ブロックのブロック状態、プロパティ、オブジェクト、ブロックエンティティを調べます"
"entry.command.what.hand" = "手に持っているアイテムとそのデフォルトのブロック状態を調べます"
"entry.command.what.markers" = "周囲の Iris Mantle マーカーをパーティクルで表示します"
"entry.command.height" = "現在のディメンションの高さ範囲を表示します"
"entry.command.worlds" = "読み込み済みのディメンションを一覧表示し、Iris が生成したディメンションを識別します"
"entry.command.mainworld" = "再起動時に使用する Iris プライマリーワールドのプリセットを設定または解除します"
"entry.command.object.we" = "WorldEdit の選択範囲のインポートに Bukkit プラグインが必要な理由を説明します"
"entry.command.object.studio" = "オブジェクトスタジオワールドに Bukkit ツールチェーンが必要な理由を説明します"
"entry.command.object.convert" = "schematic の変換に Bukkit プラグインが必要な理由を説明します"
"entry.command.studio.loot" = "Bukkit の戦利品シミュレーション GUI が利用できない理由を説明します"
"entry.command.studio.profile" = "Bukkit のパックプロファイリングが利用できない理由を説明します"
"entry.command.studio.spawn" = "Bukkit の Iris エンティティのスポーンが利用できない理由を説明します"
"entry.command.studio.objects" = "Bukkit のチャンクオブジェクトレポートが利用できない理由を説明します"
"entry.command.compat_content" = "この Minecraft バージョンでは生成できない内容を表示します"
[iris.modded.catalog]
@@ -494,19 +495,19 @@ configured_datapack_imports = "§a設定済みのデータパックインポー
message = "§7 - §f{url}"
installed_datapacks = "§aインストールされたデータパック: §f{value}"
message_2 = "§7 - §f{value}§7 {value2}"
add_modrinth_urls_dimension_s_datapackimports_list_then_run_iris = "§eディメンションの 'datapackImports' リストに Modrinth URL を追加し、/iris datapack ingest を実行してください。"
add_modrinth_urls_dimension_s_datapackimports_list_then_run_iris = "§eディメンションの 'datapackImports' リストにソース URL を追加するか、ローカルのインポートフォルダーを使用してから、/iris datapack ingest を実行してください。"
[iris.bukkit.commanddeveloper]
genhash_started_chunks = "§agenhash開始: {value}チャンク..."
genhash_failed_at_chunk = "§cチャンク {rx},{rz} でgenhashに失敗しました: {value}"
genhash_global_chunks_solid = "§agenhash グローバル=§6{value}§a チャンク={value2} 固体={solidBlocks} 時間={value3}"
world_is_null = "§c世界はnullです。"
world_is_null = "§cワールドは null です。"
target_iris_world_before_reading_mantle_dump = "§cMantle ダンプを読み込む前に Iris ワールドを対象にしてください。"
upgrading = "§a{value} にアップグレードしています..."
done_upgrading_you_can_now_update_your_server_version = "§aアップグレード完了! サーバーバージョンを {value} に更新できます"
radius_must_be_0_greater = "§c半径は 0 以上でなければなりません。"
this_is_not_iris_world = "§cここは Iris ワールドではありません。"
engine_access_this_world_is_null = "§cこの世界のエンジンアクセスはnullです。"
engine_access_this_world_is_null = "§cこのワールドのエンジンアクセスは null です。"
delete_started_chunk_s_around_clearing_blocks_air = "§a削除を開始しました: §6{centerX},{centerZ}§a 周辺の §6{chunks}§a チャンクを空気ブロックに置き換えています。"
radius_must_be_0_greater_2 = "§c半径は 0 以上でなければなりません。"
you_must_be_iris_world_use_regen = "§cregen を使用するには Iris ワールド内にいる必要があります。"
@@ -514,12 +515,12 @@ engine_access_this_world_is_null_generate_nearby_chunks_first = "§cこのワー
regen_started_chunk_s_around_deleting_regenerating_place = "§aregen を開始しました: §6{centerX},{centerZ}§a 周辺の §6{chunks}§a チャンクを削除し、その場で再生成しています。"
radius_must_be_0_greater_3 = "§c半径は 0 以上でなければなりません。"
target_must_be_iris_world = "§c対象は Iris ワールドでなければなりません。"
engine_access_this_world_is_null_2 = "§cこの世界のエンジンアクセスはnullです。"
engine_access_this_world_is_null_2 = "§cこのワールドのエンジンアクセスは null です。"
goldenhash_started_chunk_s_around_buffers_world_untouched = "§aGoldenHash を開始しました: §6{centerX},{centerZ}§a 周辺の §6{chunks}§a チャンクをバッファー内で処理します(ワールドは変更しません)。"
[iris.bukkit.commandfind]
not_iris_world = "§6Iris ワールド内ではありません!"
unknown_structure = "§c未知の構造: {structureKey}"
unknown_structure = "§c不明な構造物: {structureKey}"
run_this_game_teleport_structure = "§6構造物へテレポートするには、ゲーム内で実行してください。"
locating = "§7{structureKey} を検索しています..."
run_this_game_teleport_structure_2 = "§6構造物へテレポートするには、ゲーム内で実行してください。"
@@ -533,17 +534,14 @@ object_studio_teleporting = "§aObject Studio: {object}へテレポート中"
is_not_configured_any_region_biome_object_placements = "§c{object} は、どのリージョンまたはバイオームのオブジェクト配置にも設定されていません。"
[iris.bukkit.commandiris]
successfully_removed_world_folder = "§aワールドフォルダーを削除しました"
successfully_removed_world_folder_2 = "§aワールドフォルダーを削除しました"
failed_remove_world_folder = "§cワールドフォルダーを削除できませんでした"
you_cannot_use_world_name_iris_creating_worlds_as_iris = "§cIris がこのディレクトリを Studio ワールド用に使用するため、ワールド名 \"iris\" は使用できません。"
may_we_suggest_name_irisworld_instead = "§c代わりに \"IrisWorld\" という名前はいかがですか?"
you_cannot_use_world_name_benchmark_creating_worlds_as_iris = "§cIris がこのディレクトリをベンチマークパック用に使用するため、ワールド名 \"benchmark\" は使用できません。"
may_we_suggest_name_irisworld_instead_2 = "§c代わりに \"IrisWorld\" という名前はいかがですか?"
that_folder_already_exists = "§cそのフォルダーはすでに存在します!"
try_one_overworld_vanilla_flat_theend = "§e次のいずれかを指定してください: overworld、vanilla、flat、theend"
dimension_not_found = "§cCould not find dimension §f{dimension}§c."
install_pack_and_restart = "§eInstall it with §b{command}§e and restart the server."
dimension_not_found = "§cディメンション §f{dimension}§c が見つかりませんでした。"
install_pack_and_restart = "§e§b{command}§e でインストールし、サーバーを再起動してください。"
exception_raised_during_creation_see_console_more_details = "§c作成中に例外が発生しました。詳細はコンソールを確認してください。"
successfully_created_your_world = "§aワールドを作成しました!"
specified_player_does_not_exist = "§c指定されたプレイヤーは存在しません。"
@@ -553,25 +551,15 @@ iris_worlds = "§9Iris ワールド: "
message = "§a- {value}"
bukkit_worlds = "§6Bukkit ワールド: "
message_2 = "§7- {value}"
this_is_not_iris_world_iris_worlds = "§cここは Iris ワールドではありません。Iris ワールド: {value}"
removing_world = "§aワールドを削除しています: {value}"
failed_evacuate_world = "§c世界の避難に失敗しました: {value}"
failed_unload_world = "§cワールドをアンロードできませんでした: {value}"
successfully_removed_from_bukkit_yml = "§abukkit.yml から {value} を削除しました"
looks_like_world_was_already_removed_from_bukkit_yml = "§eワールドはすでに bukkit.yml から削除されているようです"
failed_save_bukkit_yml_because = "§cbukkit.yml を保存できませんでした: {value}"
set_debug = "§aデバッグ設定: {to}"
you_must_be_iris_world = "§cIris ワールド内にいる必要があります"
sending_metrics = "§aメトリックの送信..."
sending_metrics = "§aメトリックを送信しています..."
this_is_not_iris_world_iris_worlds_2 = "§cここは Iris ワールドではありません。Iris ワールド: {value}"
unloading_world = "§aワールドをアンロードしています: {value}"
world_unloaded_successfully = "§aワールドをアンロードしました。"
failed_unload_world_2 = "§c世界のアンロードに失敗しました。"
failed_unload_world_3 = "§c世界のアンロードに失敗しました: {value}"
failed_unload_world_2 = "§cワールドのアンロードに失敗しました。"
failed_unload_world_3 = "§cワールドのアンロードに失敗しました: {value}"
doesnt_exist_on_server = "§e{logicalWorldName} はサーバー上に存在しません。"
generator = "§9ジェネレーター: {dimension}"
is_not_iris_world = "§6{logicalWorldName} は Iris ワールドではありません。"
could_not_determine_iris_dimension = "§c{logicalWorldName} の Iris ディメンションを特定できませんでした。"
loading_world = "§aワールドを読み込んでいます: {logicalWorldName}"
loaded_successfully = "§a{logicalWorldName} を読み込みました。"
this_is_not_iris_world_iris_worlds_3 = "§cここは Iris ワールドではありません。Iris ワールド: {value}"
@@ -580,8 +568,8 @@ evacuating_world = "§aワールドから退避しています{value}"
[iris.bukkit.commandobject]
no_packs_with_objects_were_found_on_this_server = "§cこのサーバーには、オブジェクトを含むパックがありません。"
no_objects_place_across_selected_pack_s = "§c選択したパックには配置できるオブジェクトがありません。"
opening_object_studio_objects = "§a{scope} のオブジェクトスタジオを開いています({totalObjects} オブジェクト)"
failed_open_object_studio = "§cオブジェクトスタジオを開けませんでした: {value}"
opening_object_studio_objects = "§a{scope} の Object Studio を開いています({totalObjects} オブジェクト)"
failed_open_object_studio = "§cObject Studio を開けませんでした: {value}"
object_size = "オブジェクトサイズ: {value} * {value2} * {value3}"
blocks_used = "使用ブロック数: {value}"
blocks_object = "== オブジェクト内のブロック =="
@@ -643,8 +631,8 @@ structure_pieces_footprint_x_blocks_sample_seed_1234 = "§a構造物 '{structure
could_not_resolve_pack_dimension_5 = "§cディメンション {value} のパックを解決できませんでした"
no_iris_structure_this_pack_2 = "§cこのパックには Iris 構造物 '{structure}' がありません"
structure_assembled_0_pieces = "§c構造物 '{structure}' は 0 ピースで組み立てられました"
placed_pieces_at_your_location = "§a現在位置に '{structure}'({value} ピース)を配置しました。 ({value2} block changes)"
placement_changed_no_blocks = "§cStructure '{structure}' assembled {value} pieces but changed 0 blocks at your location. Check that the selected variants contain non-air blocks and that the placement is above the world's minimum height."
placed_pieces_at_your_location = "§a現在位置に '{structure}'({value} ピース、ブロック変更 {value2})を配置しました。"
placement_changed_no_blocks = "§c構造物 '{structure}' は {value} ピースを組み立てましたが、現在位置で変更されたブロックは 0 個でした。選択したバリアントに空気以外のブロックが含まれていること、配置位置がワールドの最低高度より上であることを確認してください。"
[iris.bukkit.commandstudio]
hotloading = "§eStudio をホットリロード中..."
@@ -659,7 +647,7 @@ studio_close_failed = "§cスタジオを閉じられませんでした: {value}
studio_close_failed_2 = "§cスタジオを閉じられませんでした: {value}"
studio_closed_remaining_world_family_cleanup_was_queued_startup_fallback = "§eスタジオを閉じました。残りのワールド関連データのクリーンアップは、次回起動時に実行されます。"
studio_closed = "§aスタジオを閉じました。"
you_must_be_studio_world_toggle_debug_scoreboard = "§cデバッグスコアボードを切り替えるには、スタジオの世界にいる必要があります。"
you_must_be_studio_world_toggle_debug_scoreboard = "§cデバッグスコアボードを切り替えるには、Studio ワールドにいる必要があります。"
studio_debug_scoreboard = "{value}スタジオデバッグスコアボード {value2}"
could_not_update_studio_debug_scoreboard_right_now = "§c今すぐ Studio デバッグスコアボードを更新できません。"
opened_inventory = "§aインベントリを開きました!"
@@ -673,14 +661,14 @@ provide_dimension_pack_iris_std_importvanilla_pack_dimension = "§cディメン
could_not_resolve_pack_dimension = "§cディメンション {value} のパックを解決できませんでした"
opening_vscode_pack = "§aパック \"{value}\" を VSCode で開いています"
pack_has_version = "§aパック \"{value}\" のバージョン: {value2}"
opening_noise_explorer = "§aノイズエクスプローラーを開いています!"
opening_noise_explorer = "§aNoise Explorer を開いています!"
cannot_add_items_virtual_inventory_because = "§c仮想インベントリにアイテムを追加できません: {value}"
opening_inventory_now = "§aインベントリを開いています!"
only_works_iris_world = "§cIris ワールド内でのみ使用できます!"
you_need_be_specify_iris_generated_world = "§cIris 生成ワールド内にいるか、そのワールドを指定する必要があります!"
opening_map = "§aマップを開いています!"
calculating_performance_metrics_noise_generators = "ノイズジェネレーターのパフォーマンス指標を計算しています"
calculating_interpolator_timings = "インターポレータータイミングの計算..."
calculating_interpolator_timings = "インターポレーターのタイミングを計算しています..."
processing_generator_scores = "ジェネレータースコアを処理しています: "
score = "スコア: {value}"
done_with_result = "§a完了! {value}"
@@ -694,16 +682,13 @@ invalid_project_try_deleting_code_workspace_file_try_again = "§c無効なプロ
you_must_be_iris_world = "§cIris ワールド内にいる必要があります"
you_must_be_iris_world_2 = "Iris ワールド内にいる必要があります。"
capturing_igendata_from_nearby_chunks = "周辺の {value} チャンクから IGenData をキャプチャしています。"
reported = "報告: {value}"
reported = "報告先: {value}"
you_must_have_server_launched_guis_enabled_settings = "§c設定でサーバー起動 GUI を有効にする必要があります!"
desktop_unavailable = "§cこのサーバーには利用可能なデスクトップ画面がありません。Studio のウィンドウはサーバー上で開くため、グラフィカルなデスクトップセッションで Iris を実行してください。"
players_only = "§cプレイヤーのみ!"
no_studio_world_is_open_2 = "§c開いているスタジオワールドはありません!"
you_must_be_studio_world = "§cスタジオワールドでなければいけません!"
opening_image_map_studio = "§aOpening the Image Map Studio."
[iris.bukkit.commandsvc]
you_lack_permission = "権限 '{ROOTPERMISSION}' がありません"
opening_image_map_studio = "§aImage Map Studio を開いています。"
[iris.bukkit.irisenginestatus]
message = "§5-------------------------"
@@ -713,7 +698,7 @@ metrics = "§5- メトリック: §d{value}"
maintenance_period = "§5- メンテナンス間隔: §d{value}"
worker_parallelism = "§5- ワーカー並列数: §d{value}"
active_world_tasks = "§5- 実行中のワールドタスク: §d{value}"
tectonic_plates = "§5プレートテクトニクス:"
tectonic_plates = "§5テクトニックプレート:"
configured_retention = "§5- 設定済み保持数: §d{value}"
heap_usage = "§5- ヒープ使用量: §d{value}"
resident = "§5- 常駐: §d{value}"
@@ -727,7 +712,7 @@ resource = "§5- リソース: §d{value} ({value2})"
3d_stream = "§5- 3Dストリーム: §d{value} ({value2})"
other = "§5- その他: §d{value} ({value2})"
other_2 = "§5その他:"
iris_worlds = "§5- Iris 世界: §d{value}"
iris_worlds = "§5- Iris ワールド: §d{value}"
loaded_chunks = "§5- ロードされたチャンク: §d{value}"
message_2 = "§5-------------------------"
@@ -758,7 +743,7 @@ paused_unpaused_pregeneration_task_now = "§a事前生成タスクの一時停
no_active_pregeneration_tasks_pause_unpause = "§e一時停止を切り替えられる実行中の事前生成タスクはありません。"
no_active_pregeneration_task = "§e実行中の事前生成タスクはありません。"
pregen = "§a事前生成 §6{world}§a: §6{value}/{value2}§a(§6{value3}%§a){value4}"
speed_s_eta_elapsed_method = "§a速度: §6overall {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s§a ETA: §6{eta}§a Elapsed: §6{elapsed}§a Method: §6{method}{failures}"
speed_s_eta_elapsed_method = "§a速度: §6全体 {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s§a ETA: §6{eta}§a 経過: §6{elapsed}§a 方式: §6{method}{failures}"
[iris.bukkit.commandwhat]
material = "マテリアル: §a{value}"
@@ -768,11 +753,11 @@ material_2 = "マテリアル: §a{value}"
please_hold_block_item_2 = "ブロックまたはアイテムを手に持ってください"
ibiome = "IBiome: {value} ({value2})"
non_iris_biome = "Iris 以外のバイオーム: {value}"
data_pack_biome_id = "データパックバイオメ:{value}(ID:{value2})"
data_pack_biome_id = "データパックバイオーム: {value} (ID: {value2})"
iregion = "IRegion: {value} ({value2})"
iris_worlds_only = "§aIris ワールド専用です。"
please_look_at_any_block_not_at_sky = "空ではなく、どんなブロックでも見てください。"
material_3 = "材料: §a{value}"
material_3 = "マテリアル: §a{value}"
full_2 = "フル: §f{value}"
storage_block_loot_capable = "§e* ストレージブロック(ルート対応)"
lit_block_light_capable = "§e* 発光ブロック(光源対応)"
@@ -809,10 +794,8 @@ is_not_generated_by_iris_2 = "{value} は Iris によって生成されていま
cannot_evacuate_primary_world_there_is_nowhere_send_players = "プライマリーワールドからは退避できません。プレイヤーの移動先がありません。"
evacuated_player_s_from = "{count} 人のプレイヤーを {value} から {value2} へ退避させました。"
set_debug = "デバッグを {to} に設定しました"
hotloaded_settings = "設定をホットロードしました"
this_command_can_only_be_used_by_players_it_inspects = "このコマンドはプレイヤーのみ使用できます(手に持っているアイテムを調べます)。"
your_main_hand_is_empty = "主手は空です。"
hand_x = "手持ち: {value} x{value2}"
your_main_hand_is_empty = "メインハンドが空です。"
this_command_can_only_be_used_by_players = "このコマンドはプレイヤーのみ使用できます。"
this_dimension_is_not_generated_by_iris_4 = "このディメンションは Iris によって生成されていません。"
this_dimension_is_not_generated_by_iris_5 = "このディメンションは Iris によって生成されていません。"
@@ -824,22 +807,18 @@ stopping_pregeneration_finishing_up_current_region = "事前生成を停止し
no_active_pregeneration_task_stop = "停止できる実行中の事前生成タスクはありません。"
no_active_pregeneration_task_pause_resume = "一時停止または再開できる事前生成タスクはありません。"
pregeneration_is_now = "事前生成は現在 {value} です。"
no_active_pregeneration_task = "アクティブなプレジェネレーションタスクはありません。"
no_active_pregeneration_task = "実行中の事前生成タスクはありません。"
iris_by_volmit_software_on_minecraft_iris_dimension_s = "Iris {value} by Volmit Software、{value2}(Minecraft {value3})、Iris ディメンション {engines} 個"
loaded_dimensions_iris = "読み込み済みディメンション: {total}(Iris: {iris})"
this_command_can_only_be_used_by_players_2 = "このコマンドはプレイヤーのみ使用できます。"
this_dimension_is_not_generated_by_iris_6 = "このディメンションは Iris によって生成されていません。"
biome = "バイオメ: {value} ({value2})"
biome_lookup_failed_2 = "バイオメの検索失敗: {value}"
region = "地域: {value} ({value2})"
region_lookup_failed_2 = "地域検索失敗: {value}"
cave_biome = "洞窟バイオメ: {value}"
biome_lookup_failed_2 = "バイオームの検索に失敗しました: {value}"
region_lookup_failed_2 = "リージョンの検索に失敗しました: {value}"
cave_biome = "洞窟バイオーム: {value}"
cave_biome_lookup_failed = "洞窟バイオームの検索に失敗しました: {value}"
surface_block_y = "表面ブロック: {value} (y={value2})"
position_chunk = "位置: {value} {value2} {value3}(チャンク {value4},{value5})"
this_command_can_only_be_used_by_players_it_inspects_2 = "このコマンドはプレイヤーのみ使用できます(見ているブロックを調べます)。"
look_at_block_not_sky = "空ではなく、ブロックを見てください。"
block_y = "ブロック: {value} (y={value2})"
this_command_can_only_be_used_by_players_markers_render = "このコマンドはプレイヤーのみ使用できます(周囲のマーカーをパーティクルで表示します)。"
this_dimension_is_not_generated_by_iris_7 = "このディメンションは Iris によって生成されていません。"
scanning_markers_around_you = "周囲の '{marker}' マーカーをスキャンしています..."
@@ -851,7 +830,6 @@ unknown_biome_2 = "不明なバイオーム: {key}"
this_command_can_only_be_used_by_players_4 = "このコマンドはプレイヤーのみ使用できます。"
this_dimension_is_not_generated_by_iris_9 = "このディメンションは Iris によって生成されていません。"
unknown_region_2 = "不明なリージョン: {key}"
is_not_defined_dimension = "{value} はこのディメンションに定義されていません!"
this_dimension_is_not_generated_by_iris_10 = "このディメンションは Iris によって生成されていません。"
is_not_configured_any_region_biome_object_placements_object_keys = "{key} は、どのリージョンまたはバイオームのオブジェクト配置にも設定されていません(読み込み済みオブジェクトキー: {value} 個)。"
this_command_can_only_be_used_by_players_object_key = "このコマンドはプレイヤーのみ使用できます(オブジェクトキー '{key}' は、読み込み済みの {value} 個のオブジェクトキーから解決されました)。"
@@ -889,15 +867,11 @@ world_seed = "ワールドシード: {value}"
engine_seed_mixed = "エンジンシード: {value}(混合値: {value2})"
this_dimension_is_not_generated_by_iris_15 = "このディメンションは Iris によって生成されていません。"
downloading_irisdimensions = "IrisDimensions/{pack} をダウンロードしています({downloadSource})..."
pack_installed_its_exact_dimension_types_custom_biomes_join_forced = "パック '{pack}' をインストールしました。正確なディメンションタイプとカスタムバイオームは、次回のサーバー再起動時に強制 Iris データパックへ追加されます。このパックからワールドを作成する前に再起動してください。"
pack_download_failed_see_console = "パック {pack} のダウンロードに失敗しました({downloadSource}。コンソールを確認してください)。"
this_dimension_is_not_generated_by_iris_16 = "このディメンションは Iris によって生成されていません。"
generated_chunk_s_s = "生成済み: {value}チャンク、{value2}/s"
ms = " {value}: {value2}ms"
[iris.modded.moddedcommandhelp]
unknown_iris_help_section = "未知の Iris ヘルプセクション: {normalized}"
[iris.modded.moddeddatapackcommands]
type_active_logical_pack_engine_not_started_pack_heights_unknown = "{dimensionId}: タイプ={typeKey} 有効範囲={activeMin}..{activeMax} 論理範囲={value}(パック={value2}、エンジン未起動のためパックの高さは不明)"
type_active_logical_pack_wants_logical = "{dimensionId}: タイプ={typeKey} 有効範囲={activeMin}..{activeMax} 論理範囲={value} | パック '{value2}' の要求範囲 {packMin}..{packMax} 論理範囲={packLogical} | {value3}{value4}"
@@ -1030,10 +1004,10 @@ studio_hotload_complete = "Studio のホットリロードが完了しました
studio_hotload_busy = "Studio はすでにパックを確認中またはホットリロード中です。完了してから再試行してください。"
studio_hotload_failed = "Studio のホットリロードに失敗しました{errorMessage}"
provide_dimension_pack_iris_studio_open_pack_seed = "ディメンションパックを指定してください: /iris studio open <pack> [seed]"
opening_noise_explorer_on_server_display = "サーバー画面でノイズエクスプローラーを開いています。"
opening_noise_explorer_on_server_display = "サーバー画面で Noise Explorer を開いています。"
this_dimension_is_not_generated_by_iris_run_iris_studio = "このディメンションは Iris によって生成されていません。ジェネレーターを解決するには Iris ディメンション内で /iris studio noise を実行するか、ジェネレーター名を省略してください。"
unknown_generator_pack = "パック {value} に不明なジェネレーター '{generatorKey}' が指定されています。"
opening_noise_explorer_generator_seed = "ジェネレーター '{value}'(シード {seed})をノイズエクスプローラーで開いています。"
opening_noise_explorer_generator_seed = "ジェネレーター '{value}'(シード {seed})を Noise Explorer で開いています。"
this_dimension_is_not_generated_by_iris_stand_iris_studio = "このディメンションは Iris によって生成されていません。Iris またはスタジオディメンション内で /iris studio map を実行してください。"
opening_vision_map_on_server_display = "サーバー画面で {value} の Vision マップを開いています。"
failed_write_workspace = "{value} のワークスペースを書き込めませんでした: {value2}"
@@ -1044,16 +1018,11 @@ this_dimension_is_not_generated_by_iris_specify_pack_name = "このディメン
pack_not_found_under = "{value} にパック '{name}' が見つかりません"
provide_dimension_pack_iris_studio_open_pack_seed_2 = "ディメンションパックを指定してください: /iris studio open <pack> [seed]"
opening_studio_seed = "パック '{pack}'(シード {seed})のスタジオを開いています..."
pack_missing_downloading_irisdimensions = "パック '{pack}' がありません。IrisDimensions/{pack2} をダウンロードしています..."
pack_could_not_be_downloaded_check_name_try_iris_download = "パック '{pack}' をダウンロードできませんでした。名前を確認して /iris download {pack2} を実行してください。"
pack_has_no_dimensions_json = "パック '{pack}' に dimensions/{pack2}.json がありません"
studio_open_failed = "スタジオを開けませんでした: {value}{errorMessage}"
studio_injection_failed = "スタジオの注入に失敗しました: {value}{errorMessage}"
console_studio_open_now_runs_seed_transient_not_written_iris = "コンソールからスタジオを開きました: {dimensionId} はパック '{pack}'、シード {seed} で実行中です(一時的な設定のため iris-dimensions.json には書き込まれず、再起動時に解除されます)。"
enter_it_with_execute_run_tp_s_8_5_8 = "入るには次を実行してください: /execute in {dimensionId} run tp @s 8.5 {surface} 8.5"
pregen_it_with_iris_pregen_start_radius = "事前生成するには次を実行してください: /iris pregen start <radius> {dimensionId}"
remove_it_with_iris_studio_close = "削除するには次を実行してください: /iris studio close"
studio_injection_failed_2 = "スタジオの注入に失敗しました: {value}{errorMessage}"
studio_open_now_runs_seed_use_iris_studio_close_when = "スタジオを開きました: {dimensionId} はパック '{pack}'、シード {seed} で実行中です。完了後は /iris studio close を実行してください。"
you_do_not_have_open_studio_use_iris_studio_open = "開いているスタジオがありません。先に /iris studio open <pack> を実行してください。"
studio_close_failed = "スタジオを閉じられませんでした: {value}{errorMessage}"
@@ -1082,8 +1051,8 @@ this_dimension_is_not_generated_by_iris = "このディメンションは Iris
sampling_region_distribution_x_chunks_around_you = "周囲 {value}x{value2} チャンクのリージョン分布をサンプリングしています..."
rarity = "{key}: レア度={rarity} / {value}%"
region_sampling_failed = "リージョンのサンプリングに失敗しました: {value}"
image_map_requires_iris_dimension = "Stand in an active Iris or Studio dimension before opening the Image Map Studio."
opening_image_map_studio_on_server_display = "Opening the Image Map Studio for {value} on the server display."
image_map_requires_iris_dimension = "Image Map Studio を開く前に、アクティブな Iris または Studio ディメンション内に立ってください。"
opening_image_map_studio_on_server_display = "サーバー画面で {value} の Image Map Studio を開いています。"
[iris.modded.moddedworldcommands]
required_pack_is_not_installed_install_then_restart = "必要なパック '{pack}' がインストールされていません。/iris download でインストールしてからサーバーを再起動してください。"
@@ -1098,7 +1067,7 @@ instead_is_now_configured_primary_world_players_vanilla_overworld_are = "代わ
iris_main_world_override_cleared_overworld_keeps_its_current_generator = "Iris メインワールドの上書きを解除しました。オーバーワールドは現在のジェネレーターを維持します。元に戻すには server.properties の level-type を編集して再起動してください。"
invalid_seed_use_number_random = "無効なシード '{seedRaw}' です。数値または 'random' を指定してください。"
pack_is_not_ready_yet_still_loading_validating_try_command = "パック '{pack}' はまだ準備中です(読み込みまたは検証中)。しばらくしてからもう一度コマンドを実行してください。"
failed_write_server_properties_check_file_permissions_set_level_type = "server.properties を書き込めませんでした。ファイル権限を確認し、level-type を手動で設定してください。"
failed_write_server_properties_check_file_permissions_set_level_type = "server.properties を更新できませんでした(サーバーの作業ディレクトリに存在しないか、書き込みできません)。サーバーログを確認するか、level-type を手動で設定してください。"
iris_main_world_set_preset_seed = "Iris メインワールドを '{pack}'(プリセット {preset}、シード {value})に設定しました。"
server_properties_level_type_is_now_on_next_restart_overworld = "server.properties の level-type を {preset} に設定しました。次回の再起動時に、オーバーワールド、ネザー、エンドがこの Iris ワールドとして再生成されます。"
player_data_inventories_advancements_stats_is_kept_existing_terrain_those = "プレイヤーデータ(インベントリ、進捗、統計)は保持されますが、各ディメンションの既存地形は置換されます。この処理は一度だけ適用されます。"
@@ -1112,8 +1081,8 @@ pack_does_not_contain_dimensions_json = "パック '{pack}' に dimensions/{pack
invalid_pack_reference_use_pack_pack_dimensionkey = "無効なパック参照 '{pack}{value}' です。pack または pack:dimensionKey を指定してください。"
invalid_seed_use_number_random_2 = "無効なシード '{seedRaw}' です。数値または 'random' を指定してください。"
failed_remove_iris_world = "Iris ワールド '{dimensionId}' を削除できませんでした: {value}{errorMessage}"
iris_world_was_not_loaded_cleared_its_persistent_registry_entry = "Iris 世界の '{dimensionId}' は読み込まれていません。永続的なレジストリエントリをクリアし、保存されたチャンク/マントルデータを消去しました。"
iris_world_was_not_loaded_cleared_its_persistent_registry_entry_2 = "Iris 世界の '{dimensionId}' は読み込まれていません。永続的なレジストリエントリをクリアしました。 ディスク上の世界データが保存されます。"
iris_world_was_not_loaded_cleared_its_persistent_registry_entry = "Iris ワールド '{dimensionId}' は読み込まれていませんでした。永続レジストリのエントリをクリアし、保存されているチャンク/Mantle データを消去しました。"
iris_world_was_not_loaded_cleared_its_persistent_registry_entry_2 = "Iris ワールド '{dimensionId}' は読み込まれていませんでした。永続レジストリのエントリをクリアしました。ディスク上のワールドデータは保持されます。"
deleted_iris_world_evacuated_unloaded_chunk_mantle_data_wiped_dropped = "Iris ワールド '{dimensionId}' を削除しました。プレイヤーを退避し、ワールドをアンロードしてチャンク/Mantle データを消去し、起動レジストリから外しました。"
disabled_iris_world_evacuated_unloaded_dropped_from_startup_registry = "Iris ワールド '{dimensionId}' を無効にしました。プレイヤーを退避し、ワールドをアンロードして起動レジストリから外しました。"
world_data_on_disk_is_kept_re_enable_with_iris = "ディスク上のワールドデータは保持されます。再び有効にするには /iris world enable {dimensionId} <pack>、削除するには /iris world delete {dimensionId2} を実行してください。"
@@ -1128,7 +1097,7 @@ replace_registry_not_ready = "Iris はまだこのサーバーのディメンシ
replace_installed_types = "インストール済みのパック: {value}"
[iris.director.commanddatapack]
"director.download_manage_external_datapack_imports_modrinth" = "外部データパックのインポートをダウンロードして管理します(Modrinth)"
"director.download_manage_external_datapack_imports_modrinth" = "外部データパックのインポートをダウンロードして管理します"
"director.download_update_every_datapack_listed_pack_dimension_s_datapackimports_install_it_into" = "パックディメンションの 'datapackImports' にある全データパックをダウンロードまたは更新し、構造物がバニラ同様に登録されるようワールドへインストールします"
"param.restart_server_when_new_datapacks_are_installed_required_new_structures_register_generate" = "新しいデータパックをインストールしたときにサーバーを再起動します(新しい構造物の登録と生成に必要です)"
"director.list_configured_datapack_imports_their_installed_versions" = "設定済みのデータパックインポートとインストール済みバージョンを一覧表示します"
@@ -1141,7 +1110,7 @@ replace_installed_types = "インストール済みのパック: {value}"
"param.export_namespace" = "エクスポートするリソースの名前空間"
"param.export_output" = "データパックのエクスポートフォルダー内の出力名(空欄の場合はディメンションとバージョンを使用)"
"param.export_format" = "zip または directory"
"param.export_objects" = "オブジェクトをストラクチャーテンプレートとして含めます"
"param.export_objects" = "オブジェクトを構造物テンプレートとして含めます"
"param.export_replace" = "同じ名前の既存のエクスポートを置き換えます"
"export.started" = "{dimension} を Minecraft {version} 用のデータパックとしてエクスポートしています..."
"export.stage" = "データパックのエクスポート: {stage}"
@@ -1185,7 +1154,7 @@ replace_installed_types = "インストール済みのパック: {value}"
"param.radius_chunks_around_center_2" = "中心からの半径(チャンク単位)"
"param.center_chunk_x_2" = "中心チャンクの X"
"param.center_chunk_z_2" = "中心チャンクの Z"
"param.delete_mantle_data_scan_area_first_full_regeneration_from_scratch" = "最初にワールドの Mantle フォルダー全体を削除し、ゼロから完全に再生成します。スキャン範囲に限定されません"
"param.delete_mantle_data_scan_area_first_full_regeneration_from_scratch" = "最初にワールドの Mantle フォルダー全体を削除し、ゼロから完全に再生成します"
"param.concurrent_chunk_generations_1_strictly_serial_order_dependence_testing" = "同時チャンク生成数。1 = 順序依存性テスト用の厳密な直列処理"
"param.also_dump_full_per_chunk_non_air_blockstates_offline_diffing" = "オフライン比較用に、チャンクごとの空気以外の全ブロック状態もダンプします"
@@ -1287,9 +1256,9 @@ replace_installed_types = "インストール済みのパック: {value}"
"director.iris_structure_tools_index_import_info" = "Iris 構造物ツール(インデックス、インポート、情報)"
"director.regenerate_structure_index_json_listing_all_vanilla_datapack_iris_structures" = "全バニラ、データパック、Iris 構造物を一覧にした structure-index.json を再生成します"
"param.dimension_whose_pack_index" = "インデックスを作成するパックのディメンション"
"director.import_every_structure_vanilla_ingested_datapacks_into_this_pack_as_editable_iris" = "すべての構造物(vanilla と取り込んだ datapack の両方)を編集可能な Iris リソースとしてこのパックへ常に上書きでインポートします。jigsaw 構造物(村、前哨基地、datapack jigsaw)を編集可能な pool/piece グラフとして再構築し、各 NBT 構造テンプレートをオブジェクトとしてインポートして、複数テンプレートの構造物(難破船、荒廃したポータル、海底遺跡、ネザー化石)を組み立てます。datapack を取り込んで再起動した後に実行してください。インポートしたコピーを配置するにはチャンクを再生成するか、新しいワールドを使用してください。"
"director.import_every_structure_vanilla_ingested_datapacks_into_this_pack_as_editable_iris" = "すべての構造物(バニラと取り込んだデータパックの両方)を編集可能な Iris リソースとしてこのパックへ常に上書きでインポートします。jigsaw 構造物(村、前哨基地、データパックの jigsaw)を編集可能な pool/piece グラフとして再構築し、各 NBT 構造テンプレートをオブジェクトとしてインポートして、複数テンプレートの構造物(難破船、荒廃したポータル、海底遺跡、ネザー化石)を組み立てます。データパックを取り込んで再起動した後に実行してください。インポートしたコピーを配置するにはチャンクを再生成するか、新しいワールドを使用してください。"
"param.dimension_whose_pack_import_into" = "インポート先パックのディメンション"
"director.capture_code_generated_structures_that_have_no_nbt_template_swamp_huts_igloos" = "NBT テンプレートを持たないコード生成構造物(沼地の小屋、イグルーなど)を、使い捨ての一時ワールドにそれぞれ生成してブロックを読み戻し、編集可能な Iris オブジェクトとしてキャプチャします。すでに構造物としてインポートされるもの、キャプチャ上限より幅/高さが大きいもの(要塞、森の洋館、海底神殿は vanilla のまま)、フラットな overworld で生成されないものはスキップします。キャプチャした各構造物は、biome/region/dimension の 'structures' リストから配置できる単一ピースの Iris 構造物になります。/iris structure import の最終段階として自動実行されます。"
"director.capture_code_generated_structures_that_have_no_nbt_template_swamp_huts_igloos" = "NBT テンプレートを持たないコード生成構造物(沼地の小屋、イグルーなど)を、使い捨ての一時ワールドにそれぞれ生成してブロックを読み戻し、編集可能な Iris オブジェクトとしてキャプチャします。すでに構造物としてインポートされるもの、キャプチャ上限より幅/高さが大きいもの(要塞、森の洋館、海底神殿はバニラのまま)、フラットなオーバーワールドで生成されないものはスキップします。キャプチャした各構造物は、biome/region/dimension の 'structures' リストから配置できる単一ピースの Iris 構造物になります。/iris structure import の最終段階として自動実行されます。"
"param.dimension_whose_pack_capture_into" = "キャプチャ先パックのディメンション"
"director.verify_native_structure_eligibility_locate_iris_placed_structures_without_running_blocking_native" = "ブロッキングするネイティブ検索を実行せずに、ネイティブ構造物の生成可否を検証し、Iris 配置構造物を検索します。"
"param.dimension_verify" = "検証するディメンション"
@@ -1309,7 +1278,7 @@ replace_installed_types = "インストール済みのパック: {value}"
"param.seed_generate_studio_with" = "スタジオの生成に使用するシード"
"director.import_vanilla_trees_mushrooms_objects_structures_jigsaw_from_server_into_pack_s" = "サーバーからバニラの木、キノコ、オブジェクト、structures/jigsaw をパックの objects/vanilla フォルダーへインポートします"
"param.dimension_pack_import_vanilla_content_into" = "バニラコンテンツのインポート先ディメンションパック"
"param.how_many_variants_capture_per_tree_object_feature" = "木またはオブジェクト機能ごとにキャプチャするバリアント数"
"param.how_many_variants_capture_per_tree_object_feature" = "木またはオブジェクトのフィーチャーごとにキャプチャするバリアント数"
"param.also_import_vanilla_datapack_structures_jigsaw_into_pack" = "バニラおよびデータパックの structures/jigsaw もパックへインポートします"
"director.open_vscode_dimension" = "ディメンションを VSCode で開きます"
"param.dimension_open_vscode" = "VSCode で開くディメンション"
@@ -1320,7 +1289,7 @@ replace_installed_types = "インストール済みのパック: {value}"
"param.copy_contents_existing_project_your_packs_folder_use_it_as_template_this" = "packs フォルダー内の既存プロジェクトをコピーし、新しいプロジェクトのテンプレートとして使用します。"
"director.get_version_pack" = "パックのバージョンを取得します"
"param.dimension_get_version" = "バージョンを取得するディメンション"
"director.open_noise_explorer_external_gui" = "ノイズエクスプローラーを開きます(外部 GUI)"
"director.open_noise_explorer_external_gui" = "Noise Explorer を開きます(外部 GUI)"
"param.optional_pack_generator_preview" = "プレビューするパックジェネレーター(任意)"
"param.seed_preview_generator_with" = "ジェネレーターのプレビューに使用するシード"
"director.show_loot_if_chest_were_right_here" = "現在位置にチェストがある場合の戦利品を表示します"
@@ -1378,7 +1347,7 @@ detail_suffix = " - {error}"
[iris.runtime.datapack]
override_suffix = "(ワールドデータパックの上書きをインストール済み)"
name = "Iris ワールドジェネレーション"
name = "Iris ワールド生成"
[iris.runtime.primary_world]
players_routed_suffix = "(プレイヤーをこのワールドへ移動)"
@@ -1391,30 +1360,14 @@ no_dimension_match = "'{filter}' に一致する Iris ディメンションは
world = "{world} にテレポートしました。"
[iris.runtime.engine]
hotloaded = "エンジンをホットロードしました"
hotloaded = "エンジンをホットリロードしました"
[iris.runtime.job]
completed = "{job} を {duration} で完了しました"
scanning_selection = "選択範囲をスキャン中"
loading_chunks = "チャンクを読み込み中"
searched_chunks = "{chunks} チャンクを検索しました"
compile = "コンパイル"
saving_object = "オブジェクトを保存中"
downloading = "ダウンロード中"
extracting = "展開中"
installing = "インストール中"
[iris.runtime.compile]
iob_empty = "- IOB {file} にブロックがありません!"
iob_empty_hover = "エラー:\n{path}"
iob_not_3d = "- IOB {file} は 3D ではありません!"
iob_not_3d_hover = "エラー:\n{path}\n幅、高さ、奥行きのいずれかが 0 です(不正な形式)"
json_error = "- JSON エラー {file}"
json_error_hover = "エラー:\n{path}\n{error}"
loader_not_found = "{path} 用のローダーが見つかりません"
[iris.runtime.pack]
already_exists = "パックはすでに存在します!"
[iris.runtime.tree_plausibilize]
dry_suffix = ", ドライラン"
@@ -1459,16 +1412,15 @@ column_object_none = "列のオブジェクト: {detail}"
column_none = "64 ブロック以内になし(デコレーターまたは地形。オブジェクトの支柱ではありません)"
"column.above" = "{object} @Y={y}(上)"
"column.below" = "{object} @Y={y}(下)"
surface_biome = "地表バイオーム: {biome}"
surface_biome_detail = "地表バイオーム: {biome}({derivative})"
biome_at_y = "バイオメ@Y: {biome}"
cave_biome = "洞窟/Mantle バイオメ: {biome}"
biome_at_y = "バイオーム @Y: {biome}"
cave_biome = "洞窟/Mantle バイオーム: {biome}"
server_biome = "サーバーバイオーム: {biome}(ID: {id})"
region = "リージョン: {region}({name})"
objects_in_chunk = "チャンク内のオブジェクト: {objects}"
copy_button = "[クリックして統計をコピー]"
copy_hover = "ブロック統計をクリップボードへコピーします"
reveal_failed = "Object reveal failed; see the console for details."
reveal_failed = "オブジェクトの表示に失敗しました。詳細はコンソールを確認してください。"
[iris.runtime.pregen]
starting = "Iris 事前生成を開始しています..."
@@ -1479,8 +1431,8 @@ eta_fragment = " ETA {eta}"
failed_fragment = " 失敗 {failed}"
"status.context" = "ディメンション {dimension} · 方式 {method}"
"status.progress" = "{percent}%"
"status.chunks" = "チャンク {generated}/{total} · 速度 overall {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s"
"status.chunks_failed" = "チャンク {generated}/{total} · 速度 overall {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s · Failed {failed}"
"status.chunks" = "チャンク {generated}/{total} · 速度 全体 {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s"
"status.chunks_failed" = "チャンク {generated}/{total} · 速度 全体 {overall}/s, 10s {tenSecond}/s, 30s {thirtySecond}/s, 60s {sixtySecond}/s · 失敗 {failed}"
"status.time" = "ETA {eta} · 経過時間 {elapsed}"
"status.time_paused" = "ETA {eta} · 経過時間 {elapsed} · 一時停止中"
"button.pause" = "一時停止/再開"
@@ -1495,14 +1447,14 @@ failed_fragment = " 失敗 {failed}"
"commandpack.pack_not_found_under_packs" = "§cpacks/ にパック '{pack}' が見つかりません。"
"commandpack.no_cleanup_candidates_found_pack" = "§aパック '{pack}' にクリーンアップ候補はありません。"
"commandpack.quarantined_cleanup_candidate_s_under" = "§a{size} 件のクリーンアップ候補を {quarantinePath} に隔離しました。"
"commandpack.cleanup_mode_must_be_preview_apply" = "§cクリーンアップモードをプレビューまたは適用する必要があります。"
"commandpack.cleanup_mode_must_be_preview_apply" = "§cクリーンアップモードは preview または apply である必要があります。"
"commandpack.no_cleanup_candidates_found_pack_2" = "§aパック '{pack}' にクリーンアップ候補はありません。"
"commandpack.cleanup_preview_pack_candidate_s_no_files_were_changed" = "§eパック '{pack}' のクリーンアッププレビュー: {size} 件の候補。ファイルは変更されていません。"
"commandpack.run_iris_pack_cleanup_mode_apply_quarantine_these_candidates_after_fresh_scan" = "§7再スキャン後に候補を隔離するには /iris pack cleanup {pack} mode=apply を実行してください。"
"commandpack.restore_refused_because_destination_s_already_exist" = "§c{size} 件の復元先がすでに存在するため、復元を拒否しました。"
"commandpack.nothing_restore_pack" = "§eパック '{pack}' に復元対象はありません。"
"commandpack.restored_file_s_from" = "§a{dumpPath} から {size} 件のファイルを復元しました。"
"commandpack.restore_mode_must_be_preview_apply" = "§c復元モードをプレビューまたは適用する必要があります。"
"commandpack.restore_mode_must_be_preview_apply" = "§c復元モードは preview または apply である必要があります。"
"commandpack.nothing_restore_pack_2" = "§eパック '{pack}' に復元対象はありません。"
"commandpack.restore_preview_file_s_no_files_were_changed" = "§e{dumpPath} の復元プレビュー: {size} 件のファイル。ファイルは変更されていません。"
"commandpack.restore_is_blocked_by_existing_destination_s" = "§c既存の復元先 {size} 件により復元がブロックされています。"
@@ -1512,14 +1464,13 @@ failed_fragment = " 失敗 {failed}"
"commandpack.status.broken" = "§c破損§r {pack}§7(ブロック={blocking}、警告={warnings})"
"commandpack.cleanup_failed" = "§cクリーンアップ失敗: {error}"
"commandpack.restore_failed" = "§c復元に失敗しました: {error}"
"commandpack.path.still_quarantined" = "まだ検疫"
"commandpack.path.still_quarantined" = "隔離されたまま"
"commandpack.path.quarantined" = "隔離済み"
"commandpack.path.candidate" = "候補"
"commandpack.path.conflict" = "競合"
"commandpack.path.restored" = "復元"
"commandpack.path.file" = "ファイル"
"commandpack.no_validation_result_run_iris_pack_validate" = "§e'{pack}' の検証結果がありません。/iris pack validate {pack2} を実行してください。"
"commandpack.validation_failed" = "§c'{name}' の検証に失敗しました: {error}"
"commandpack.pack_is_loadable_warnings" = "§aパック '{packName}' は読み込み可能です。§7(警告={size})"
"commandpack.pack_is_broken" = "§cパック '{packName}' は破損しています:"
"commandpack.message" = "§c - {reason}"
@@ -1548,7 +1499,7 @@ failed_fragment = " 失敗 {failed}"
"bulkstructureimporter.fail_6" = "§c[失敗] {keyString}: {error}"
"bulkstructureimporter.imported_skipped_failed" = "§7...{processed}/{total}(インポート {imported}、スキップ {skipped}、失敗 {failed})"
"bulkstructureimporter.template_import_complete_imported_skipped_failed_total" = "§aテンプレートのインポート完了: §f{imported}§a 件をインポート、§f{skipped}§a 件をスキップ、§f{failed}§a 件が失敗(合計 §f{total}§a 件)。"
"bulkstructureimporter.no_datapack_non_minecraft_structures_are_registered_ingest_datapack_restart_first_then" = "§edatapack(non-minecraft)の構造物が登録されていません。先に datapack を取り込んで再起動してから、もう一度実行してください。"
"bulkstructureimporter.no_datapack_non_minecraft_structures_are_registered_ingest_datapack_restart_first_then" = "§eデータパック(minecraft 以外)の構造物が登録されていません。先にデータパックを取り込んで再起動してから、もう一度実行してください。"
"bulkstructureimporter.importing_datapack_structures_mode" = "§aデータパック構造物 §f{total}§a 件をインポートしています(mode={mode})..."
"bulkstructureimporter.fail_invalid_key_3" = "§c[失敗] {keyString}: 無効なキー"
"bulkstructureimporter.jigsaw_2" = "§7[jigsaw] {keyString} -> {name}"
@@ -1570,14 +1521,14 @@ failed_fragment = " 失敗 {failed}"
"structurecaptureimporter.fail_2" = "§c[失敗] {key}: {error}"
"structurecaptureimporter.captured_skipped_failed" = "§7...{processed}/{total}(キャプチャ {imported}、スキップ {skipped}、失敗 {failed})"
"structurecaptureimporter.structure_capture_complete_captured_skipped_failed_total" = "§a構造物キャプチャ完了: §f{imported}§a 件をキャプチャ、§f{skipped}§a 件をスキップ、§f{failed}§a 件が失敗(合計 §f{total}§a 件)。"
"featureimporter.no_vanilla_tree_object_features_are_exposed_by_active_nms_binding_importing" = "§e現在の NMS バインディングではバニラの木またはオブジェクト機能を取得できません(構造物のみインポートします)。"
"featureimporter.importing_vanilla_tree_object_features_variants_each_into_scratch_world" = "§aバニラの木またはオブジェクト機能 §f{total}§a 件(各 §f{wantVariants}§a バリアント)を作業用ワールドにインポートしています..."
"featureimporter.no_vanilla_tree_object_features_are_exposed_by_active_nms_binding_importing" = "§e現在の NMS バインディングではバニラの木またはオブジェクトのフィーチャーを取得できません(構造物のみインポートします)。"
"featureimporter.importing_vanilla_tree_object_features_variants_each_into_scratch_world" = "§aバニラの木またはオブジェクトのフィーチャー §f{total}§a 件(各 §f{wantVariants}§a バリアント)を作業用ワールドにインポートしています..."
"featureimporter.obj_objects_vanilla" = "§7[obj] {key} -> objects/vanilla/{group}/{safeName} ({written})"
"featureimporter.skip_feature_placed_nothing_after_retries" = "§e[スキップ] {key}: 再試行しても機能が何も配置しませんでした。"
"featureimporter.skip_feature_placed_nothing_after_retries" = "§e[スキップ] {key}: 再試行してもフィーチャーが何も配置しませんでした。"
"featureimporter.fail" = "§c[失敗] {key}: {error}"
"featureimporter.imported_skipped_failed" = "§7...{processed}/{total}(インポート {imported}、スキップ {skipped}、失敗 {failed})"
"featureimporter.feature_import_complete_features_written_skipped_failed_total" = "§a機能のインポート完了: §f{imported}§a 件を書き込み、§f{skipped}§a 件をスキップ、§f{failed}§a 件が失敗(合計 §f{total}§a 件)。"
"featureimporter.could_not_create_scratch_world_feature_import_skipping_tree_object_pass" = "§c機能インポート用の作業ワールドを作成できませんでした({error})。木またはオブジェクトの処理をスキップします。"
"featureimporter.feature_import_complete_features_written_skipped_failed_total" = "§aフィーチャーのインポート完了: §f{imported}§a 件を書き込み、§f{skipped}§a 件をスキップ、§f{failed}§a 件が失敗(合計 §f{total}§a 件)。"
"featureimporter.could_not_create_scratch_world_feature_import_skipping_tree_object_pass" = "§cフィーチャーのインポート用の作業ワールドを作成できませんでした({error})。木またはオブジェクトの処理をスキップします。"
"irisconverter.no_schematic_files_convert_found" = "{path} に変換対象の schematic ファイルがありません"
"irisconverter.converted" = "§a{name} -> {value} に変換しました({value2})"
"irisconverter.converted_2" = "§a{name} -> {value} に変換しました"
@@ -1585,14 +1536,9 @@ failed_fragment = " 失敗 {failed}"
"irisconverter.failed_convert" = "§c変換に失敗しました: {name}"
"irisconverter.converted_3" = "§7変換完了: {get}({value})"
"irisconverter.some_schematics_failed_convert_check_console_details" = "§c一部の schematic を変換できませんでした。詳細はコンソールを確認してください。"
"studiosvc.pack_copy_requires_async_thread" = "§cIris refused to copy the world pack on the Bukkit primary thread."
"studiosvc.pack_install_failed" = "§cFailed to install world pack §f{dimension}§c: {error}"
"studiosvc.pack_copy_requires_async_thread" = "§cIris は Bukkit のメインスレッドでのワールドパックのコピーを拒否しました。"
"studiosvc.pack_install_failed" = "§cワールドパック §f{dimension}§c のインストールに失敗しました: {error}"
"studiosvc.looking_package" = "パッケージを探します: {type}"
"studiosvc.found_iris_folder" = "{WORKSPACENAME} フォルダーに {type}.iris が見つかりました"
"studiosvc.found_dimension_folder_repackaging" = "{WORKSPACENAME} フォルダーに {type} ディメンションが見つかりました。再パッケージしています"
"studiosvc.can_t_find_dimensions_folder_this_pack_failed" = "このパックの dimensions フォルダーに {name} がありません。失敗しました!"
"studiosvc.can_t_load_dimension_failed" = "ディメンションを読み込めません。失敗しました!"
"studiosvc.type_installed" = "{name} タイプをインストールしました。 "
"studiosvc.failed_open_studio_world" = "スタジオワールドを開けませんでした: {error}"
"studiosvc.cannot_open_studio_pack_has_blocking_errors" = "スタジオ '{dimm}' を開けません。パックに処理を妨げるエラーがあります:"
"studiosvc.message" = " - {reason}"
@@ -1603,19 +1549,16 @@ failed_fragment = " 失敗 {failed}"
"studiosvc.couldn_t_find_pack_create_new_dimension_from" = "新しいディメンションの作成元となるパックが見つかりませんでした。"
"studiosvc.missing_imported_dimension_file" = "インポートしたディメンションファイルがありません"
"studiosvc.importing_into_new_project" = "{downloadable} を新しいプロジェクト {s} にインポートしています"
"objectstudiosaveservice.object_studio_no_cell_under_click_x_z" = "§7オブジェクトスタジオ: クリック位置にセルがありません(x={x} z={z})。"
"objectstudiosaveservice.object_studio_saving_x_x" = "§bオブジェクトスタジオ: §f{pack}/{key}§7 を保存しています({w}x{h}x{d})"
"objectstudiosaveservice.object_studio_no_changes" = "§7オブジェクトスタジオ: {pack}/{key} に変更はありません。"
"objectstudiosaveservice.object_studio_empty_cell_nothing_write" = "§7オブジェクトスタジオ: {pack}/{key} は空のセルです(書き込む内容がありません)。"
"objectstudiosaveservice.object_studio_no_target_file" = "§cオブジェクトスタジオ: {pack}/{key} の保存先ファイルがありません。"
"objectstudiosaveservice.object_studio_saved" = "§aオブジェクトスタジオ: §f{pack}/{key} を保存しました"
"objectstudiosaveservice.object_studio_save_failed" = "§cオブジェクトスタジオ: {pack}/{key} の保存に失敗しました({error})"
"irisproject.could_not_load_dimension" = "ディメンション \"{value}\" を読み込めませんでした"
"irisproject.could_not_get_dimension_loader" = "ディメンションローダーを取得できませんでした"
"objectstudiosaveservice.object_studio_no_cell_under_click_x_z" = "§7Object Studio: クリック位置にセルがありません(x={x} z={z})。"
"objectstudiosaveservice.object_studio_saving_x_x" = "§bObject Studio: §f{pack}/{key}§7 を保存しています({w}x{h}x{d})"
"objectstudiosaveservice.object_studio_no_changes" = "§7Object Studio: {pack}/{key} に変更はありません。"
"objectstudiosaveservice.object_studio_empty_cell_nothing_write" = "§7Object Studio: {pack}/{key} は空のセルです(書き込む内容がありません)。"
"objectstudiosaveservice.object_studio_no_target_file" = "§cObject Studio: {pack}/{key} の保存先ファイルがありません。"
"objectstudiosaveservice.object_studio_saved" = "§aObject Studio: §f{pack}/{key} を保存しました"
"objectstudiosaveservice.object_studio_save_failed" = "§cObject Studio: {pack}/{key} の保存に失敗しました({error})"
"irisproject.studio_open_failed" = "§cスタジオを開けませんでした: {error}"
"irisproject.studio_open_failed_2" = "§cスタジオを開けませんでした。"
"irisproject.studio_ready" = "§aスタジオ準備完了 §7({value})"
"irisproject.studio" = "§6Studio §b{bar} §e{percent}%§7 {currentStage}§8 ({value})"
"irisproject.serializing_objects" = "オブジェクトのシリアライズ"
"irisproject.wrote_another_objects" = "さらに {g} 個のオブジェクトを書き込みました"
"irisproject.package_compiled" = "パッケージをコンパイルしました!"
@@ -1632,9 +1575,6 @@ failed_fragment = " 失敗 {failed}"
"iristoolbelt.you_have_been_evacuated_from_this_world_2" = "このワールドから退避しました。{m}"
"serverconfigurator.there_are_some_iris_packs_that_have_custom_biomes_them" = "カスタムバイオームを含む Iris パックがあります"
"serverconfigurator.you_need_restart_your_server_use_these_packs" = "これらのパックを使用するには、サーバーを再起動する必要があります。"
"virtualcommand.message" = "- §f{i}"
"virtualcommand.insufficient_permissions" = "権限が不足しています"
"mortarcommand.parameters_ignored" = "無視されたパラメーター: {m}"
"commandpack.compat_header" = "§eパック '{pack}': Minecraft {version} では利用できない内容があります"
"commandpack.compat_none" = "§aパック '{pack}' に Minecraft {version} で欠けている内容はありません。"
"commandpack.compat_remedy" = "§7この内容を復元するにはサーバーを新しい Minecraft に更新するか、代替を宣言してください (ディメンションの blockFallbacks、ブロックの backup)。"
@@ -1642,7 +1582,6 @@ failed_fragment = " 失敗 {failed}"
"commandpack.update_world_staged" = "§aワールド '{world}' 用に {pack} v{version} を準備しました。正常な再起動後、地形をなじませながら新しいパックが有効になります。"
"commandpack.update_world_unchanged" = "§aワールド '{world}' は同じ生成設定の {pack} v{version} を使用しています。再起動は不要です。"
[iris.runtime.studio]
opening = "§6Studio §bオープン中"
opening_progress = "§6Studio §bオープン中§7 {percent}%"
@@ -1667,23 +1606,23 @@ ready_progress = "§6Studio §a準備完了§7 100%"
[iris.runtime.world_create]
teleport_failed = "§eワールドを作成しましたが、自動テレポートに失敗しました。/iris teleport world={world} をお試しください"
"lifecycle.action" = "{bar}§7 §e{percent}%§7 | §f{stage}{detail}§8 {elapsed}"
"lifecycle.action.failed" = "{bar}§7 §cFAILED§7 | §f{stage}{detail}§8 {elapsed}"
"lifecycle.action.ready" = "{bar}§7 §a100%§7 | §aWorld ready§8 {elapsed}"
"lifecycle.console" = "§6World §b{world} {bar} §e{percent}%§7 {stage}{detail}§8 ({elapsed})"
"lifecycle.console.failed" = "§6World §b{world}§7 | §ccreation failed§8 after {elapsed}"
"lifecycle.console.ready" = "§6World §b{world}§7 | §aready§8 in {elapsed}"
"stage.initializing" = "Initializing"
"stage.resolve_dimension" = "Resolving dimension"
"stage.validate_pack" = "Validating pack"
"stage.prepare_world_pack" = "Preparing world pack"
"stage.install_datapacks" = "Installing datapacks"
"stage.prepare_generator" = "Preparing generator"
"stage.create_world" = "Generating spawn"
"stage.register_world" = "Registering world"
"stage.teleport_player" = "Entering world"
"stage.pregenerate" = "Pregenerating"
"stage.finalize" = "Finalizing"
"stage.complete" = "World ready"
"lifecycle.action.failed" = "{bar}§7 §c失敗§7 | §f{stage}{detail}§8 {elapsed}"
"lifecycle.action.ready" = "{bar}§7 §a100%§7 | §aワールドの準備完了§8 {elapsed}"
"lifecycle.console" = "§6ワールド §b{world} {bar} §e{percent}%§7 {stage}{detail}§8 ({elapsed})"
"lifecycle.console.failed" = "§6ワールド §b{world}§7 | §c作成に失敗しました§8({elapsed} 経過後)"
"lifecycle.console.ready" = "§6ワールド §b{world}§7 | §a準備完了§8({elapsed})"
"stage.initializing" = "初期化中"
"stage.resolve_dimension" = "ディメンションを解決中"
"stage.validate_pack" = "パックを検証中"
"stage.prepare_world_pack" = "ワールドパックを準備中"
"stage.install_datapacks" = "データパックをインストール中"
"stage.prepare_generator" = "ジェネレーターを準備中"
"stage.create_world" = "スポーンを生成中"
"stage.register_world" = "ワールドを登録中"
"stage.teleport_player" = "ワールドに入場中"
"stage.pregenerate" = "事前生成中"
"stage.finalize" = "完了処理中"
"stage.complete" = "ワールドの準備完了"
"pregen.action" = "{bar}§7 §e{percent}%§7 | §f事前生成中"
"pregen.console" = "§6事前生成中 §e{percent}%"
@@ -1772,7 +1711,6 @@ downloading = "{url} をダウンロードしています"
unpacking = "{repository} を展開しています"
unpack_failed = ["展開中に問題が発生しました。次の項目を確認してください:", "1. インターネット接続は利用できますか?", "2. ダウンロードしたファイルが破損していませんか?", "3. */plugins/iris/packs フォルダーを削除して、もう一度ダウンロードしてください。", "4. GitHub リポジトリからパックをダウンロードしてください: https://github.com/IrisDimensions/overworld", "5. ほかの方法で解決しない場合はサポートへ連絡してください。"]
no_extracted_files = "zip ファイルからファイルを展開できませんでした。"
home_directory_error = "ホームディレクトリの検出中にエラーが発生しました。ファイル名にテキスト以外の文字が含まれていないか確認してください。"
invalid_archive_format = "無効な形式です。ルートフォルダーがないか、フォルダーが多すぎます!"
no_dimension_file = "展開した zip ファイルにディメンションファイルがありません。"
check_github = "GitHub に存在することを確認し、スタッフへ報告してください!"
@@ -1790,9 +1728,8 @@ validated = "パック '{pack}' の検証が完了しました。"
"close_studio" = "インストール済みのパックを置き換える前に、開いている Studio プロジェクトを閉じてください。"
"backup_retained" = "以前のパックを {path} に保存しました。"
[iris.client.vision]
title = "Iris ビジョン"
title = "Iris Vision"
connecting = "Iris サーバーへ接続しています..."
not_connected = "未接続"
not_iris_world = "Iris ワールドではありません"
@@ -1808,16 +1745,15 @@ structures_required_title = "Iris は「構造物を生成」が必要です"
structures_required_body = "Iris は構造物生成ステップで独自の構造物を配置するため、「構造物を生成」をオフにして作成したワールドは読み込めません。「構造物を生成」をオンに戻すか、別のワールドタイプを選んでください。"
[iris.client.toast]
studio_hotload = "スタジオホットロード"
studio_hotload = "Studio ホットリロード"
changed_files = { other = "{count} ファイル", one = "{count} ファイル" }
reload_failed = "リロード失敗"
reloaded = "再読み込み完了"
pack_failed = "{pack} 失敗"
[iris.client.what]
title = "Iris 情報"
querying = "{x}, {z} を照会しています..."
biome = "バイオメ: {biome}"
biome = "バイオーム: {biome}"
region = "リージョン: {region}"
cave = "洞窟: {cave}"
height = "高さ: {height} ({x}, {z})"
@@ -1849,7 +1785,7 @@ slope = "§bスロープ§7: {slope}"
block_updates = "§bBUD/s§7: {updates}"
[iris.desktop.vision]
title = "Iris ビジョン"
title = "Iris Vision"
view = "表示:"
grid = "グリッド"
entities = "エンティティ"
@@ -1928,7 +1864,7 @@ status = "{name} | X: {x} Z: {z} | ズーム: {zoom} | 値: {value} | {
[iris.desktop.pregen]
chunk_coordinates = "チャンク X {x} · Z {z}"
window_hint = "このウィンドウを閉じても生成は続行されます。"
initializing = "初期化中..."
initializing = "生成を準備中"
title = "事前生成ビュー"
method_pending = "保留中"
paused = "一時停止中"
@@ -1966,115 +1902,115 @@ ready = "準備完了"
existing = "既存"
network = "ネットワーク"
terrain_hint = "完了したチャンクは地形の色で表示されます"
grid = "Grid"
grid_hint = "Show chunk and region borders (G)"
fit = "Reset view"
fit_hint = "Fit the whole generation area (R)"
zoom_in = "Zoom in (+)"
zoom_out = "Zoom out (-)"
zoom = "Zoom {zoom}"
shortcuts = "Shortcuts"
shortcuts_hint = "Show mouse and key shortcuts (/)"
navigation_hint = "Drag to pan · Scroll to zoom · Hover to inspect chunks"
shortcut_details = "Drag or arrow keys: pan\nScroll or + / -: zoom\nR or \\: fit generation area\nG: chunk and region grid\nP: pause or resume generation\n/ or Escape: close shortcuts"
grid = "グリッド"
grid_hint = "チャンクとリージョンの境界を表示 (G)"
fit = "表示をリセット"
fit_hint = "生成範囲全体を表示 (R)"
zoom_in = "ズームイン (+)"
zoom_out = "ズームアウト (-)"
zoom = "ズーム {zoom}"
shortcuts = "ショートカット"
shortcuts_hint = "マウスとキーのショートカットを表示 (/)"
navigation_hint = "ドラッグで移動 · スクロールでズーム · ホバーでチャンクを確認"
shortcut_details = "ドラッグまたは矢印キー: 移動\nスクロールまたは + / -: ズーム\nR または \\: 生成範囲に合わせる\nG: チャンクとリージョンのグリッド\nP: 生成を一時停止または再開\n/ または Escape: ショートカットを閉じる"
[iris.runtime.what]
material = "Material: {material}"
full_state = "Full: {state}"
item_count = "Count: {count}"
iris_biome = "Iris biome: {biome} ({name})"
derivative_biome = "Derivative biome: {biome}"
native_biome = "Registered biome: {biome} (ID: {id})"
non_iris_biome = "Non-Iris biome: {biome} (ID: {id})"
iris_region = "Iris region: {region} ({name})"
position = "Position: {x}, {y}, {z} (chunk {chunkX}, {chunkZ})"
object = "Iris object: {object}"
block_entity = "Block entity: {type}"
loot_table = "Loot table: {loot}"
spawner_entity = "Spawner entity: {entity}"
"flag.solid" = "solid"
"flag.fluid" = "fluid"
"flag.water" = "water"
"flag.waterlogged" = "waterlogged"
"flag.storage" = "storage (loot capable)"
"flag.lit" = "lit"
"flag.foliage" = "foliage"
"flag.plantable_foliage" = "plantable foliage"
"flag.decorant" = "decorant"
"flag.ore" = "ore"
"flag.block_entity" = "block entity"
material = "マテリアル: {material}"
full_state = "フル: {state}"
item_count = "個数: {count}"
iris_biome = "Iris バイオーム: {biome} ({name})"
derivative_biome = "派生バイオーム: {biome}"
native_biome = "登録済みバイオーム: {biome} (ID: {id})"
non_iris_biome = "Iris 以外のバイオーム: {biome} (ID: {id})"
iris_region = "Iris リージョン: {region} ({name})"
position = "位置: {x}, {y}, {z} (チャンク {chunkX}, {chunkZ})"
object = "Iris オブジェクト: {object}"
block_entity = "ブロックエンティティ: {type}"
loot_table = "ルートテーブル: {loot}"
spawner_entity = "スポナーのエンティティ: {entity}"
"flag.solid" = "固体"
"flag.fluid" = "流体"
"flag.water" = "水"
"flag.waterlogged" = "水没"
"flag.storage" = "ストレージ(ルート対応)"
"flag.lit" = "発光"
"flag.foliage" = "葉"
"flag.plantable_foliage" = "植え付け可能な葉"
"flag.decorant" = "装飾"
"flag.ore" = "鉱石"
"flag.block_entity" = "ブロックエンティティ"
[iris.runtime.world]
height_range = "World height: {minY} to {maxY}"
height_total = "Total height: {height}"
height_range = "ワールドの高さ: {minY} ~ {maxY}"
height_total = "総高さ: {height}"
[iris.desktop.imagemap]
title = "Image Map Studio"
preset = "Preset:"
load = "Load"
import_png = "Import PNG"
replace_png = "Replace PNG"
preview = "Preview"
export = "Export to active pack"
metadata = "Source metadata"
resource = "Resource binding"
coordinates = "Coordinates and sampling"
binding_key = "Binding key"
map_key = "Map key"
image_key = "Image key"
type = "Type"
application = "Application"
blocks_per_pixel = "Blocks per pixel"
origin_x = "World origin X"
origin_z = "World origin Z"
source_origin_x = "Source origin X"
source_origin_z = "Source origin Z"
rotation = "Rotation"
mirror_x = "Mirror X"
mirror_z = "Mirror Z"
sampling = "Sampling"
out_of_bounds = "Out of bounds"
alpha = "Alpha policy"
fallback_value = "Fallback value"
fallback_target = "Fallback target"
minimum_height = "Minimum height"
maximum_height = "Maximum height"
vertical_offset = "Vertical offset"
clamp = "Clamp height"
inverted = "Invert values"
curve_exponent = "Curve exponent"
smoothing_radius = "Smoothing radius"
threshold = "Threshold"
falloff = "Falloff"
color_tolerance = "Raw sRGB tolerance"
unknown_color = "Unknown color"
add_color = "Add legend color"
remove_color = "Remove selected"
composed_masks = "Composed masks"
add_mask = "Add mask binding"
height = "Height interpretation"
mask = "Mask interpretation"
color_map = "Color legend"
overlays = "World overlays"
chunks = "16-block chunks"
regions = "512-block regions"
boundary = "World boundary"
coverage = "Source coverage"
diagnostics = "Diagnostics"
ready = "Ready"
no_source = "Import a PNG source to begin."
loading = "Loading preset..."
load_failed = "Preset load failed"
previewing = "Compiling preview..."
preview_valid = "Runtime compiler validation passed."
preview_failed = "Preview failed"
exporting = "Validating and exporting..."
exported = "Exported image map, PNG, and dimension binding atomically."
export_failed = "Export failed"
source = "Source pixels"
interpreted = "Runtime interpretation"
no_preview = "Compile a valid preview to inspect world output."
preview_status = "X {x} Z {z} | {value} | {scale} blocks/pixel"
preset = "プリセット:"
load = "読み込み"
import_png = "PNG をインポート"
replace_png = "PNG を置き換え"
preview = "プレビュー"
export = "アクティブなパックにエクスポート"
metadata = "ソースのメタデータ"
resource = "リソースバインディング"
coordinates = "座標とサンプリング"
binding_key = "バインディングキー"
map_key = "マップキー"
image_key = "画像キー"
type = "タイプ"
application = "適用方法"
blocks_per_pixel = "1 ピクセルあたりのブロック数"
origin_x = "ワールド原点 X"
origin_z = "ワールド原点 Z"
source_origin_x = "ソース原点 X"
source_origin_z = "ソース原点 Z"
rotation = "回転"
mirror_x = "X 方向に反転"
mirror_z = "Z 方向に反転"
sampling = "サンプリング"
out_of_bounds = "範囲外"
alpha = "アルファの扱い"
fallback_value = "フォールバック値"
fallback_target = "フォールバック先"
minimum_height = "最小高さ"
maximum_height = "最大高さ"
vertical_offset = "垂直オフセット"
clamp = "高さを制限"
inverted = "値を反転"
curve_exponent = "カーブ指数"
smoothing_radius = "スムージング半径"
threshold = "しきい値"
falloff = "減衰"
color_tolerance = "sRGB 生値の許容差"
unknown_color = "不明な色"
add_color = "凡例の色を追加"
remove_color = "選択項目を削除"
composed_masks = "合成マスク"
add_mask = "マスクバインディングを追加"
height = "高さの解釈"
mask = "マスクの解釈"
color_map = "色の凡例"
overlays = "ワールドオーバーレイ"
chunks = "16 ブロックのチャンク"
regions = "512 ブロックのリージョン"
boundary = "ワールド境界"
coverage = "ソースの範囲"
diagnostics = "診断"
ready = "準備完了"
no_source = "開始するには PNG ソースをインポートしてください。"
loading = "プリセットを読み込んでいます..."
load_failed = "プリセットの読み込みに失敗しました"
previewing = "プレビューをコンパイルしています..."
preview_valid = "ランタイムコンパイラーの検証に合格しました。"
preview_failed = "プレビューに失敗しました"
exporting = "検証してエクスポートしています..."
exported = "イメージマップ、PNG、ディメンションバインディングをアトミックにエクスポートしました。"
export_failed = "エクスポートに失敗しました"
source = "ソースピクセル"
interpreted = "ランタイムでの解釈"
no_preview = "ワールドの出力を確認するには、有効なプレビューをコンパイルしてください。"
preview_status = "X {x} Z {z} | {value} | {scale} ブロック/ピクセル"
[language.menu]
your_language = "あなたの言語"
@@ -2109,8 +2045,9 @@ unavailable-for-all = "選択したすべてのプラグインで言語{locale}
[language.usage]
editor = "使い方: /{command} language server edit [locale]"
selection = "使い方: /{command} language self [locale|reset] or server [locale]"
selection = "使い方: /{command} language self [locale|reset] または server [locale]"
volmit-selection = "使い方: /volmit plugins languages [locale]"
update = "使い方: /{command} language update"
[language.selection]
preparing = "{target}の言語{locale}を準備しています..."
@@ -2120,6 +2057,14 @@ personal-selected = "{plugin}: 個人言語を{locale}に変更しました。"
server-selected = "{plugin}: サーバー言語を{locale}に変更しました。"
server-default-selected = "{plugin}: 個人言語はサーバーの既定の言語に従うようになりました。"
[language.update]
checking = "{plugin}: 言語リポジトリの変更を確認しています..."
unchanged = "{plugin}: インストール済みの言語はすでにリポジトリと一致しています。"
cooldown = "{plugin}: 言語リポジトリは最近確認されたばかりです。{remaining}後にもう一度お試しください。"
applied = "{plugin}: {locale} を更新しました(追加 {added}、変更 {updated}、ローカル編集の保持 {kept})。"
locale-failed = "{plugin}: {locale} は更新されませんでした: {reason}"
failed = "{plugin}: 言語の更新に失敗しました: {reason}"
[language.editor]
"section.languages" = "言語"
"section.search" = "検索"
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -3,24 +3,19 @@ package art.arcane.iris.localization;
import art.arcane.iris.testsupport.ProjectPaths;
import art.arcane.volmlib.util.localization.LocaleOverlay;
import art.arcane.volmlib.util.localization.LocalizationValidator;
import art.arcane.volmlib.util.localization.RemoteLanguageCatalog;
import art.arcane.volmlib.util.localization.PluginLanguageEditor;
import art.arcane.volmlib.util.localization.TextValue;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpServer;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -33,85 +28,77 @@ public class IrisDownloadValidationTest {
@Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder();
private LoopbackLanguageRepository repository;
private File dataFolder;
private Path language;
@Before
public void setUp() throws Exception {
repository = new LoopbackLanguageRepository();
dataFolder = temporaryFolder.newFolder();
assertTrue(IrisLanguage.reload(dataFolder, "en_US"));
language = dataFolder.toPath().resolve("languages/" + LOCALE + ".toml");
}
@After
public void tearDown() {
IrisLanguage.shutdown();
repository.close();
}
@Test
public void missingLanguageDownloadsOnceAndPreservesLaterEdits() throws Exception {
String complete = completeCatalog();
AtomicInteger requests = new AtomicInteger();
HttpServer server = server(complete, requests);
try (URLClassLoader resources = resources();
RemoteLanguageCatalog catalog = catalog(server, resources)) {
Path language = temporaryFolder.newFolder().toPath().resolve("languages/de_DE.toml");
assertEquals(complete, catalog.readOrInstall(LOCALE, language, IrisLanguage::validateDownload));
assertEquals(complete, Files.readString(language));
assertEquals(1, requests.get());
repository.publish(LoopbackLanguageRepository.REVISION_ONE, LOCALE, completeCatalog());
PluginLanguageEditor.SnapshotLoader loader = IrisLanguage.editorOptions().loader();
String edited = "\"iris.command.unknown\" = \"Eigener Befehl\"\n";
Files.writeString(language, edited);
assertEquals(edited, catalog.readOrInstall(LOCALE, language, IrisLanguage::validateDownload));
assertEquals(edited, Files.readString(language));
assertEquals(1, requests.get());
} finally {
server.stop(0);
}
assertEquals("Unbekannter Iris-Befehl", text(loader.load(LOCALE).value(IrisMessages.COMMAND_UNKNOWN)));
assertTrue(Files.isRegularFile(language));
assertTrue(Files.isRegularFile(dataFolder.toPath().resolve("languages/.upstream/" + LOCALE + ".toml")));
assertEquals(1, repository.rawRequests());
String edited = "\"iris.command.unknown\" = \"Eigener Befehl\"\n";
Files.writeString(language, edited);
assertEquals("Eigener Befehl", text(loader.load(LOCALE).value(IrisMessages.COMMAND_UNKNOWN)));
assertEquals(edited, Files.readString(language));
assertEquals(1, repository.rawRequests());
}
@Test
public void existingUnreadableLanguageIsNeverReplacedByADownload() throws Exception {
AtomicInteger requests = new AtomicInteger();
HttpServer server = server(completeCatalog(), requests);
try (URLClassLoader resources = resources();
RemoteLanguageCatalog catalog = catalog(server, resources)) {
Path language = temporaryFolder.newFile("de_DE.toml").toPath();
String unreadable = "[unterminated";
Files.writeString(language, unreadable);
repository.publish(LoopbackLanguageRepository.REVISION_ONE, LOCALE, completeCatalog());
Files.createDirectories(language.getParent());
String unreadable = "[unterminated";
Files.writeString(language, unreadable);
assertThrows(IllegalArgumentException.class,
() -> catalog.readOrInstall(LOCALE, language, IrisLanguage::validateDownload));
assertEquals(unreadable, Files.readString(language));
assertEquals(0, requests.get());
} finally {
server.stop(0);
}
assertThrows(Exception.class, () -> IrisLanguage.editorOptions().loader().load(LOCALE));
assertEquals(unreadable, Files.readString(language));
assertEquals(0, repository.rawRequests());
}
@Test
public void malformedDownloadDoesNotCreateALanguageFile() throws Exception {
AtomicInteger requests = new AtomicInteger();
HttpServer server = server("[unterminated", requests);
try (URLClassLoader resources = resources();
RemoteLanguageCatalog catalog = catalog(server, resources)) {
Path language = temporaryFolder.newFolder().toPath().resolve("de_DE.toml");
assertThrows(IllegalArgumentException.class,
() -> catalog.readOrInstall(LOCALE, language, IrisLanguage::validateDownload));
assertFalse(Files.exists(language));
assertEquals(1, requests.get());
} finally {
server.stop(0);
}
repository.publish(LoopbackLanguageRepository.REVISION_ONE, LOCALE, "[unterminated");
assertThrows(Exception.class, () -> IrisLanguage.editorOptions().loader().load(LOCALE));
assertFalse(Files.exists(language));
assertEquals(1, repository.rawRequests());
}
@Test
public void partialDownloadsInstallTheirValidMessages() throws Exception {
String partial = """
repository.publish(LoopbackLanguageRepository.REVISION_ONE, LOCALE, """
"iris.command.unknown" = "Unbekannter Iris-Befehl"
"iris.command.permission_denied" = "Missing placeholder"
"future.message" = "Future value"
""";
AtomicInteger requests = new AtomicInteger();
HttpServer server = server(partial, requests);
try (URLClassLoader resources = resources();
RemoteLanguageCatalog catalog = catalog(server, resources)) {
Path language = temporaryFolder.newFolder().toPath().resolve("de_DE.toml");
assertEquals(partial, catalog.readOrInstall(LOCALE, language, IrisLanguage::validateDownload));
assertEquals(partial, Files.readString(language));
LocaleOverlay overlay = IrisLanguage.parseOverlay(language.toString(), LOCALE, partial);
assertEquals(1, overlay.values().size());
assertEquals("Unbekannter Iris-Befehl", ((TextValue)
overlay.value(IrisMessages.COMMAND_UNKNOWN.id())).template());
assertEquals(1, requests.get());
} finally {
server.stop(0);
}
""");
IrisLanguage.editorOptions().loader().load(LOCALE);
LocaleOverlay overlay = IrisLanguage.parseOverlay(language.toString(), LOCALE, Files.readString(language));
assertEquals(1, overlay.values().size());
assertEquals("Unbekannter Iris-Befehl", text(overlay.value(IrisMessages.COMMAND_UNKNOWN.id())));
assertEquals(1, repository.rawRequests());
}
@Test
@@ -124,42 +111,11 @@ public class IrisDownloadValidationTest {
assertTrue(LocalizationValidator.validate(IrisLanguage.catalog(), List.of(overlay)).errors().isEmpty());
}
private static String text(Object value) {
return ((TextValue) value).template();
}
private String completeCatalog() throws IOException {
return Files.readString(ProjectPaths.moduleFile("src/main/resources/languages").resolve(LOCALE + ".toml"));
}
private HttpServer server(String content, AtomicInteger requests) throws IOException {
byte[] response = content.getBytes(StandardCharsets.UTF_8);
HttpServer server = HttpServer.create(new InetSocketAddress("127.0.0.1", 0), 0);
server.createContext("/master/languages/de_DE.toml", exchange -> respond(exchange, response, requests));
server.start();
return server;
}
private void respond(HttpExchange exchange, byte[] response, AtomicInteger requests) throws IOException {
requests.incrementAndGet();
try {
exchange.sendResponseHeaders(200, response.length);
exchange.getResponseBody().write(response);
} finally {
exchange.close();
}
}
private URLClassLoader resources() throws IOException {
Path resources = temporaryFolder.newFolder().toPath();
Files.writeString(resources.resolve("source.properties"), "revision=master\nlocales=de_DE\n");
return new URLClassLoader(new URL[]{resources.toUri().toURL()}, null);
}
private RemoteLanguageCatalog catalog(HttpServer server, ClassLoader resources) throws IOException {
return RemoteLanguageCatalog.load(new RemoteLanguageCatalog.Options(
"Iris",
URI.create("http://127.0.0.1:" + server.getAddress().getPort() + "/"),
"languages",
".toml",
"source.properties",
resources
));
}
}
@@ -2,18 +2,16 @@ package art.arcane.iris.localization;
import art.arcane.iris.testsupport.ProjectPaths;
import art.arcane.volmlib.util.config.TomlCodec;
import art.arcane.volmlib.util.localization.LanguageMeta;
import art.arcane.volmlib.util.localization.LocalizationCandidate;
import art.arcane.volmlib.util.localization.LocalizationSnapshot;
import art.arcane.volmlib.util.localization.PluginLanguageEditor;
import art.arcane.volmlib.util.localization.PluginLanguageService;
import art.arcane.volmlib.util.localization.PluralSelector;
import art.arcane.volmlib.util.localization.RemoteLanguageCatalog;
import art.arcane.volmlib.util.localization.TextValue;
import art.arcane.volmlib.util.localization.TomlLanguageEditor;
import art.arcane.volmlib.util.localization.VolmitLocales;
import com.google.gson.JsonElement;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpServer;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
@@ -21,16 +19,11 @@ import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.InetSocketAddress;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Logger;
import static org.junit.Assert.assertArrayEquals;
@@ -111,29 +104,16 @@ public class IrisLanguageEditorTest {
@Test
public void missingLocaleDownloadsAndCanBeEditedWithoutBeingSelected() throws Exception {
byte[] complete = Files.readAllBytes(ProjectPaths.moduleFile("src/main/resources/languages/fr_FR.toml"));
AtomicInteger requests = new AtomicInteger();
Field remoteField = IrisLanguage.class.getDeclaredField("remote");
remoteField.setAccessible(true);
RemoteLanguageCatalog previous = IrisLanguage.remote(directory);
HttpServer server = HttpServer.create(new InetSocketAddress("127.0.0.1", 0), 0);
try (RemoteLanguageCatalog catalog = RemoteLanguageCatalog.load(new RemoteLanguageCatalog.Options(
"Iris",
URI.create("http://127.0.0.1:" + server.getAddress().getPort() + "/"),
"languages",
".toml",
"iris-language-source.properties",
IrisLanguage.class.getClassLoader()
))) {
server.createContext(catalog.sourceUri("fr_FR").getPath(),
exchange -> respond(exchange, complete, requests));
server.start();
remoteField.set(null, catalog);
String complete = Files.readString(ProjectPaths.moduleFile("src/main/resources/languages/fr_FR.toml"));
try (LoopbackLanguageRepository repository = new LoopbackLanguageRepository()) {
repository.publish(LoopbackLanguageRepository.REVISION_ONE, "fr_FR", complete);
Path language = directory.toPath().resolve("languages/fr_FR.toml");
Files.delete(language);
PluginLanguageEditor.Document original = editor.load("fr_FR").get(5, TimeUnit.SECONDS);
assertArrayEquals(complete, Files.readAllBytes(language));
assertTrue(Files.isRegularFile(language));
assertEquals(IrisLanguage.parseOverlay("source", "fr_FR", complete).values(),
IrisLanguage.parseOverlay("installed", "fr_FR", Files.readString(language)).values());
TextValue value = new TextValue("Langue {locale}");
PluginLanguageEditor.Document saved = editor.save(new PluginLanguageEditor.Edit("fr_FR", IrisMessages.COMMAND_RELOAD_SUCCESS.id(),
original.snapshot().value(IrisMessages.COMMAND_RELOAD_SUCCESS), value)).get(5, TimeUnit.SECONDS);
@@ -142,13 +122,22 @@ public class IrisLanguageEditorTest {
assertEquals("en_US", languages.defaultLocale());
assertEquals("en_US", IrisLanguage.activeLocale());
assertEquals(value, IrisLanguage.editorOptions().loader().load("fr_FR").value(IrisMessages.COMMAND_RELOAD_SUCCESS));
assertEquals(1, requests.get());
} finally {
remoteField.set(null, previous);
server.stop(0);
assertEquals(1, repository.rawRequests());
}
}
@Test
public void editingAnUnknownLocaleCreatesACustomLanguageWithMeta() throws Exception {
IrisLanguage.editorOptions().loader().load("pirate");
Path file = directory.toPath().resolve("languages/pirate.toml");
LanguageMeta meta = LanguageMeta.parse(Files.readString(file));
assertEquals("pirate", meta.name().orElseThrow());
assertEquals("en_US", meta.base().orElseThrow());
assertTrue(IrisLanguage.availableLocales().contains("pirate"));
assertEquals("pirate", IrisLanguage.displayName("pirate"));
}
@Test
public void savingOneMessagePreservesUnknownValuesAndLeadingComments() throws Exception {
Path file = directory.toPath().resolve("languages/fr_FR.toml");
@@ -197,14 +186,4 @@ public class IrisLanguageEditorTest {
assertEquals("en_US", languages.defaultLocale());
assertEquals(value, IrisLanguage.editorOptions().loader().load("en_US").value(IrisMessages.COMMAND_UNKNOWN));
}
private static void respond(HttpExchange exchange, byte[] response, AtomicInteger requests) throws IOException {
requests.incrementAndGet();
try {
exchange.sendResponseHeaders(200, response.length);
exchange.getResponseBody().write(response);
} finally {
exchange.close();
}
}
}
@@ -0,0 +1,180 @@
package art.arcane.iris.localization;
import art.arcane.volmlib.util.localization.LanguageCatalogMerge;
import art.arcane.volmlib.util.localization.LanguageUpstreamSync;
import art.arcane.volmlib.util.localization.MessageArgs;
import art.arcane.volmlib.util.localization.MessageArgument;
import art.arcane.volmlib.util.localization.MessageValue;
import art.arcane.volmlib.util.localization.TextValue;
import art.arcane.volmlib.util.localization.TomlLanguageEditor;
import art.arcane.volmlib.util.localization.TomlLanguageParser;
import art.arcane.volmlib.util.localization.VolmitLocales;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
public class IrisLanguageSyncTest {
@Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder();
private File dataFolder;
private Path languages;
@Before
public void setUp() throws Exception {
dataFolder = temporaryFolder.newFolder();
languages = dataFolder.toPath().resolve("languages");
}
@After
public void tearDown() {
IrisLanguage.shutdown();
assertTrue(IrisLanguage.reload(dataFolder, "en_US"));
IrisLanguage.shutdown();
}
@Test
public void updateMergesTheRepositoryBranchWhileManualEditsAndCustomFilesSurvive() throws Exception {
try (LoopbackLanguageRepository repository = new LoopbackLanguageRepository()) {
repository.publish(LoopbackLanguageRepository.REVISION_ONE, "fr_FR", """
[iris.command]
unknown = "Commande inconnue v1"
[iris.command.reload]
success = "Langue {locale} v1"
""");
assertTrue(IrisLanguage.reload(dataFolder, "en_US"));
IrisLanguage.start();
UUID player = UUID.randomUUID();
IrisLanguage.selections().selectPlayer(player, "fr_FR").get(10L, TimeUnit.SECONDS);
Path french = languages.resolve("fr_FR.toml");
assertTrue(Files.isRegularFile(languages.resolve(".upstream/fr_FR.toml")));
assertTrue(Files.isRegularFile(languages.resolve(".upstream/upstream.properties")));
assertEquals("Commande inconnue v1", IrisLanguage.plain(player, IrisMessages.COMMAND_UNKNOWN, MessageArgs.empty()));
Files.writeString(french, TomlLanguageEditor.upsert(Files.readString(french),
IrisMessages.COMMAND_RELOAD_SUCCESS.id(), new TextValue("Langue locale {locale}")).content());
Path pirate = languages.resolve("pirate.toml");
String custom = """
[meta]
name = "Pirate Speak"
base = "fr_FR"
[iris.command]
unknown = "Arr, no such command"
""";
Files.writeString(pirate, custom);
repository.publish(LoopbackLanguageRepository.REVISION_TWO, "fr_FR", """
[iris.command]
unknown = "Commande inconnue v2"
permission_denied = "Permission {permission} manquante"
[iris.command.reload]
success = "Langue {locale} v2"
""");
repository.advance(LoopbackLanguageRepository.REVISION_TWO);
Path state = languages.resolve(".upstream/upstream.properties");
Files.writeString(state, Files.readString(state).replaceAll("(?m)^checked=.*$", "checked=0"));
LanguageUpstreamSync.SyncReport report = IrisLanguage.checkUpstream().get(10L, TimeUnit.SECONDS);
assertTrue(report.failure().isEmpty());
assertEquals(List.of("fr_FR"), report.changedLocales());
LanguageCatalogMerge.MergeResult merged = report.merged().get("fr_FR");
assertEquals(List.of(IrisMessages.COMMAND_RELOAD_SUCCESS.id()), merged.kept());
assertEquals(List.of(IrisMessages.COMMAND_UNKNOWN.id()), merged.updated());
assertEquals(List.of(IrisMessages.COMMAND_PERMISSION_DENIED.id()), merged.added());
Map<String, MessageValue> values = TomlLanguageParser.parseValidValues(Files.readString(french), IrisLanguage.catalog());
assertEquals("Langue locale {locale}", text(values.get(IrisMessages.COMMAND_RELOAD_SUCCESS.id())));
assertEquals("Commande inconnue v2", text(values.get(IrisMessages.COMMAND_UNKNOWN.id())));
assertTrue(Files.readString(languages.resolve(".upstream/fr_FR.toml")).contains("Langue {locale} v2"));
assertEquals(custom, Files.readString(pirate));
assertEquals("Commande inconnue v2", IrisLanguage.plain(player, IrisMessages.COMMAND_UNKNOWN, MessageArgs.empty()));
assertEquals(LoopbackLanguageRepository.REVISION_TWO,
IrisLanguage.upstreamStatus().orElseThrow().revision().orElseThrow());
assertTrue(IrisLanguage.debugReport().contains(LoopbackLanguageRepository.REVISION_TWO));
String settled = Files.readString(french);
LanguageUpstreamSync.SyncReport again = IrisLanguage.checkUpstream().get(10L, TimeUnit.SECONDS);
assertTrue(again.coolingDown());
assertTrue(again.changedLocales().isEmpty());
assertEquals(settled, Files.readString(french));
}
}
@Test
public void metaBaseChainResolvesBeforeEnglish() throws Exception {
Files.createDirectories(languages);
Files.writeString(languages.resolve("de_DE.toml"), """
[iris.command]
unknown = "Unbekannter Befehl"
[iris.command.reload]
success = "Sprache {locale} geladen"
""");
Files.writeString(languages.resolve("de_AT.toml"), """
[meta]
name = "Österreichisch"
base = "de_DE"
[iris.command]
unknown = "Unbekannter Befehl, Oida"
""");
assertTrue(IrisLanguage.reload(dataFolder, "de_AT"));
assertEquals("Unbekannter Befehl, Oida", IrisLanguage.plain(IrisMessages.COMMAND_UNKNOWN));
assertEquals("Sprache x geladen", IrisLanguage.plain(IrisMessages.COMMAND_RELOAD_SUCCESS,
MessageArgument.untrusted("locale", "x")));
assertFalse(IrisLanguage.plain(IrisMessages.COMMAND_PERMISSION_DENIED,
MessageArgument.untrusted("permission", "iris.all")).isBlank());
assertTrue(IrisLanguage.availableLocales().contains("de_AT"));
assertEquals("Österreichisch", IrisLanguage.displayName("de_AT"));
assertEquals("Österreichisch", IrisLanguage.metaName("de_AT"));
assertNull(IrisLanguage.metaName("de_DE"));
assertEquals(VolmitLocales.displayName("de_DE").orElseThrow(), IrisLanguage.displayName("de_DE"));
assertEquals("de_DE", IrisLanguage.meta("de_AT").base().orElseThrow());
}
@Test
public void englishReferenceGainsNewCatalogKeysWhileKeepingEdits() throws Exception {
assertTrue(IrisLanguage.reload(dataFolder, "en_US"));
Path english = languages.resolve("en_US.toml");
Path sidecar = languages.resolve(".upstream/en_US.toml");
String older = TomlLanguageEditor.remove(Files.readString(sidecar), IrisMessages.COMMAND_UNKNOWN.id()).content();
Files.writeString(sidecar, older);
Files.writeString(english, TomlLanguageEditor.upsert(older, IrisMessages.COMMAND_RELOAD_SUCCESS.id(),
new TextValue("Reloaded {locale} locally")).content());
IrisLanguage.shutdown();
assertTrue(IrisLanguage.reload(dataFolder, "en_US"));
Map<String, MessageValue> values = TomlLanguageParser.parseValidValues(Files.readString(english), IrisLanguage.catalog());
assertEquals(IrisLanguage.plain(IrisMessages.COMMAND_UNKNOWN), text(values.get(IrisMessages.COMMAND_UNKNOWN.id())));
assertEquals("Reloaded {locale} locally", text(values.get(IrisMessages.COMMAND_RELOAD_SUCCESS.id())));
assertEquals("Reloaded x locally", IrisLanguage.plain(IrisMessages.COMMAND_RELOAD_SUCCESS,
MessageArgument.untrusted("locale", "x")));
assertEquals(IrisLanguage.englishReference(), Files.readString(sidecar));
}
private static String text(Object value) {
return ((TextValue) value).template();
}
}
@@ -0,0 +1,83 @@
package art.arcane.iris.localization;
import art.arcane.volmlib.util.localization.GitHubLanguageSource;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpServer;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
final class LoopbackLanguageRepository implements AutoCloseable {
static final String REVISION_ONE = "1111111111111111111111111111111111111111";
static final String REVISION_TWO = "2222222222222222222222222222222222222222";
private final HttpServer server;
private final AtomicReference<String> revision = new AtomicReference<>(REVISION_ONE);
private final Map<String, String> files = new ConcurrentHashMap<>();
private final AtomicInteger rawRequests = new AtomicInteger();
LoopbackLanguageRepository() throws IOException {
server = HttpServer.create(new InetSocketAddress("127.0.0.1", 0), 0);
server.createContext("/api/", this::api);
server.createContext("/raw/", this::raw);
server.start();
URI root = URI.create("http://127.0.0.1:" + server.getAddress().getPort() + "/");
IrisLanguage.useLanguageSource(root.resolve("api/"), root.resolve("raw/"));
}
void publish(String publishedRevision, String locale, String content) {
files.put(publishedRevision + "/" + locale, content);
}
void advance(String nextRevision) {
revision.set(nextRevision);
}
int rawRequests() {
return rawRequests.get();
}
@Override
public void close() {
server.stop(0);
IrisLanguage.useLanguageSource(GitHubLanguageSource.API_ROOT, GitHubLanguageSource.RAW_ROOT);
}
private void api(HttpExchange exchange) throws IOException {
String etag = "\"" + revision.get() + "\"";
if (etag.equals(exchange.getRequestHeaders().getFirst("If-None-Match"))) {
exchange.sendResponseHeaders(304, -1);
exchange.close();
return;
}
exchange.getResponseHeaders().set("ETag", etag);
respond(exchange, ("[{\"sha\":\"" + revision.get() + "\"}]").getBytes(StandardCharsets.UTF_8));
}
private void raw(HttpExchange exchange) throws IOException {
rawRequests.incrementAndGet();
String[] parts = exchange.getRequestURI().getPath().split("/");
String content = files.get(parts[4] + "/" + parts[parts.length - 1].replace(".toml", ""));
if (content == null) {
exchange.sendResponseHeaders(404, -1);
exchange.close();
return;
}
respond(exchange, content.getBytes(StandardCharsets.UTF_8));
}
private void respond(HttpExchange exchange, byte[] response) throws IOException {
try {
exchange.sendResponseHeaders(200, response.length);
exchange.getResponseBody().write(response);
} finally {
exchange.close();
}
}
}
+39
View File
@@ -0,0 +1,39 @@
String languageSourceRepository = providers.gradleProperty('languageSourceRepository').orElse('VolmitSoftware/Iris').get()
String languageSourceBranch = providers.gradleProperty('languageSourceBranch').orElse(providers.provider {
try {
Process process = new ProcessBuilder('git', 'symbolic-ref', '--short', 'refs/remotes/origin/HEAD')
.directory(rootDir)
.redirectErrorStream(true)
.start()
String output = process.inputStream.text.trim()
if (process.waitFor() == 0 && output.startsWith('origin/')) {
return output.substring('origin/'.length())
}
} catch (IOException | InterruptedException ignored) {
}
return 'master'
}).get()
if (!(languageSourceRepository ==~ /[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+/)) {
throw new GradleException('languageSourceRepository must be a GitHub owner/repository')
}
if (!(languageSourceBranch ==~ /[A-Za-z0-9][A-Za-z0-9._\/-]{0,127}/) || languageSourceBranch.contains('..')) {
throw new GradleException('languageSourceBranch must be a Git branch name')
}
String languageSourcePath = 'core/src/main/resources/languages'
List<File> languageSourceFiles = new ArrayList<>(new File(rootDir, languageSourcePath).listFiles({ File file ->
file.isFile() && file.name.endsWith('.toml')
} as FileFilter) as List<File>)
languageSourceFiles.sort { File left, File right -> left.name <=> right.name }
List<String> languageSourceLocales = new ArrayList<>(languageSourceFiles.size())
for (File languageSourceFile : languageSourceFiles) {
languageSourceLocales.add(languageSourceFile.name.substring(0, languageSourceFile.name.length() - '.toml'.length()))
}
ext.languageSourceFiles = languageSourceFiles
ext.languageSourceManifest = [
'repository': languageSourceRepository,
'branch' : languageSourceBranch,
'path' : languageSourcePath,
'extension' : '.toml',
'locales' : languageSourceLocales.join(',')
] as LinkedHashMap<String, String>