You can create both file and scrap translation extensions. To construct a translation extension to translate files, you need to create a component that responds to the kTranslateGetFileTranslationList , kTranslateIdentifyFile , and kTranslateTranslateFile request codes. In response to these request codes, you typically dispatch to one of the extension-defined routines DoGetFileTranslationList , DoIdentifyFile , and DoTranslateFile . To construct a translation extension that translates scraps, you need to create a component that responds to the kTranslateGetScrapTranslationList , kTranslateIdentifyScrap , and kTranslateTranslateScrap request codes. In response to these request codes, you typically dispatch to one of the extension-defined routines DoGetScrapTranslationList , DoIdentifyScrap , and DoTranslateScrap .
All routines return result codes.
If they succeed, they should return noErr . Inc. All rights reserved.