RSC files translator

GFA, ASM, STOS, ...

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

RSC files translator

Postby itaboy » Sun Apr 09, 2017 9:03 am

Hi guyz,
given that many interesting programs were made in Germany, I have sometimes struggled with menus and textboxes and so on.
Translating their resource files was not really simple, and sometimes very frustrating.
That is why I have written a program to load a RSC file, examine all of the strings inside it and replace them with teir translated version.
The constraint is that the original and the translated version must always be of the same length.
Given that, the program works as a breeze...

Try it and let me know your feedback.

Grazie :)
Last edited by itaboy on Sun Apr 09, 2017 2:48 pm, edited 1 time in total.

arf
Atari maniac
Atari maniac
Posts: 98
Joined: Thu May 17, 2012 9:56 pm

Re: RSC files translator

Postby arf » Sun Apr 09, 2017 12:55 pm

Nice idea, thanks! If the translated entry is shorter (should be easy if the original is in German …), do I have to fill up with spaces?

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

Re: RSC files translator

Postby itaboy » Sun Apr 09, 2017 1:57 pm

Yes, even though I will make sure of that in the forthcoming release (I mean in a few days)... but if you have other deas, justt let me know

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

Re: RSC files translator

Postby itaboy » Sun Apr 09, 2017 2:33 pm

Ok, I have taken care that if the translated entry is shorter, it gets automatically padded to the correct length

Download the new version.
Last edited by itaboy on Tue Apr 25, 2017 7:35 pm, edited 1 time in total.

ThorstenOtto
Captain Atari
Captain Atari
Posts: 163
Joined: Sun Aug 03, 2014 5:54 pm

Re: RSC files translator

Postby ThorstenOtto » Sun Apr 09, 2017 11:16 pm

itaboy wrote:Ok, I have taken care that if the translated entry is shorter, it gets automatically padded to the correct length


You should leave that to the translator. If the string is centered in a G_TEXT object or right-justified, padding it with spaces might not look as expected. Also, padding it with spaces is usually not neccessary, except for menu item entries.

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

Re: RSC files translator

Postby itaboy » Mon Apr 10, 2017 6:15 pm

Thanks for the hint, Thorsten. I think I will put it as an option... so one can decide what's best for every case

User avatar
Maartau
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2592
Joined: Thu Dec 15, 2005 2:15 am
Location: France

Re: RSC files translator

Postby Maartau » Tue Apr 25, 2017 1:10 pm

Thanks 8) . Like you write, many germans tools/utils are good. (And my german is limited).

Really nice idea :cheers: !
Member of :
- aTaRi LeGeNd ,
- eLiTe ! ,
- NoExTrA .

Don't hesitate to visit http://www.atarimania.com/ & http://www.atarilegend.com/ :D

-> Slowed due to serious health troubles <-

User avatar
Atari74user
Captain Atari
Captain Atari
Posts: 204
Joined: Mon Aug 10, 2009 8:00 pm

Re: RSC files translator

Postby Atari74user » Tue Apr 25, 2017 6:40 pm

I have not used this yet, but this could be very handy. Thanks very much for this!
:cheers:
Atari Falcon 14mb, 68882, Dual 8gb CF & Steinberg FDI
Atari Jaguar, Rotary controller, Skunkboard & Cat Box
Atari 520STFM 4mb, TOS 2.06 switcher, OverScan, GigaFile, PARCP-USB, Unicorn-USB, System Solutions MiniS HD, SyQuest drives, ICD Link II, PhatBoy MIDI Controller, Philip Rees 5M MIDI merge box, Soundpool M04, Steinberg MIDEX, SMP II, Emagic Log 3, C-Lab Unitor 2, Combiner & Export expanders

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

Re: RSC files translator

Postby itaboy » Tue Apr 25, 2017 7:36 pm

New version, with some bug fixing and a bit of refinement
Her you go...
EMALIB.zip
You do not have the required permissions to view the files attached to this post.

User avatar
Maartau
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2592
Joined: Thu Dec 15, 2005 2:15 am
Location: France

Re: RSC files translator

Postby Maartau » Tue Apr 25, 2017 8:52 pm

itaboy wrote:New version, with some bug fixing and a bit of refinement
Her you go...EMALIB.zip

:cheers:
Member of :
- aTaRi LeGeNd ,
- eLiTe ! ,
- NoExTrA .

Don't hesitate to visit http://www.atarimania.com/ & http://www.atarilegend.com/ :D

-> Slowed due to serious health troubles <-


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 1 guest