$.localize bug [CS4]

Discussion of actual or possible Photoshop Scripting Bugs, Anomalies and Documentation Errors

Moderators: Tom, Kukurykus

SzopeN

$.localize bug [CS4]

Post by SzopeN »

Code: Select allfunction foo() {
   $.localize = true;
   $.locale = 'pl';
   var str = {en:'locEn', pl:'locPl'};
   $.writeln(str); //CS3: locPL, CS4: locPL
}

foo();
var str = {en:'locEn', pl:'locPl'};
$.writeln(str); //CS3: locPL, CS4: [object Object]

Strange... $.localize works locally but $.locale works globally. In CS3 both works globally (as expected).