View Single Post
  #2  
Old 09-08-2015, 14:26
toto621 toto621 is offline
Registered User
 
Join Date: Jul 2015
Location: The World
Posts: 71
Thanks: 42
Thanked 47 Times in 23 Posts
toto621 is on a distinguished road
Thumbs up

Here we go, brand new script with Lockscreen disabled, internal compression and proper language support. It's only an addon, you NEED the updated package from the OP of this thread !!

No need to set it manually anymore, it will detect your OS current language.
Only french and english supported so far, if you use another language, you can force english output by changing this line at the begining of the script :
Code:
;Force english language
#define ForceEnglish 0
to
Code:
;Force english language
#define ForceEnglish 1
If you want to add another language, do the following :
1- Go to Inno language folder and pick isl file corresponding to your language.

2- Copy this isl file to the Lang folder of this archive.

3- Edit this file with notepad (for example) and add this section at the very bottom :
Code:
;; WPI messages ;;
WPIText1=Start
WPIText2=Install
WPIText3=Uninstall
WPIText4=Exit
WPIText5=Welcome
WPIText6=Finalization
WPIText7=Welcome to %1 Installer Wizard
WPIText8=You are installing %1 on your computer.
WPIText9=It is highly recommended that you close all programs
WPIText10=that may interfere with the installation progress.
WPIText11=When ready click Proceed to continue with installation or close to exit installation.
WPIText12=Select the destination of the product you are installing
WPIText13=will be installed in this Directory.
WPIText14=You can select a different directory by clicking the browse button.
WPIText15=Make sure you have enough space before installing.
WPIText16=Installing
WPIText17=Installer Wizard is installing the product.
WPIText18=This might take a while.
WPIText19=Completing the %1 Install Wizard
WPIText20=Installer has finished installing the product on your computer
WPIText21=has been installed successfully.
WPIText22=Proceed
WPIText23=Close
WPIText24=Click Finish to Close Install Wizard or Uninstall to Rollback changes made.
WPIText25=Create a shortcut
WPIText26=Install...
WPIText27=Are you sure that you want to close installer wizard?
WPIText28=This action closes installer wizard.
WPIText29=The product you are installing would not be installed.
WPIText30=You can re-install this product later on if not now.
WPIText31=Yes
WPIText32=No
WPIText33=Minimize
WPIText34=Finish
WPIText35=was not found.
WPIText36=Rolling back changes...
WPIText37=Uninstaller Wizard is uninstalling the product.
WPIText38=Uninstalling...
WPIText39=Back
WPIText40=Cancel
WPIText42=English
4- Now translate each line, note that you MUST keep the %1 when there is one, when setup is launched, it will be replaced by the game name. The only line that MUST stay in english if the last one (WPIText42) so if (for example) you translate in spanish this line must be like this :
Code:
WPIText42=Spanish
5- When the translation is done, open the script and add a line corresponding to your language in the script, under the [Languages] section. For example if you added spanish language, modify like this :
Code:
[Languages]
#if ForceEnglish == 1
Name: "Default"; MessagesFile: "Lang/English.isl"
#endif
#if ForceEnglish == 0
Name: "English"; MessagesFile: "Lang/English.isl"
Name: "French"; MessagesFile: "Lang/French.isl"
Name: "Spanish"; MessagesFile: "Lang/Spanish.isl"
#endif
6- Now go inside the Resources folder, copy the english.ini and rename it to your language name, in english, for example spanish.ini.

7- Now open this file and translate each line.

8- If you don't want to translate this file, simply let the WPIText42 line of your translated isl file to English.

9- It's done, enjoy the translated WPI script in your language

-- Edit --
09/10/2015:
- Spanish translation added, huge thx to omdj
- Fixed misplaced text with Spanish translation, download link updated
Attached Files
File Type: 7z WPI_No_Lock (08-09-2015).7z (31.4 KB, 55 views)
File Type: 7z WPI_No_Lock (08-10-2015 - Fixed).7z (37.2 KB, 128 views)

Last edited by toto621; 10-08-2015 at 02:27.
Reply With Quote
The Following 6 Users Say Thank You to toto621 For This Useful Post:
arkantos7 (10-08-2015), Grumpy (09-08-2015), mausschieber (09-08-2015), omdj (09-08-2015), pakrat2k2 (09-08-2015), Stor31 (10-08-2015)