[Mono-bugs] [Bug 647183] ABMultiValue<string> property labels are incorrect, they have elven moneyfaces.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 17 19:01:40 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=647183

https://bugzilla.novell.com/show_bug.cgi?id=647183#c1


Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jpryor at novell.com
         Resolution|                            |WONTFIX

--- Comment #1 from Jonathan Pryor <jpryor at novell.com> 2010-10-17 23:01:39 UTC ---
"moneyface emoticons with elven ears" are by design; specifically, it's by
*Apple*'s design.  The ABMultiValue<T>.Label value corresponds to
ABMultiValueCopyLabelAtIndex(), which returns the "moneyface emoticons" string:

http://developer.apple.com/library/ios/#documentation/AddressBook/Reference/ABMultiValueRef_iPhoneOS/Reference/reference.html#//apple_ref/doc/uid/TP40007098

If you want to translate the "moneyface emoiticon" string into a end-user
usable string, use ABAddressBook.LocalizedLabel():

http://go-mono.com/docs/index.aspx?link=M:MonoTouch.AddressBook.ABAddressBook.LocalizedLabel(MonoTouch.Foundation.NSString)

The reason for this is localization: you may be running under a
Japanese-localized app, so checking the localized label value against "Mobile"
will be an exercise in futility, while checking against the "monkeyface
emoticon" value known as ABPersonPhoneLabel.Mobile will work properly under all
localizations:

http://go-mono.com/docs/index.aspx?link=P:MonoTouch.AddressBook.ABPersonPhoneLabel.Mobile

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list