Skip to main content
Participating Frequently
November 23, 2010
Question

How to set the default language in preferences->dictionary->language

  • November 23, 2010
  • 2 replies
  • 1063 views

Hi guys,


i like to set the default dictionary language as well as the lookup path of the dictionary via script. I've found the property dictionary path as well as some settings for qoutation under languages with vendors:


app.languagesWithVendors[INDEX OF LANGUAGE].name
app.languagesWithVendors[INDEX OF LANGUAGE].dictionaryPaths


Thats fine, but how can it set a certain language with vendor as the default language for the application itself? Under the Preferences->Dictionary dialog, I can find a dropdown showing the default language. But how can I access this default or set it?

The application object has a property object called dictionaryPreferences, but this object only contains some flags like the merge behaviour but not the default language itself. So where is it?

app.dictionaryPreferences.mergeUserDictionary

Menue

Dialog

API

This topic has been closed for replies.

2 replies

Participating Frequently
November 23, 2010

Ok guys,

in the meantime I think I got it. I can setup  several dictionaries for several languages. Depending on the language I use in my paragraph styles the according dictionary will be used. Fine for the desktop.

But what about the InDesign Server! I use the server via scripting and SOAP ports, webservice calls. I've launched several webservice ports, like 10001,10002,10003,10004. In this case, I can set up a vendor dictionary by providing a path via script send to one port 10001 for example. But here are two problems:

1. The other InDesign Server instances aka webservice ports and engines won't get informed about the change. I have to run the script on all instances.

2. The change only lives as long as the instance is running but doesn't get saved. After restart the instance, the setup got lost.

So can I save the dictionary-setup with an pref-xml file, all InDesign Server instances would use and read per default?

Jongware
Community Expert
Community Expert
November 23, 2010

Do you mean you want to change the language of default (new) documents, or the language of the application itself (the menus, dialogs, etc.)?

Participating Frequently
November 23, 2010

Hi,

I mean the language for new documents and paragraph style language defaults, not the language of the dialogs, menues, buttons ...

Cheers Tino