"home", "other" and "work" instead of "Unknown" phone label

// FREEBIE
This commit is contained in:
Michael Kirk 2017-05-03 10:59:05 -04:00
parent c7931aa2c1
commit 4b6bfa4c4c
3 changed files with 19 additions and 1 deletions

View File

@ -138,7 +138,7 @@ CHECKOUT OPTIONS:
:commit: 7054e4b13ee5bcd6d524adb6dc9a726e8c466308
:git: https://github.com/WhisperSystems/JSQMessagesViewController.git
SignalServiceKit:
:commit: 4431fa33568975bf3db17d0776331a8ff1bc2cd9
:commit: 77833e727a01d58a0191985294d43f32482f40eb
:git: https://github.com/WhisperSystems/SignalServiceKit.git
SocketRocket:
:commit: 877ac7438be3ad0b45ef5ca3969574e4b97112bf

View File

@ -290,6 +290,15 @@ void onAddressBookChanged(ABAddressBookRef notifyAddressBook, CFDictionaryRef in
phoneNumberLabel = NSLocalizedString(@"PHONE_NUMBER_TYPE_UNKNOWN",
@"Label used when we don't what kind of phone number it is (e.g. mobile/work/home).");
break;
case OWSPhoneNumberTypeHome:
phoneNumberLabel = NSLocalizedString(@"PHONE_NUMBER_TYPE_HOME", @"Label for 'Home' phone numbers.");
break;
case OWSPhoneNumberTypeWork:
phoneNumberLabel = NSLocalizedString(@"PHONE_NUMBER_TYPE_WORK", @"Label for 'Work' phone numbers.");
break;
case OWSPhoneNumberTypeOther:
phoneNumberLabel = NSLocalizedString(@"PHONE_NUMBER_TYPE_OTHER", @"Label for 'Other' phone numbers.");
break;
}
// 2. Find all phone numbers for this contact of the same type.

View File

@ -832,6 +832,9 @@
/* Format for phone number label with an index. Embeds {{Phone number label (e.g. 'home')}} and {{index, e.g. 2}}. */
"PHONE_NUMBER_TYPE_AND_INDEX_FORMAT" = "%@ (%d)";
/* Label for 'Home' phone numbers. */
"PHONE_NUMBER_TYPE_HOME" = "Home";
/* Label for 'HomeFAX' phone numbers. */
"PHONE_NUMBER_TYPE_HOME_FAX" = "Home Fax";
@ -844,6 +847,9 @@
/* Label for 'Mobile' phone numbers. */
"PHONE_NUMBER_TYPE_MOBILE" = "Mobile";
/* Label for 'Other' phone numbers. */
"PHONE_NUMBER_TYPE_OTHER" = "Other";
/* Label for 'Other FAX' phone numbers. */
"PHONE_NUMBER_TYPE_OTHER_FAX" = "Other Fax";
@ -853,6 +859,9 @@
/* Label used when we don't what kind of phone number it is (e.g. mobile/work/home). */
"PHONE_NUMBER_TYPE_UNKNOWN" = "Unknown";
/* Label for 'Work' phone numbers. */
"PHONE_NUMBER_TYPE_WORK" = "Work";
/* Label for 'Work FAX' phone numbers. */
"PHONE_NUMBER_TYPE_WORK_FAX" = "Work Fax";