Are there any tools to do Pseudotranslation of resouce bundles?

I want to test if the Java code for one of our products is internationalized. For that, I would like to use a dummy translation or pseudotranslation of the resource bundle. Are there any free/cheap tools to do the pseudotranslation?

I also looked at machine translation tools but for this I need to extract the translatable text, translate it and put it back.

Any ideas? suggestions?

THANKS!

Gladys

[437 byte] By [gboza] at [2007-9-26 3:28:06]
# 1
Lokk at: http://java.sun.com/products/jilkit/Klint
saen at 2007-6-29 11:51:29 > top of Java-index,Desktop,I18N...
# 2
Thanks for your response! I want to do a pseudotranslation to German. How do I do this? I see the only dictionary available is S. Chinese.
gboza at 2007-6-29 11:51:29 > top of Java-index,Desktop,I18N...
# 3

When you say "pseudotranslation" are you simply doing this for the purposes of testing your code?

If so, I wrote a little java app that takes as input a resource bundle and uses babelfish to convert it to another language. It's crude but it does the job as long as you aren't expecting the results to be correct.

If you're interested, let me know and I'll post the code. If not, could you explain what you mean by psuedotranslation.

Andy

deitsch at 2007-6-29 11:51:29 > top of Java-index,Desktop,I18N...
# 4

Andy,

This is exactly what I want to do: test my code.

I will greatly appreciate if you share your tool.:)

Can I choose the language when using your tool?

Just fyi, I tried to mean with "pseudotranslation" some sort of dummy translation that I can use to test how the code is handling the characters and display of other languages'characters, in my case, German.

Thanks for oyur help in advance!

Gladys

gboza at 2007-6-29 11:51:29 > top of Java-index,Desktop,I18N...
# 5

> If so, I wrote a little java app that takes as input a

> resource bundle and uses babelfish to convert it to

> another language. It's crude but it does the job as

> long as you aren't expecting the results to be

> correct.

>

> Andy

I noticed this reply you posted a while back and am also quite interested in seeing that code. I'm new to java programming and my current job is to learn how to implement internationalization with java to produce an english version of a product. In any case I have tons of resource bundles that I'd like to translate quite quickly, they certainly don't have to be perfect and once finished I can check them myself for any glaring translation flaws that come up. But just to get a functional demo would be great.

While I'm in the middle of this message I also want to ask if you have any experience with multilingual apps. After my demo functions I may have to produce from it a version that runs two languages concurrently. What exactly would be involved in order to either switch in the same session the language or on startup choose the language and then how this would work when the application data is in two languages.

Any help would be greatly appreciated!

Thank you.

heffer at 2007-6-29 11:51:29 > top of Java-index,Desktop,I18N...
# 6

I have never found a completely reliable "pseudo-translator". No doubt someone will try and write one one day, but for every i18n project I've ever worked on, we've rung up a university or something and got ourselves a translator. It's proven a lot simpler than trying to trawl the Net for something that I'm not even sure exists.

The JILKit is good for what it does, but it is buggy, and is no longer supported by Sun, AFAIK. They nowadays prefer you to use the tools in Forte.

As for language choice, I've used the following steps in the past.

1) Have a list of fonts that are capable of displaying each language.

2) Look for these fonts on startup.

3) Out of the fonts you've found construct a list of available languages that you'll allow the user to pick from.

4) Once the user has chosen, create a new Locale that matches the language the user has picked.

5) Load the ResourceBundle using this Locale.

I've tried to switch languages mid-execution in the past, and under current JDKs this just doesn't work. I've seen a few solution claims, but I've either found they haven't worked, or I haven't had the chance to test them out yet.

The best solution is to simply make the user quit and restart to get a different language. I find there isn't much call for a user to be able to switch languages halfway through the execution of an app anyway.

Hope that helps!

Martin Hughes

martinhughes at 2007-6-29 11:51:29 > top of Java-index,Desktop,I18N...