Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Question about importing text in the Setup Wizard config file


Recommended Posts

Posted

Well well... long story short, I was working on translation/correction of the Setup Wizard Italian language file. Long work, short time. However, I was in the process of translating custom language entries, copy\pasting them from the general language file into the Setup Wizard config file.

Now that file is old, new features have been added in the meantime, and new antries have been added in the config file, too. I don't want to mess with that file manually adding\adjusting things, so I think I have to start from the beginning.

My question is: is it possible to automatically import the entries from Italian.ini into the SetupWizard_it.xml in the correct place? I'm referring to the custom language part of that file, of course.

For example, how did you, Ben, import the translated entries in the various language files? I suppose you used an automated process, don't you?

This question is directed to Tom and Ben, but if someone else has a solution or suggestion to share, please tell me.

Approximately 50% of that file is filled with custom language entries. If I could import them automatically, 50% of the job would be done, and I could concentrate my effort on the remaining part of the file.

Cheers,

Alpha.

Posted

It's automated for sure, I'm sure all the SW does is look at the specified XML and populate the values. It may even go by line count, in which case the language it's in is irrelevant.

Posted

I've updated the SetupWizard with the ability to import langauge ini files into SetupWizard xml files and export SetupWizard xml files to language ini files.

First of all make sure you backup the SetupWizard xml files in GameEx\CONFIG and the langauge files in GameEx\CONFIG\LANGUAGES because it will overwrite the current files.

To export a language ini file from a SetupWizard xml file use the following command line:

SetupWizard -exportlanguage=languagecode

Eg. For Italian

SetupWizard -exportlanguage=it

To import a language ini file into a SetupWizard xml file use the following command line:

SetupWizard -importlanguage=languagecode

Eg. For Italian

SetupWizard -importlanguage=it

Language codes are as follows:

Brazilian (Portuguese)=pt
Danish=da
Dutch=nl
English=en
French=fr
German=de
Italian=it
Japanese=ja
Spanish=es
Swedish=sv

This should also help anyone else wanting to do a translation.

SetupWizard.zip

Posted

Nice touch HK!

Posted

Thank you HK! Your update exceeds my expectations! And works like a charm! Thank thank thank you!

Guest
This topic is now closed to further replies.
×
×
  • Create New...