Another question regarding the SDK/APIs: how do you add AutoSuggest dictionaries in code? The ProjectAutomation API suggests that it is possible, but doesn't say how to do it. Is this functionality available?
-Ryan L.
Another question regarding the SDK/APIs: how do you add AutoSuggest dictionaries in code? The ProjectAutomation API suggests that it is possible, but doesn't say how to do it. Is this functionality available?
-Ryan L.
Hello Ryan,
A little more help from Professional Services.
This is true. It’s currently not possible to do this with the public API although the documentation suggests otherwise. The reason for this is that the list of autosuggest dictionaries is available only through IProjectConfiguration and LanguageDirection neither of which are exposed through the IProject interface you get from the API. There are two possibilities for you to do this:
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Paul:
Thanks for the post. Unfortunately neither option will work for the solution I had in mind, which is intended for use by translators downloading projects from WorldServer. The WS project settings override their global settings, and currently they have to manually add their local TMs, TBs, AutoSuggest dictionaries, etc. by hand.
Since the translators don't create projects, option #1 is not feasible. Option #2 might work...I've tried editing the XML while Studio is running, and haven't found a way to make my changes stick - Studio is ignorant of any changes made while it's open, and the file is overwritten when the project is closed anyway. Is there a way to force the project to reread the file?
Thanks again,
Ryan L.
Paul:
Thanks for the post. Unfortunately neither option will work for the solution I had in mind, which is intended for use by translators downloading projects from WorldServer. The WS project settings override their global settings, and currently they have to manually add their local TMs, TBs, AutoSuggest dictionaries, etc. by hand.
Since the translators don't create projects, option #1 is not feasible. Option #2 might work...I've tried editing the XML while Studio is running, and haven't found a way to make my changes stick - Studio is ignorant of any changes made while it's open, and the file is overwritten when the project is closed anyway. Is there a way to force the project to reread the file?
Thanks again,
Ryan L.