Page 1 of 1

Greek Dates

Posted: Sun Jan 16, 2011 11:33 am
by andyh1234
I have a small script that grabs the months and puts them into a text field as follows...

set the text of field "calendarMonths" to the long system monthNames

It works well in English, but apparently when you set a Mac to 'Greek' it just adds ?????? for each line and not the system month.

I assume this has something to do with the unicode info, but cant seem to get it to work at all, when I get something that looks greek to display in the field then switch back to English it still all looks greek to me!

Any ideas on how I can make this work so it adds a list of system languages for any language and not just ones with 'english' characters.

Thanks

Andy

Re: Greek Dates

Posted: Sun Jan 16, 2011 2:46 pm
by shaosean
Have a look at the unicodeText property.

Re: Greek Dates

Posted: Sun Jan 16, 2011 4:07 pm
by andyh1234
Thanks Sean,

Ill have a look at that...

Hopefully if I read right,

set the unicodeText of field "calendarMonths" to the long system monthNames

should do the job???

Will that affect the English names at all, or should it still be ok there too?

Re: Greek Dates

Posted: Sun Jan 16, 2011 4:12 pm
by andyh1234
Im afraid it didnt, not sure what im doing wrong.

I created a field, and two buttons, the field is called '1'.

Button 1 is..

on mouseUp
put the (the long system monthNames) into field "1"
end mouseUp

Button 2 is..

on mouseUp
set the unicodeText of field 1 to the long system monthNames
end mouseUp

Button 1 works as expected, putting the months in to the field, but button 2 put what looks like Chinese into the field.

Im sure im missing something very simple!