Jump to content
IGNORED

Resource files and globalization


Recommended Posts

I'm interested in creating applications that will allow the ability to apply strings of text depending on the local of the computers language. At first, I thought parsing a file full of localized language test would be best but I'm wondering if a resource file wouldn't be a better option. So, my questions are...

  1. Is using a resource file a good idea for doing this sort of thing?
  2. If 1 is correct, what is a good resource editor, taking into account I generally want to focus on the Falcon but it wouldn't be a bad idea to target the older version of the resource file.
Link to comment
Share on other sites

I'll explain better..
I would like an application that would allow a user to choose a specific language. So, if someone chooses French, all text will be in French. A possible feature would be for my app to determine the chosen language and automatically choose that language at start-up.

Now, I know how to determine the default language of the system, so that's not the issue. What I'm looking for is determining if how best to store these translated strings. One option is to provide a file, containing strings for each language, a key/value pair. From my memories from C++ programming on windows, this sort of information was stored in a resource file. It appears that the resources files for the ST are similar, but I just wanted to confirm that with someone who is more familiar with creating them.

If resources files are a good use for this, what resources editor would be considered one of the best, especially if I wanted to target both versions of the resources files. I understand there was the original version and a later one that would support color icons.

 

Is that more clear?

Link to comment
Share on other sites

Thanks all. I'm glad you could understand the question I was trying to ask spite the small typo. What I meant to saynis that Im interested in writing applications that deal with different language support.

Thanks krupkaj. I assume this page contains the app you're referring to. https://freeshell.de/~ragnar76/pearls/

Link to comment
Share on other sites

Thanks all. I'm glad you could understand the question I was trying to ask spite the small typo. What I meant to saynis that Im interested in writing applications that deal with different language support.

Thanks krupkaj. I assume this page contains the app you're referring to. https://freeshell.de/~ragnar76/pearls/

You can get ResourceMaster directly from the author's site: http://www.ardisoft.de/

 

Any RSC editor will allow you to create multiple resource files, obviously, one for each language, but RSM has a special mode that makes it easier. As far as multi language apps go, you can study GEMDict's http://www.gemdict.org/ C code, but you'll need MiNT and a network connection to make it run.

Link to comment
Share on other sites

I would allow the program to poll the language, but definitely provide an option to override that. Sometimes users have a TOS version that is not in their spoken language. If your resource file contains only strings of text, it might be overkill. If that was that case for me I'd just come up with my own simple file format to get the job done.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...