Jump to content


- - - - -

Question about importing text in the Setup Wizard config file


4 replies to this topic

#1 AlphaUMi

    Super Member!

  • Elite Member
  • PipPipPipPipPip
  • 347 posts
  • Gender:Male
  • Location:Italy

Posted 14 February 2012 - 01:53 PM

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.
Vitam impendere vero

#2 Adultery

    GameEx Tweaker!!

  • Moderators
  • PipPipPipPipPipPipPip
  • 4,670 posts
  • Gender:Male
  • Location:Wisconsin
  • Interests:Heiney-kins???

Posted 14 February 2012 - 06:38 PM

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 Image

Posted Image


#3 headkaze

    GameEx God (Top Rank)

  • Admin
  • PipPipPipPipPipPipPip
  • 3,969 posts

Posted 14 February 2012 - 08:52 PM

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.

Attached Files



#4 Adultery

    GameEx Tweaker!!

  • Moderators
  • PipPipPipPipPipPipPip
  • 4,670 posts
  • Gender:Male
  • Location:Wisconsin
  • Interests:Heiney-kins???

Posted 14 February 2012 - 09:31 PM

Nice touch HK!

Posted Image

Posted Image


#5 AlphaUMi

    Super Member!

  • Elite Member
  • PipPipPipPipPip
  • 347 posts
  • Gender:Male
  • Location:Italy

Posted 15 February 2012 - 11:26 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users