home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 7309 / 010EditorTemplates.7z / ChoL-localisation-language-template.bt < prev    next >
Encoding:
Text File  |  2014-05-08  |  2.2 KB  |  51 lines

  1. //--------------------------------------
  2. //--- CHILD OF LIGHT localization file
  3. //
  4. // File: localization_*language*.isg.ckd
  5. // Author: tomsolo
  6. // Revision: 0.00001
  7. // Purpose: Life is Running
  8. //--------------------------------------
  9. BigEndian();
  10. byte    header[20]                  <hidden=true>;                                      //  Set any field to true, if dont need.
  11.  
  12. struct  LOCALIZATION (int i){
  13.     local  int count                <hidden=false>;                                     //  Set Show local variables if need this.
  14.     count = i+1;
  15.     int64   hash                    <hidden=true, /*bgcolor=0xFFBF00,*/format=hex>;     //  Yeah, this is not hash :)
  16.     int     stringLength            <hidden=false, bgcolor=0x00FF7F, name="Length">;    //  Length of the localised string. 
  17.     char    content[stringLength]   <bgcolor=0x7280FA, name="String">;                  //! Non-ascii chars need two bytes ! 
  18.     //!  UTF8 editing! 
  19.     //1. Please set Tools -> Options -> Files Interfaces -> Hex editor -> Charachter Set to UTF8!
  20.     //2. Before Editing add exact byte length of your localized text and cut(DEL) or add extra bytes! (CTRL+SHIFT+I)
  21. };
  22.  
  23. struct EXTRAPAD{
  24.     char    pad[24]                 <hidden=true>;                                     //SOMETHING EXTRAS
  25. };
  26.  
  27. local  int i                        <hidden=true>;
  28.  
  29.  
  30. for( i = 0; i < 3736; i++ )
  31.     {   
  32.         if (i < 273){
  33.             LOCALIZATION loc(i)     <open=true, name="LOCALIZATION">;
  34.         }
  35.         if (i == 273){
  36.             byte pad3[12]           <hidden=true>;                                      //AN EMPTY CHARSIZE BLOCK
  37.         }
  38.         if (i == 1563){
  39.             byte pad[4]             <hidden=true>;                                      //SOMETHING EXTRA
  40.             LOCALIZATION loc(i)     <open=true, name="LOCALIZATION">;
  41.         }
  42.         if (i > 273 && i < 1563){
  43.             LOCALIZATION loc(i)     <open=true, name="LOCALIZATION">;
  44.         }
  45.         if (i > 1563){
  46.             EXTRAPAD pad            <hidden=true>; 
  47.             LOCALIZATION loc(i)     <open=true, name="LOCALIZATION">;
  48.         }               
  49. }
  50. //EOF-----------------------------------
  51.