I download chinese language file resx format from https://www.transifex.com.
and change some word to that file.
how to change resx format to dll format?
i search internet, found use 2 command resgen.exe and al.exe
how to use that command? i try to use that 2 command, but Unsuccessful.
i use resgen.exe change .resx to .resources
and al.exe change .resources to .dll
and put in sambapos zh-tw folder, but program not use, only display englishâŠ
how to use those two commandâŠ
I tried to to this as well, but also with no success.
This is what I did:
- rename the downloaded resx file to Samba.Localization.resx
- resgen Samba.Localization.resx Samba.Localization.resources
- al.exe /t:lib /culture:zh-CN /embed:Samba.Localization.resources /out:Samba.Localization.resources.dll /v:â1.0.0.0â /copy:âCopyright c 2011â /prod:Samba.Localization /title:Samba.Localization /flags:0x0000
When I look at the resulting dll file (with Heaventools Resource Tuner or with ResEdit), it looks exactly the same as the original dll file. But then, what I donât understand is why I canât see any of the strings in the dll file (not in the original or the one I recompiled).
If you have any success with this, please let me know what you did differentlyâŠ
I just tried again, and found the problem:
This will work:
-
download the resx file from https://www.transifex.com/.
-
edit the strings with ResxEditor if necessary
Â
Note: if you have a better translation for some strings, itâs better to contribute to SambaPOS by updating the translation on the Transifex site instead of just changing it for your own setup. After all, this is a free system that people put a lot of work into, and itâs just the polite thing to do.
Of course, sometimes you just want another translation for something where itâs only useful for your business or specific location. This is also what I want to use this for (I just want to âdumb downâ the translation a bit for my staff to make it easier to learn the system, although the translation will not be universally useful for everybody, and some translations are more specific for southwest china, not for the whole mainland). -
if you donât have it yet, download Windows SDK to get access to resgen.exe and al.exe
-
resgen
<name of resx file>
Samba.Localization.Properties.Resources.<language-string>
.resources
Â
For example, in my case this was:
Â
resgen for_use_sambapos_common-resources_zh_CN.resx Samba.Localization.Properties.Resources.zh-CN.resources
Itâs important that the name of the resulting resources file has this format, otherwise sambapos will not find the dll file we make after this. -
al.exe /t:lib /culture:
<language-string>
/embed:Samba.Localization.Properties.Resources.<language-string>
.resources /out:Samba.Localization.resources.dll /v:â1.0.0.0â /copy:âCopyright c 2011â /prod:Samba.Localization /title:Samba.Localization /flags:0x0000
Â
For example, in my case this was:
Â
al.exe /t:lib /culture:zh-CN /embed:Samba.Localization.Properties.Resources.zh-CN.resources /out:Samba.Localization.resources.dll /v:â1.0.0.0â /copy:âCopyright c 2011â /prod:Samba.Localization /title:Samba.Localization /flags:0x0000 -
then copy this dll in the folder for the language you need, it should work nowâŠ
ThankâŠit worksâŠ