home *** CD-ROM | disk | FTP | other *** search
/ ftp.rarlab.com / 2014.05.ftp.rarlab.com.tar / ftp.rarlab.com / rar / rarlng.rar / readme.txt next >
Text File  |  2013-01-11  |  13KB  |  307 lines

  1.                     Localization of WinRAR
  2.  
  3. I. Introduction
  4.  
  5.    We appreciate help of volunteer translators in localizing WinRAR
  6. to their languages. But before starting the job, and to avoid double work,
  7. please contact your local regsite or directly RAR developers 
  8. to check if nobody is working on it. You may find developers email address
  9. on rarlab.com "Feedback" page (it may change time to time due to spam
  10. and virus activity).
  11.  
  12.    If you do the translation, we will be glad to give you a free
  13. WinRAR registration. You may also put "Translated by <your name>" to
  14. WinRAR "About" dialog and help file. 
  15.  
  16.    If you are WinRAR translator and wish to get notifications about
  17. new WinRAR beta versions and releases, please write to roshal@rarxlab.com
  18. (please remove x from the middle of 'rarxlab'. Sorry, spam protection)
  19. about it and I will add you to my mailing list.
  20.  
  21.    There are a few possible levels of translation. The best is complete,
  22. when you translate all documentation, executable files, the installer
  23. and build the localized distributive. But incomplete is also acceptable.
  24. In last case you translate executables and only a part of documentation
  25. or none of documentation at all and put the translated files to SFX archive.
  26.  
  27.    You do not need to have any special skills to localize executable
  28. files, just edit plain text messages. Translating of winrar.chm is a bit
  29. more complicated, you'll need to use HTML Help Workshop, which is
  30. available here:  http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en
  31.  
  32.    Details of the localization process are described below.
  33.  
  34.  
  35. II. Localization of executable files
  36.  
  37.    There are two different methods to localize WinRAR executables.
  38. The first is simple and recommended, it does not require special
  39. skills and programs. You just edit plain text files containing
  40. program messages. The second method is much more complicated,
  41. you need to have a resource editor and compiler and be familiar
  42. with Windows resources. If you wish to use the second method,
  43. you need to look at Resources\readme.txt file, the first is described
  44. below.
  45.  
  46.   If you use the first method, please ignore all files from Resource
  47. folder. You need to translate all *.lng files in the folder "Lng"
  48. of this distributive. Translate only those strings, which are
  49. started with 8 characters length identifier like "45ae09fb".
  50. Identifiers must not be changed, edit only text enclosed to quotes. 
  51. Strings started from ';' are comments and you do not need to
  52. translate them. You may use any text editor to perform the translation.
  53. Files can be saved either as ASCII or as little endian Unicode text.
  54. Little endian Unicode is preferable, because it makes WinRAR localization
  55. independent from Windows language settings.
  56.  
  57. Lng files can include duplicate strings having same contents and identifiers.
  58. It is normal. Program generating .lng files uses string contents and dialog
  59. name to produce the string identifier. So if two strings in the same dialog
  60. or two strings outside of any dialog have the same contents, they will have
  61. the same identifier. It is better to translate both duplicate strings,
  62. though you can also just remove the second copy of such string.
  63. But in latter case it may be more difficult to update the translation,
  64. if only one of these strings is changed, because such change can be mentioned
  65. in whatsnew.txt as "second copy of string "somestr"".
  66.  
  67.    Do not modify or remove special character combinations like
  68. "%s", "%d", "\n". Character '&' precedes hot keys in dialogs
  69. and you may move it to another place of a string to assign
  70. a proper hot key.
  71.  
  72.    The first line in each group of dialog messages is "100*100"
  73. and denotes the dialog width and height in percents. If you need to
  74. increase a dialog size, you may change it, for example, to "120*100".
  75. But when possible, better avoid it and use shorter word equivalents
  76. instead of increasing of dialogs.
  77.  
  78.    If you translate to language having right to left reading order,
  79. add the following line to all .lng files:
  80.  
  81. 50a17ae8="RTL"
  82.  
  83. It will force executables to use right to left mode.
  84.  
  85.    Please do not change "http://www.rarlab.com" string unless
  86. you are an authorized RAR site.
  87.  
  88.    When the translation is done, you need to merge sfx.lng, rar.lng,
  89. and setup.lng files to SFX modules. It is necessary only for these
  90. three .lng files, for the rest of .lng it is enough to put them to
  91. the same folder as corresponding executables. Merging can be done
  92. using addlng.exe program from Lng folder.
  93.  
  94. For 32 bit WinRAR you need to merge translated sfx.lng to
  95. Lng\Default.SFX and Lng\Zip.SFX modules, translated rar.lng to
  96. Lng\WinCon.SFX module and translated setup.lng to Lng\Setup.SFX module.
  97.  
  98. For 64 bit WinRAR you need to merge translated sfx.lng to
  99. Lng\Default.SFX, Lng\Default64.SFX, Lng\Zip.SFX, Lng\Zip64.SFX modules,
  100. translated rar.lng to Lng\WinCon.SFX, Lng\WinCon64.SFX modules
  101. and translated setup.lng to Lng\Setup64.SFX module.
  102.  
  103. If you wish, you may use "copy/b" command instead of addlng.exe program.
  104.  
  105.   When this stage is completed, you should have translated
  106. rar.lng, rarext.lng, uninstall.lng, winrar.lng files.
  107.  
  108. Also for 32 bit WinRAR you should have modules Default.SFX, Zip.SFX,
  109. WinCon.SFX, Setup.SFX, where translated sfx.lng is merged to the first two
  110. modules, rar.lng is merged to WinCon.SFX and setup.lng is merged to
  111. Setup.SFX.
  112.  
  113. For 64 bit WinRAR you should have modules Default.SFX, Default64.SFX,
  114. Zip.SFX, Zip64.SFX, WinCon.SFX, WinCon64.SFX, Setup64.SFX, where translated
  115. sfx.lng is merged to the first four modules, rar.lng is merged
  116. to WinCon.SFX, WinCon64.SFX and setup.lng merged to Setup64.SFX.
  117.  
  118.   Note that if you wish to rename translated or English SFX modules,
  119. a new name of Default.SFX, Default64.SFX still must include "Def" substring
  120. and Zip.SFX, Zip64.SFX name - "Zip" substrings. 64 bit modules must include
  121. "64" just before the ".SFX" extension. For example, Def_ABC.SFX
  122. and Zip_ABC64.SFX are correct names, when Rar_ABC.SFX is incorrect.
  123.  
  124.  
  125. III. Translating and compiling the online help (winrar.chm)
  126.  
  127.    To translate WinRAR help you need to download and install
  128. HTML Help Workshop, which is available here:
  129.  
  130.    http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en
  131.  
  132.    You can also download the documentation for HTML Help Workshop
  133. on the same page.
  134.  
  135.    You need to translate HTML files from "Help\html" folder.
  136. They are plain text files and can be edited in any text editor
  137. like Notepad. Do not change HTML tags enclosed in angle brackets
  138. unless you understand what you do and need it for your design conception.
  139. Do not forget that these are HTML files, which should be edited according
  140. to HTML rules. For example, you cannot place " < > characters directly to
  141. them and must replace them with " < > correspondingly.
  142.  
  143.    All WinRAR English HTML files contain "charset=Windows-1252" string
  144. in META tag definition. You may need to replace 1252 with code page
  145. number for your language. List of code page numbers is available here:
  146. http://msdn.microsoft.com/en-us/library/dd317756%28VS.85%29.aspx
  147.  
  148.    Also you need to translate winrar.hhc and winrar.hhk files
  149. in "Help" folder. Winrar.hhc contains the help contents and winrar.hhk
  150. contains help keywords. You can use either HHW shell of HTML Help Workshop
  151. for this task or translate strings denotes as "###" in the following
  152. constructions:
  153.  
  154.   <param name="Name" value="###">
  155.   <param name="Keyword" value="###">
  156.  
  157.    After translating HTML files you can build winrar.chm file.
  158. You can do it with help compiler HCC.EXE from the command line:
  159.  
  160.   HCC.EXE /c winrar.hhp
  161.  
  162. or you may open winrar.hhp from HHW shell and run File/Compile.
  163. Both HHC.EXE and HHW shell are parts of HTML Help Workshop.
  164.  
  165.   Besides, I noticed a strange problem in HHW: it worked well with
  166. winrar.hhp if it was opened using "File/Open..." menu, but it failed
  167. to save modified winrar.hhp if it was opened by double clicking on
  168. its icon in Windows. So it might be safer to use "File/Open..." menu.
  169.  
  170.    After completing this stage, you should have the translated
  171. winrar.chm file.
  172.  
  173.    If you need to insert or delete a new topic you can edit
  174. winrar.hhc and winrar.hhk files manually as usual plain text files,
  175. but since their structure is rather complex, it may be easier to use
  176. HHW shell for this purpose. Firstly, add a new html file to "Project"
  177. page. Secondly, add it to "Contents" page. Thirdly, you may add
  178. keywords for new topic on "Index" page.
  179.  
  180.  
  181. IV. Translating text documents
  182.  
  183.    Translate descript.ion and all .txt files from WinRAR
  184. distributive. These are plain text files, so you may use any text
  185. editor to do it.
  186.  
  187.  
  188. V. Building the distributive
  189.  
  190.    If you translated all necessary files and wish to make a completely
  191. localized distributive, you need to unpack the complete contents
  192. of the original English WinRAR distributive to some folder. Unpack
  193. 32 bit WinRAR distributive when you build 32 bit version 
  194. and 64 bit WinRAR distributive when you build 64 bit version.
  195. After unpacking add the following translated files to this folder:
  196.  
  197. for 32 bit WinRAR:
  198.  
  199. rar.lng
  200. rarext.lng
  201. uninstall.lng
  202. winrar.lng
  203. Default.SFX
  204. Zip.SFX
  205. WinCon.SFX
  206. winrar.chm
  207.  
  208. for 64 bit WinRAR:
  209.  
  210. rar.lng
  211. rarext.lng
  212. uninstall.lng
  213. winrar.lng
  214. Default.SFX
  215. Default64.SFX
  216. Zip.SFX
  217. Zip64.SFX
  218. WinCon.SFX
  219. WinCon64.SFX
  220. winrar.chm
  221.  
  222. Do not copy sfx.lng, setup.lng or Setup.SFX here.
  223.  
  224.   Then you need to translate Lng\Setup.s file. This file is
  225. the same for 32 bit and 64 bit WinRAR. This is a plain text file,
  226. so you may use any text editor. It must be saved as Windows or Unicode text.
  227. Please translate only parameters of Text and Title command and nothing more.
  228. Its Text command contains HTML text. If you do not know HTML, there is
  229. a simple rule: just ignore all text between '<' and '>' characters and
  230. translate the rest. For example, in the text:
  231.  
  232.   Text
  233.   {
  234.   <b><i><font face="Terminal">WinRAR</font></i> is a powerful archiver</b>.
  235.   It provides complete support of <b><font color="#0000a0" face="Arial">RAR</font></b> and
  236.   }
  237.  
  238. you need to translate:
  239.  
  240.   "WinRAR", "is a powerful archiver", "It provides complete support of",
  241.   "RAR", "and"
  242.  
  243. and keep the rest of text untouched.
  244.  
  245.    If you translate to language having right to left reading order,
  246. add dir="rtl" to <body> tag of setup.s: <body dir="rtl" bgcolor="#efefef">
  247.  
  248. When you finished, put Setup.SFX (Setup64.SFX for 64 bit version)
  249. and setup.s to some other folder, not the same as other files.
  250.  
  251. For example, let's suppose that the folder with all prepared files
  252. is "C:\RAR" and the folder with Setup.SFX and setup.s is "C:\Setup",
  253. your WinRAR is installed to "c:\program files\winrar" and you wish
  254. to name the new distributive as wrar380ln.exe.
  255.  
  256. In such case you need to open MS-DOS Prompt and run:
  257.  
  258.   "c:\program files\winrar\rar" a -r -ep1 -cfg- -s -m5 -zc:\setup\setup.s -sfxc:\setup\Setup.SFX c:\setup\wrar380ln c:\rar\*.*
  259.  
  260. This command should create the distributive in "c:\setup" folder.
  261.  
  262. For 64 bit version this command will look like:
  263.  
  264.   "c:\program files\winrar\rar" a -r -ep1 -cfg- -s -m5 -zc:\setup\setup.s -sfxc:\setup\Setup64.SFX c:\setup\winrar-x64-380ln c:\rar\*.*
  265.  
  266. If you have other file or folder names, please edit the command line
  267. correspondingly.
  268.  
  269. If your setup.s is in Unicode, you also need to add -scuc switch to
  270. the command line.
  271.  
  272. Use following names for WinRAR distributives:
  273.  
  274.   - for 32 bit releases: wrarNNNll.exe, where "NNN" is a version number, 
  275.     3 digits, and "ll" is a language, 1 - 6 characters. For example,
  276.     wrar390ru.exe;
  277.  
  278.   - for 64 bit releases: winrar-x64-NNNll.exe, where "NNN" is a version
  279.     number, 3 digits, and "ll" is a language, 1 - 6 characters.
  280.     For example, winrar-x64-390fr.exe;
  281.  
  282.   - for 32 bit beta versions: wrarNNNbMll.exe, where "NNN" is a version
  283.     number, 2 or 3 digits, "M" is beta number, 1 digit, and "ll" is
  284.     a language, 1 - 6 characters. For example, wrar39b2nl.exe;
  285.  
  286.   - for 64 bit beta versions: winrar-x64-NNNbMll.exe, where "NNN" is
  287.     a version number, 2 or 3 digits, "M" is beta number, 1 digit, and "ll"
  288.     is a language, 1 - 6 characters. For example, winrar-x64-39b2cz.exe.
  289.  
  290. Do not lock SFX archive unless we already agreed that you lock and sign it
  291. with your signature. Send the distributive to roshal@rarxlab.com
  292. (please remove x from the middle of 'rarxlab'. Sorry, spam protection)
  293. to sign and add to our site.
  294.  
  295. Feel free to insert your name to "Translated by\nyour name" string
  296. in winrar.lng instead of "your name" text and you may also add your
  297. name as a translator to winrar.chm.
  298.  
  299. Unless you are RAR site, please do not change strings "site name",
  300. "site name 2", "site URL" and "site URL 2" in winrar.lng. But if you are
  301. official RAR site, you may add your RAR page to "site name" and "site URL".
  302. Also please do not change IDS_REMINDERURL string without WinRAR GmbH
  303. permission.
  304.  
  305.                                             Thank you for work!
  306.  
  307.