Skip to main content
Known Participant
June 1, 2009
Question

How to do localization

  • June 1, 2009
  • 2 replies
  • 2259 views

When I  do localization for illustrator plug-in on Windows, I found the method now I can use is generating one plug-in for each language. I only wan to create one plug-in which can link many language resources. If  system language changes, the plug-in can auto load appropriate language resource.I can't find more information  about localizaiton in illustrator SDK, what I found is IAILocale.h,but it seems that not enough...

This topic has been closed for replies.

2 replies

Participant
June 17, 2009

Hi,

Under Windows, that's easy. You just have to specify the various 'LANGUAGE' in the .RC file. So you end up with one plug-in for all languages. MS IDE will let you manage the languages easilly. You don't have to change one line of code, provided you fetch all localized dialogs, menus, strings... from resources.

Hope this helps.

Toto RoToTO
Inspiring
March 8, 2013

Could you be more specific about how MS will let us manage the languages easily?

How can you we set conditions correctly to use the right language?

Thx, Thomas.

Toto RoToTO
Inspiring
June 7, 2013

I have finally found a solution working pretty well for both Mac os X and Windows.

I'm not using resources stuff.

this is how I make it work:

On plugin start up , I need to check application locale ID.

Then I load the correct translation file (txt, xml or whatever you want).

Finally, I get my trnaslations using a third party libraries I've made.

So, no need to specify if code is running under Mac os X or Windows.

A. Patterson
Inspiring
June 1, 2009

I'm afraid I don't know much about how localization is done with the Adobe API. I know they use string table resources on Windows, but that's about it. We use a 3rd party library to support localization so I don't think I'll be much help for you

Known Participant
June 3, 2009

Thanks, I learn moreform your answer.