Sambapos3 Localization HELP

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


2 Likes

Thank
it works