rcedit
rcedit copied to clipboard
Set Language Info from CLI
By default, the language is set as English US.
For those of us that are outside of the US, is there a way to set the language from the CLI, assuming we know the language / sub_lang hex codes ?
Currently, the locale code is hardcoded in rcedit.rc
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
Where 0x0409 == 1033 == en_us
and 1200
== 1.2.0.0 version.
SetVersionString()
is only exposing the1200 part (i.e. the version) in main.cc, but there is the an extended version of the function SetVersionString()
in rescle.cc.
Please allow us to pass locale codes from CLI (in hex or decimal or en_au format doesn't matter).
If there is already a way to do this, please explain. Thanks !
cc @zcbenz
Any progress so far?
Still waiting @nurtext ....
If my c++ skills were better I'd fix it myself and submit a PR.
Here is a simple node script that I knocked up that achieves the same thing if you're desperate: https://github.com/electron-userland/electron-builder/issues/672
I agree that it would be much better to fix here though!
Thanks @dharders, already seen the script. Curious how you implemented it in your build workflow. Any tips? Appreciate it!
The script was more a proof of concept, called after build but before code signing. Nothing special, just used as a gulp task / npm script.
That being said, I no longer use it as I'm using electron-builder with NSIS and it automatically handles it for me. However, only the installer has the correct language but the runtime still has English US, hence why I'm still waiting for this issue to be resolved.
no news on this? It seems NSIS has the option to set language but not the portable target
Any progress so far?
You can use peresed.exe
to apply a new .res by Python module pe_tools
before signing the .exe