fix error messages when create a compte with phone number

This commit is contained in:
Danmei Chen 2019-11-26 13:51:35 +01:00
parent 9ecc78d82f
commit 37eb749a58
8 changed files with 2 additions and 2 deletions

View file

@ -272,9 +272,9 @@ static UICompositeViewDescription *compositeDescription = nil;
+ (NSString *)errorForLinphoneAccountCreatorPhoneNumberStatus:(LinphoneAccountCreatorPhoneNumberStatus)status {
switch (status) {
case LinphoneAccountCreatorPhoneNumberStatusTooShort: /**< Phone number too short */
return NSLocalizedString(@"Your country code is too short.", nil);
return NSLocalizedString(@"Your phone number is too short.", nil);
case LinphoneAccountCreatorPhoneNumberStatusTooLong: /**< Phone number too long */
return NSLocalizedString(@"Your country code is too long.", nil);
return NSLocalizedString(@"Your phone number is too long.", nil);
return nil; /* this is not an error, just user has to finish typing */
case LinphoneAccountCreatorPhoneNumberStatusInvalidCountryCode: /**< Country code invalid */
return NSLocalizedString(@"Your country code is invalid.", nil);