Skip to content

Commit

Permalink
refactor: update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Aug 4, 2024
1 parent 2110a94 commit 99f0079
Show file tree
Hide file tree
Showing 21 changed files with 590 additions and 1,163 deletions.
4 changes: 2 additions & 2 deletions scripts/download_crowdin_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import requests
from zipfile import ZipFile

PROJECT_ID = "644072"
OUTPUT_DIR = "../src/lang/"
PROJECT_ID = "648706"
OUTPUT_DIR = "./src/lang/"


class Client(CrowdinClient):
Expand Down
121 changes: 40 additions & 81 deletions src/lang/de.json
Original file line number Diff line number Diff line change
@@ -1,91 +1,50 @@
{
"base": {
"getDimName": {
"0": "Overworld",
"1": "Nederland",
"2": "Ende",
"unknown": "Sonstige Dimension"
"Failed to enable: {0}": "Fehler beim Aktivieren: {0}",
"Failed to load: {0}": "Fehler beim Laden: {0}",
"Cannot save default configurations to {0}": "Standardkonfigurationen können nicht in {0} gespeichert werden",
"Failed to read BaseLib at {0}": "Fehler beim Lesen von BaseLib auf {0}",
"Failed to register plugin manager": "Fehler beim Registrieren des Plugin-Managers",
"Failed to load plugin code": "Fehler beim Laden des Plugin-Codes",
"Failed to read plugin entry at {0}": "Fehler beim Lesen des Plugin-Eintrags auf {0}",
"Failed to load plugin {0}: {1}\\n{2}": "Fehler beim Laden des Plugins {0}: {1}\\n{2}",
"Failed to unload plugin {0}: {1}": "Entladen des Plugins {0}fehlgeschlagen: {1}",
"Migrating legacy plugin at {0}": "Altes Plugin auf {0} migrieren",
"Failed to migrate legacy plugin at {0}: {1} already exists": "Fehler beim Migrieren des älteren Plugins auf {0}: {1} existiert bereits",
"Failed to create directory {0}": "Verzeichnis {0} konnte nicht erstellt werden",
"Migrating legacy plugins": {
"": {
"": {
"": "Alte Plugins werden migriert..."
}
}
},
"llse": {
"init": {
"llMoney": {
"notFound": "LLMoney.dll nicht gefunden, ScriptEngine Economy System funktioniert nicht"
}
},
"api": {
"ll": {
"require": {
"success": " - Plugin muss geladen werden. geladen: ",
"fail": " - Plugin erfordert Laden fehlgeschlagen",
"download": {
"success": " - Erfolgreich heruntergeladen erforderlich! Pfad: ",
"fail": " - Download Plugin erforderlich fehlgeschlagen! Code: "
}
}
}
},
"apiHelp": {
"parseJson": {
"fail": "JSON-Parse-Fehler"
}
},
"loader": {
"loadDepends": {
"success": "Abhängigkeit {} geladen.",
"fail": "Fehler beim Laden der Abhängigkeit {}"
},
"loadMain": {
"start": "Lade {type} Plugins...",
"done": "{count} {type} Plugin(s) geladen.",
"nodejs": {
"installPack": {
"fail": "Installation des Plugin-Pakets {}, bitte überprüfe deine package.json-Datei!",
"start": "Node.js Plugin Pack \"{path}\" gefunden! Versuche es zu installieren..."
},
"ignored": "Keine package.json-Datei im Verzeichnis {path}gefunden, ignoriert."
},
"loadedPlugin": "{type} Plugin <{name}> geladen.",
"installPluginPack": {
"done": "{count} {type} Plugin-Paket(e) installiert."
},
"python": {
"ignored": "Keine pyproject.toml Datei im Verzeichnis {path}gefunden, ignoriert.",
"installPack": {
"start": "Python Plugin Pack \"{path}\"gefunden! Versuche zu installieren...",
"fail": "Fehler beim Installieren des Plugin-Pakets {}, bitte überprüfen Sie die Quelldateien!"
}
}
},
"nodejs": {
"executeNpmInstall": {
"success": "Npm erfolgreich abgeschlossen.",
"start": "Führe \"npm install\" für Plugin {name} aus ...",
"fail": "Fehler aufgetreten. Exit-Code: {code}"
},
"register": {
"fail": "Fehler beim Helfen des Plugins {name} registriert werden!"
}
},
"python": {
"executePipInstall": {
"start": "Führe \"pip install\" für Plugin {name} aus ...",
"success": "Pip erfolgreich abgeschlossen.",
"fail": "Fehler aufgetreten. Exit-Code: {code}"
}
"Legacy plugins have been migrated, please restart the server to load them!": "Alte Plugins wurden migriert, bitte starte den Server neu, um sie zu laden!",
"Overworld": "Overworld",
"Nether": "Nederland",
"End": "Ende",
"Other dimension": "Sonstige Dimension",
"JSON parse error": "JSON-Parse-Fehler",
"Npm finished successfully": {
"": "Npm erfolgreich abgeschlossen."
},
"Executing \"npm install\" for plugin {name}": {
"": {
"": {
"": "Führe \"npm install\" für Plugin {name} aus ..."
}
}
},
"llseapi": {
"require": {
"fail": "Plugin, das von {0} benötigt wird, wurde nicht gefunden.",
"success": "Plugin mit dem Namen {0} , das von {1} benötigt wird.",
"network": {
"fail": "Fehler beim Herunterladen des Plugins, das von {0}benötigt wird, http-Code: {1}"
},
"download": {
"success": "Plugin herunterladen, das von {0} benötigt wird, Pfad {1}."
"Error occurred": {
" Exit code: {code}": "Fehler aufgetreten. Exit-Code: {code}"
},
"Executing \"pip install\" for plugin {name}": {
"": {
"": {
"": "Führe \"pip install\" für Plugin {name} aus ..."
}
}
},
"Pip finished successfully": {
"": "Pip erfolgreich abgeschlossen."
}
}
121 changes: 40 additions & 81 deletions src/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,91 +1,50 @@
{
"base": {
"getDimName": {
"0": "Overworld",
"1": "Nether",
"2": "End",
"unknown": "Other dimension"
"Failed to enable: {0}": "Failed to enable: {0}",
"Failed to load: {0}": "Failed to load: {0}",
"Cannot save default configurations to {0}": "Cannot save default configurations to {0}",
"Failed to read BaseLib at {0}": "Failed to read BaseLib at {0}",
"Failed to register plugin manager": "Failed to register plugin manager",
"Failed to load plugin code": "Failed to load plugin code",
"Failed to read plugin entry at {0}": "Failed to read plugin entry at {0}",
"Failed to load plugin {0}: {1}\\n{2}": "Failed to load plugin {0}: {1}\\n{2}",
"Failed to unload plugin {0}: {1}": "Failed to unload plugin {0}: {1}",
"Migrating legacy plugin at {0}": "Migrating legacy plugin at {0}",
"Failed to migrate legacy plugin at {0}: {1} already exists": "Failed to migrate legacy plugin at {0}: {1} already exists",
"Failed to create directory {0}": "Failed to create directory {0}",
"Migrating legacy plugins": {
"": {
"": {
"": "Migrating legacy plugins..."
}
}
},
"llse": {
"init": {
"llMoney": {
"notFound": "LLMoney.dll not found, ScriptEngine Economy System won't work"
}
},
"api": {
"ll": {
"require": {
"success": " - Plugin require loaded successfully. Loaded: ",
"fail": " - Plugin require load failed",
"download": {
"success": " - Successfully downloaded require! Path: ",
"fail": " - Download plugin require failed! Code: "
}
}
}
},
"apiHelp": {
"parseJson": {
"fail": "JSON parse error"
}
},
"loader": {
"loadDepends": {
"success": "Dependence {} loaded.",
"fail": "Fail to load dependence {}"
},
"loadMain": {
"start": "Loading {type} plugins...",
"done": "{count} {type} plugin(s) loaded.",
"nodejs": {
"installPack": {
"fail": "Failed to install plugin pack {}, please check your package.json file!",
"start": "Found Node.js plugin pack \"{path}\"! Try installing..."
},
"ignored": "No package.json file found in directory {path}, ignored."
},
"loadedPlugin": "{type} plugin <{name}> loaded.",
"installPluginPack": {
"done": "{count} {type} plugin pack(s) installed."
},
"python": {
"ignored": "No pyproject.toml file found in directory {path}, ignored.",
"installPack": {
"start": "Found Python plugin pack \"{path}\"! Try installing...",
"fail": "Failed to install plugin pack {}, please check the source files!"
}
}
},
"nodejs": {
"executeNpmInstall": {
"success": "Npm finished successfully.",
"start": "Executing \"npm install\" for plugin {name}...",
"fail": "Error occurred. Exit code: {code}"
},
"register": {
"fail": "Fail to help plugin {name} get registered!"
}
},
"python": {
"executePipInstall": {
"start": "Executing \"pip install\" for plugin {name}...",
"success": "Pip finished successfully.",
"fail": "Error occurred. Exit code: {code}"
}
"Legacy plugins have been migrated, please restart the server to load them!": "Legacy plugins have been migrated, please restart the server to load them!",
"Overworld": "Overworld",
"Nether": "Nether",
"End": "End",
"Other dimension": "Other dimension",
"JSON parse error": "JSON parse error",
"Npm finished successfully": {
"": "Npm finished successfully."
},
"Executing \"npm install\" for plugin {name}": {
"": {
"": {
"": "Executing \"npm install\" for plugin {name}..."
}
}
},
"llseapi": {
"require": {
"fail": "Plugin which is required by {0} not found.",
"success": "Plugin named {0} which is required by {1} loaded.",
"network": {
"fail": "Error occurred when download plugin which is required by {0}, http code: {1}"
},
"download": {
"success": "Download plugin which is required by {0} successfully, path {1}."
"Error occurred": {
" Exit code: {code}": "Error occurred. Exit code: {code}"
},
"Executing \"pip install\" for plugin {name}": {
"": {
"": {
"": "Executing \"pip install\" for plugin {name}..."
}
}
},
"Pip finished successfully": {
"": "Pip finished successfully."
}
}
Loading

0 comments on commit 99f0079

Please sign in to comment.