Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ezfit:5x:localization_instructions_for_developers [2013/12/13 13:51]
smayr
ezfit:5x:localization_instructions_for_developers [2013/12/16 15:18] (current)
smayr [Application Localization]
Line 20: Line 20:
         };         };
 </code>         </code>        
-  * [[swdev:dotnet:localization:Editing RESX Files with SimpleResxEditor]] +  * Translate original English RESX strings using Google Translate and [[http://resxtranslatorbot.codeplex.com|Resx Translator Bot]]. 
 +  * [[swdev:dotnet:localization:Editing RESX Files with SimpleResxEditor]]. 
 +  * Build ezFIT project.  Localization files should be generated under ''//<rootEzFIT>//\src\ezFIT\bin\x86\Debug\//<langcode>//''.
 == Installer Localization== == Installer Localization==
 === Instructions for Developers === === Instructions for Developers ===
  * Open InnoSetup installer script.  * Open InnoSetup installer script.
- * Add a directive to define language: <code bash>+ * Create file entries for all application localization files to distribute: <file bash installer-ezfit.iss> 
 +[InstallDelete] 
 +. . . 
 +;--------------------------------------------------- 
 +; Localization files 
 +;--------------------------------------------------- 
 +Name: {app}\AHI.App.Localization.dll; Type: files 
 +Name: {app}\es\AHI.App.Localization.resources.dll; Type: files 
 +. . . 
 + 
 +[Files] 
 +. . . 
 +;--------------------------------------------------- 
 +; Localization files 
 +;--------------------------------------------------- 
 +Source: {#SrcAppDir}\AHI.App.Localization.resources.dll; DestDir: {app}; Flags: ignoreversion skipifsourcedoesntexist 
 +Source: {#SrcAppDir}\es\AHI.App.Localization.resources.dll; DestDir: {app}\es; Flags: ignoreversion skipifsourcedoesntexist 
 +. . . 
 +</file> 
 + * Add a directive to define language (in ''includes\sysutils.iss''): <file bash sysutils.iss>
 #if AppLangSupp == "<LanguageNameHere>" #if AppLangSupp == "<LanguageNameHere>"
   #define <LanguageNameHere>   #define <LanguageNameHere>
Line 33: Line 53:
   #define English   #define English
 #endif #endif
-</code+</file
- * Add Language resources under section ''[Languages]'': <code bash>+ * Add Language resources under section ''[Languages]'': <file bash sysutils.iss>
 [Languages] [Languages]
 #ifdef English #ifdef English
Line 42: Line 62:
 Name: <LanguageNameHere>; MessagesFile: compiler:Languages\<LanguageNameHere>.isl Name: <LanguageNameHere>; MessagesFile: compiler:Languages\<LanguageNameHere>.isl
 #endif #endif
-</code+</file
- * Add and translate resource strings under section ''[CustomMessages]'': <code bash>+ * Add and translate resource strings under section ''[CustomMessages]'': <file bash sysutils.iss>
 [CustomMessages] [CustomMessages]
 #ifdef English #ifdef English
Line 55: Line 75:
 ... ...
 #endif #endif
-</code>+</file> 
 + * Add and translate resource strings under section ''[CustomMessages]'' for the following files: 
 +    * ''installer-ezfit.iss'' 
 +    * ''includes\database.iss'' 
 +    * ''includes\net-framework.iss'' 
 +    * ''includes\noah-support.iss'' 
 +    * ''includes\sysutils.iss'' 
 +    * ''includes\user-registration.iss''
  
 === Instructions for Translators === === Instructions for Translators ===