
This README describes localizing WinRAR executables by editing
and compiling resources. You should use this method only if you
are experienced in Windows programming and sure that it is more
convenient for you. Otherwise please use the .lng translation
method described in README from the root of this package.


1. Translating resources of winrar.exe, rar.exe, unrar.exe, rarext.dll,
   uninstall.exe and building rarlng.dll;

All these executables store messages in resource data, but you do not
need to edit their resources directly. Instead you may build rarlng.dll
from provided in "RAR" directory resources. There is rarlng.vcxproj project
for Visual Studio in this directory. You need to open the project
in Visual Studio shell, select "Release", "Win32" configuration on toolbar
and select "Build solution" in "Build" menu. Rarlng.dll will be created
in "build\32\Release" directory. Since we do not use any executable code
in rarlng.dll, its 32 bit version works correctly with both 32 bit
and 64 bit WinRAR. So there is no need to build 64 bit rarlng.dll
for 64 bit WinRAR  separately, though, of course, you can do it if you wish.

By default WinRAR executables and rarext.dll use their own English
resources, but if rarlng.dll presents in their directory, they will
load it and use its resources. It allows to avoid necessity of modifying
exe and dll modules. On the other hand, if you wish you may link
translated resources directly to exe files. Both ways provide almost
equal functionality, so select more convenient for you.


2. Translating SFX module resources and building SFX modules;

Because SFX modules are distributed separately, they cannot use
an external DLL to load resources. SFX resources are provided
in "SFX" direcory. You should either translate .rc files and link 
them to SFX modules or edit resources directly in SFX modules.
You can also use lng translation described in readme.txt in root 
directory of rarlng.rar for SFX modules. Editing resources 
directly in SFX modules is the least recommended among all methods,
because it makes more difficult to reuse your translation work, 
when localizing next WinRAR versions.


3. Translating resources of the special SFX module, used in WinRAR
   installation package;

You need to translate resources of SFX module, provided in "Install"
directory and build this module. It is standard default.sfx module
with modified resources and it is used to build WinRAR distributive.


4. Right to left reading order

If you translate to language with right to left reading order,
add the following text to all .rc files:

RTL DIALOG 0, 0, 0, 0
{
}

It will force executables to use RTL mode.

If you build rarlng.dll file instead of linking .rc files to exe, 
you need to add this text only to winrar.rc to avoid duplicate 
resource error.


5. Editing resources directly in executables.

Editing languages resources directly in WinRAR executables is not recommended,
but if you still prefer such approach, you need to download
ftp://ftp.rarlab.com/rar/rarlng_unsigned.rar
unsigned executables. Editing resources in digitally signed exe may lead
to invalid digital signature.
