View Single Post
  #2  
Old 08-08-2015, 19:28
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
Lightbulb

Quote:
Originally Posted by punchao View Post
Only with precom+srep 1,95 GB
Testing all settings take time, much time and i also still unfamilliar with Freearc options, when use them, when not.

@all:
Here is a fully french translated version of WPI (No lockscreen with internal compression support).

By default it's still in english, to change language, simply change this line at the bigining of the script :
Code:
#define Language "us"
to
Code:
#define Language "fr"
Here is a preview of the result :


If you want to add your translation, it's structurated like this :
Code:
#if Language == "fr"
#define text1 "Démarage"
...
#endif
#if Language == "us"
#define text1 "Start"
...
#endif
Just refer to english text and translate each variable.

Since I'm still new to Inno and script language I could not direct translate some sentences because the sentence build is not the same from english to french, for example this english sentence :
Code:
Welcome to {#AppName} Installer Wizard
is translated like this in french :
Code:
Bienvenue sur l'assistant d'installation de {#AppName}
As you can see, {#AppName} is not located at the same place so for this type of sentences I added if loop in the code...I know it's dirty but I did not found how to keep {#AppName} as a variable, not a simple string, uninterpreted by the compiler.

If someone know please tell me and I will update the script so you will be able to translate each text without messing with the code
Attached Files
File Type: 7z WPI_No_Lock_US_and_FR.7z (64.1 KB, 80 views)

Last edited by toto621; 08-08-2015 at 19:31.
Reply With Quote