Translating another program

Everything else that doesn't fall into one of the other PB categories.
Nubcake
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Feb 03, 2011 7:44 pm

Translating another program

Post by Nubcake »

I've come across a program where everything is written in chinese , I was wondering how would I go about changing all the the strings to english? I mean usually if I wanted to do something like this I would use a hex editor but the one I have won't work for something like this. Can anyone provide some methods to do this?

Thanks
Nubcake
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Translating another program

Post by PB »

Where can we download the program to see?
We might be able to give some advice then.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Nubcake
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Feb 03, 2011 7:44 pm

Re: Translating another program

Post by Nubcake »

PB wrote:Where can we download the program to see?
We might be able to give some advice then.
Edit: Here is the link to the program http://www.mediafire.com/download/ss2n9 ... ngling.exe
Just so you know I have scanned this using VirusTotal and it has come up with 27/47 detection ratio so don't open it if you don't want to.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Translating another program

Post by PB »

> it has come up with 27/47 detection ratio

Ew, no thanks. :(

Maybe a different hex editor would work?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Nubcake
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Feb 03, 2011 7:44 pm

Re: Translating another program

Post by Nubcake »

PB wrote:> it has come up with 27/47 detection ratio

Ew, no thanks. :(

Maybe a different hex editor would work?
That's the thing , I don't know what hex editor to use , I found one called PSPad editor but I'm pretty clueless how to use it to change the strings , don't really know whether it;s UTF-16 / 32 etc...
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Translating another program

Post by PB »

Maybe you need a resource editor like this:

http://www.resedit.net/

It might be able to let you edit the strings.

[Edit] Also this: http://melander.dk/reseditor/
Last edited by PB on Sat Dec 21, 2013 5:55 pm, edited 1 time in total.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Nubcake
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Feb 03, 2011 7:44 pm

Re: Translating another program

Post by Nubcake »

PB wrote:Maybe you need a resource editor like this:

http://www.resedit.net/

It might be able to let you edit the strings.
This looks quite promising , thanks PB.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Translating another program

Post by IdeasVacuum »

More info about the app
http://www.youtube.com/watch?v=NQ71tuBNZ8s
http://www.youtube.com/watch?v=mk9qFl3FeCg
English Guide:
http://www.anonymous.vn/network/2013/11 ... -download/

I don't fancy your chances of editing the exe - the English strings are always going be much longer than the Chinese Strings.

Edit: Also, keep an eye on it - when the app is exited, it's process is still running, very suspicious!
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Nubcake
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Feb 03, 2011 7:44 pm

Re: Translating another program

Post by Nubcake »

Yeah I had some idea that during translation some strings would be longer and when I save it would overwrite with the new string and not work. Is there any way to overcome this?
Last edited by Nubcake on Sat Dec 21, 2013 7:06 pm, edited 1 time in total.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Translating another program

Post by IdeasVacuum »

It might be possible to ask the developer to compile an English version. I'll get my Chinese daughter to investigate :)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Translating another program

Post by IdeasVacuum »

The developers have got back to us - they intend to release an international version soon, but can't give a precise date at the moment :)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: Translating another program

Post by Thorium »

Nubcake wrote:Yeah I had some idea that during translation some strings would be longer and when I save it would overwrite with the new string and not work. Is there any way to overcome this?
There is, but it's complicated.
If the strings are referenced with fixed addresses you can add a new section the the PE file (exe) and put your english strings in there. Now you need to change all references to the chinese strings to your strings. That requires knowlege about the PE format and disassembling, to find and change all instructions that reference the strings.

I did this once for a game, but i changed only a few strings. It's a lot work for a whole app. And it may not work in all cases. It's not allways clear if a instruction references address or just a number that happens to be the same as the string address but has no relation to it.
Post Reply