appliedLanguage > List of available languages
I was searching for a javascript for Indesign that changes the language of all paragraph styles in a document to a certain language.
http://forums.adobe.com/thread/928736?tstart=0
helped me, BUT: is there a complete list of languages?
For example in my mother tongue, German, there's Swiss spelling, but also different options for the German German, e.g. Spelling reform 2006. How can I adress these specific variants?
Thank you in advance,
Stef
e. There's a script telling you the used language.
// languages.js
//
var myLan = app.languagesWithVendors;
var myLanNames = [];
for (oneLan=1; oneLan < myLan.length; oneLan++){
myLanNames.push(myLan[oneLan].name);
}
var myText = myLanNames.sort();
myText = myText.join("\n");
// Bildschirmausgabe
alert("Languages\n" + myText)
// Dateiausgabe
doExport(myText);
function doExport(myData){
myPath = '~/Desktop/'; // Pfad für MAC;
//myPath = '/c/'; // Pfad für Win
myTXT_File = 'InDesignSprachen.txt'; // Dateiname
myCreator = "R*ch"; // relevant für MAC
myType = "TEXT"; // relevant für MAC
myFile = new File( myPath + myTXT_File ); // neue Datei
myFile.open( 'w', myType, myCreator );
myFile.writeln( myData );
myFile.close();
}
This specific script is telling me "Deutsch: Neue Rechtschreibung 2006". But if I try this for the language change script, it won't work. It asks for an english term, as "French", "Spanish", and "Italian" are working.
edit 2: "German: Reformed" brings you to "Neue Rechtschreibung 1996". The first instance of the spelling reform. But what about 2006?
Thank you, Germany, for that spelling mess. ![]()
