Closed maxijabase closed 3 years ago
These are the new lines required in the translation file (lang_0_spcode.xml
)
language.Add("JavaInstallCheck", "Checking for Java installation");
language.Add("JavaNotFoundTitle", "Java was not found");
language.Add("JavaNotFoundMessage",
"SPCode needs Java to decompile plugins, but it couldn't get it to work properly - " +
"perhaps an absent or incorrect Java installation. " +
"Do you wish to download and install it now?");
language.Add("JavaOutdatedTitle", "Java version found is outdated");
language.Add("JavaOutdatedMessage",
"SPCode requires Java 11 SDK or later to decompile plugins. " +
"We found an outdated version in your system. " +
"Do you wish to download and upgrade it now?");
language.Add("FailedToDecompile", "failed to decompile");
language.Add("DownloadingJava", "Downloading Java");
language.Add("FetchingJava", "Fetching installation file from https://adoptopenjdk.net...");
language.Add("AmountCompleted", "completed");
language.Add("AmountDownloaded", "downloaded");
language.Add("JavaOpened", "Java installation file opened");
language.Add("JavaSuggestRestart", "After installing Java, it is highly recommended to restart SPCode.");
language.Add("JavaDownErrorTitle", "Java download error");
language.Add("JavaDownErrorMessage", "SPCode could not download Java by itself. Would you like to download it manually?");
language.Add("JavaOpenedBrowser", "Java download link opened in browser");
Following language.Add(param1, param2)
, param1
is the XML tag that represents uniquely that translation line, and param2
is the actual translation. Translating the first line to Spanish, for example, would be going to lang_0_spcode.xml
, looking for the <es>
tag, and inside there, adding the following:
<javainstallcheck>Verificando la instalación de Java</javainstallcheck>
Following this pattern, feel free to open Pull Requests to contribute with your translations!
I just need lysis-java's license added in the About Window and this is ready for merging
Merged to development
.smx
file, decompile it, and open it in a new editorTO-DO:
java -version
command as well.