Re: Localization of standard roles?
Re: Localization of standard roles?
- Subject: Re: Localization of standard roles?
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 15 Dec 2004 17:33:28 -0500
on 2004-12-15 3:13 PM, Guy Fullerton at email@hidden wrote:
> On Dec 15, 2004, at 8:38 AM, David Niemeijer wrote:
>
>> If I create a custom button that has a role AXButton that I return on
>> the kEventAccessibleGetNamedAttribute event, what should I return for
>> the AXRoleDescription? Should I let the HIView event handler handle
>> this because AXButton is a known role (and thus has its own role
>> description already)? Or should I return the string "button"? If the
>> latter, do I need to return a localized string, or will the system
>> automatically translate "button" for me because it also uses the word
>> "button" as a role description itself?
>
> If your handler supplies the AXRole or AXSubrole, it must also supply
> the AXRoleDescription.
>
> The role description should be a localized (to match the rest of your
> application), human-readable string. It should be all lower-case and
> contain no punctuation.
So, basically, you should put the key-value pair into a localized *.strings
files in your English.lproj folder, and your function that returns it should
get it from the *.lproj folder of the user's preferred language. Is that
right? (Assuming you're an English-speaking developer and somebody localizes
your app to another language.)
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden