hutchcj
Mar 12, 2007, 04:27 AM
I finally got my hands on RSK. But the down side is that I really don't speak German. I tried to play around but I couldn't quite get it. So I started to tinker with the exe file and this is what I've come up with.
I've created an executable that will translate from one language to another. All you need to do is supply it with a text file of strings to convert.
So far I've translated some of the words (just from web translations), but it's got a ways to go yet. So I'm asking that the rest of you put in a little effort and help translate some of the words. I figure if each person could translate one or two words then this should be a breeze. Once you've run the translation, just run the new file (rsk_en.exe) and you'll see which words still need to be translated.
Now there are a few things with the program. I haven't really polished it yet, but it does work.
Things to note:
1) it will truncate the replace string if it's longer than the find string
ie. 'Härte der ersten Bodenschicht ändern','Change hardness of the first ground layer'
would get truncated to ''Change hardness of the first ground '
2) it should skip a blank line, but try not to put them in the text file anyway. This also means the last line!!
3) If there is a smaller string before a common longer one, then the longer one won't get changed.
ie.'öffnen','open'
'Projekt öffnen...','Open Project...'
will change 'öffnen' to 'open' but then won't find 'Projekt öffnen...' because it would look like 'Projekt open...',
So longer string need to be at the start of the text file and shorter strings need to be at the end of the file.
4) each new translation need to be on a new line.
ie. 'Find String1','Replace String1'
'Find String2','Replace String2'
'etc...','etc...'
5) The program (replace.exe) will only change wide character formats (16bit). You guys shouldn't need to worry about this because it's all setup for RSK.exe. I'll get around to adding normal string replacements but I don't need to do that for this project.
6) Just copy replace.exe and text.txt into your reflex directory (usually c:\Program Files\Reflex\). Goto Start->Run and type cmd and hit enter. You should see a black window (this is the command prompt) (If that doesn't work, try Start->Programs->Accessories->Command Prompt). Type cd "\Program Files\Reflex\" and then type replace RSK.exe text.txt and hit enter. The program will run and that should be that. Note that replace will NOT write over your original file. It will create a new one called rsk_en.exe
I think that's about it for now.
You can get the two files here:
http://carboncopies.com.au/replace/replace.exe
http://carboncopies.com.au/replace/text.txt
If any of this doesn't make sense (or your having some problems) let me know and I'll try to explain it a little better. email: colin@carboncopies.com.au
Please post your new translations (or link to the text file) or email them to me and I'll update the online text file.
Oh, and let me know how you go. :-)
Disclaimer: Use this program at your own risk. I do not take responsibility for misuse of this program!! (I had to put that there)
I've created an executable that will translate from one language to another. All you need to do is supply it with a text file of strings to convert.
So far I've translated some of the words (just from web translations), but it's got a ways to go yet. So I'm asking that the rest of you put in a little effort and help translate some of the words. I figure if each person could translate one or two words then this should be a breeze. Once you've run the translation, just run the new file (rsk_en.exe) and you'll see which words still need to be translated.
Now there are a few things with the program. I haven't really polished it yet, but it does work.
Things to note:
1) it will truncate the replace string if it's longer than the find string
ie. 'Härte der ersten Bodenschicht ändern','Change hardness of the first ground layer'
would get truncated to ''Change hardness of the first ground '
2) it should skip a blank line, but try not to put them in the text file anyway. This also means the last line!!
3) If there is a smaller string before a common longer one, then the longer one won't get changed.
ie.'öffnen','open'
'Projekt öffnen...','Open Project...'
will change 'öffnen' to 'open' but then won't find 'Projekt öffnen...' because it would look like 'Projekt open...',
So longer string need to be at the start of the text file and shorter strings need to be at the end of the file.
4) each new translation need to be on a new line.
ie. 'Find String1','Replace String1'
'Find String2','Replace String2'
'etc...','etc...'
5) The program (replace.exe) will only change wide character formats (16bit). You guys shouldn't need to worry about this because it's all setup for RSK.exe. I'll get around to adding normal string replacements but I don't need to do that for this project.
6) Just copy replace.exe and text.txt into your reflex directory (usually c:\Program Files\Reflex\). Goto Start->Run and type cmd and hit enter. You should see a black window (this is the command prompt) (If that doesn't work, try Start->Programs->Accessories->Command Prompt). Type cd "\Program Files\Reflex\" and then type replace RSK.exe text.txt and hit enter. The program will run and that should be that. Note that replace will NOT write over your original file. It will create a new one called rsk_en.exe
I think that's about it for now.
You can get the two files here:
http://carboncopies.com.au/replace/replace.exe
http://carboncopies.com.au/replace/text.txt
If any of this doesn't make sense (or your having some problems) let me know and I'll try to explain it a little better. email: colin@carboncopies.com.au
Please post your new translations (or link to the text file) or email them to me and I'll update the online text file.
Oh, and let me know how you go. :-)
Disclaimer: Use this program at your own risk. I do not take responsibility for misuse of this program!! (I had to put that there)