mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Enhance translation coverage
This commit is contained in:
parent
bf82adb517
commit
31ece73dbd
27 changed files with 26 additions and 23 deletions
|
|
@ -242,7 +242,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Cancel"
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
|
|
@ -285,7 +285,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Cancel"
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
|
|
@ -826,10 +826,12 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
message:[AssistantView StringForXMLRPCError:err]
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
UIAlertAction* continueAction = [UIAlertAction actionWithTitle:@"Continue" style:UIAlertActionStyleDefault
|
||||
UIAlertAction* continueAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Continue", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {
|
||||
[PhoneMainView.instance popToView:DialerView.compositeViewDescription];
|
||||
}];
|
||||
|
|
@ -859,7 +861,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
_outgoingView = AssistantLinkView.compositeViewDescription;
|
||||
[self configureProxyConfig];
|
||||
} else {
|
||||
if (linphone_account_creator_get_username(account_creator) && strcmp(resp, "ERROR_ACCOUNT_DOESNT_EXIST")) {
|
||||
if (linphone_account_creator_get_username(account_creator) && (strcmp(resp, "ERROR_ACCOUNT_DOESNT_EXIST") == 0)) {
|
||||
[self showErrorPopup:"ERROR_BAD_CREDENTIALS"];
|
||||
} else {
|
||||
[self showErrorPopup:resp];
|
||||
|
|
@ -1210,12 +1212,12 @@ void assistant_is_account_linked(LinphoneAccountCreator *creator, LinphoneAccoun
|
|||
[self findButton:ViewElement_PhoneButton].hidden = emailSwitch.isOn;
|
||||
self.phoneLabel.hidden = emailSwitch.isOn;
|
||||
self.phoneTitle.hidden = emailSwitch.isOn;
|
||||
|
||||
self.phoneTitle.text = NSLocalizedString(@"Please confirm your country code and enter your phone number", nil);
|
||||
self.infoLoginButton.hidden = !usernameView.hidden;
|
||||
if (!usernameView.hidden) {
|
||||
self.subtileLabel_useLinphoneAccount.text = @"Please enter your username and password";
|
||||
self.subtileLabel_useLinphoneAccount.text = NSLocalizedString(@"Please enter your username and password", nil);
|
||||
} else {
|
||||
self.subtileLabel_useLinphoneAccount.text = @"Please confirm your country code and enter your phone number";
|
||||
self.subtileLabel_useLinphoneAccount.text = NSLocalizedString(@"Please confirm your country code and enter your phone number", nil);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -547,7 +547,7 @@ static void hideSpinner(LinphoneCall *call, void *user_data) {
|
|||
nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Continue"
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Continue", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Continue"
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Continue", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Continue"
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Continue", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
case LinphoneConfiguringFailed: {
|
||||
[_waitView setHidden:true];
|
||||
UIAlertController *errView = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Configuration failed", nil)
|
||||
message:NSLocalizedString(@"Cannot retrieve your configuration. Please check credentiels or try again later", nil)
|
||||
message:NSLocalizedString(@"Cannot retrieve your configuration. Please check credentials or try again later", nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"OK", nil)
|
||||
|
|
@ -260,7 +260,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Cancel"
|
||||
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {}];
|
||||
|
||||
|
|
|
|||
|
|
@ -411,16 +411,17 @@
|
|||
}
|
||||
|
||||
}else{
|
||||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Account expiring"
|
||||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Account expiring", nil)
|
||||
message:expireText
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* buyAction = [UIAlertAction actionWithTitle:@"Buy" style:UIAlertActionStyleDefault
|
||||
UIAlertAction* buyAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Buy", nil)
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {
|
||||
[PhoneMainView.instance changeCurrentView:ShopView.compositeViewDescription];
|
||||
}];
|
||||
|
||||
UIAlertAction *laterAction = [UIAlertAction actionWithTitle:@"Later"
|
||||
UIAlertAction *laterAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Later", nil)
|
||||
style:UIAlertActionStyleCancel
|
||||
handler:^(UIAlertAction *action){
|
||||
// [alert dismissViewControllerAnimated:FALSE];
|
||||
|
|
|
|||
|
|
@ -518,13 +518,13 @@ didInvalidatePushTokenForType:(NSString *)type {
|
|||
LOGI(@"incoming voip notfication: %@ ", payload.dictionaryPayload);
|
||||
if(floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max) {
|
||||
//Call category
|
||||
UNNotificationAction* act_ans = [UNNotificationAction actionWithIdentifier:@"Answer" title:@"Answer" options:UNNotificationActionOptionForeground];
|
||||
UNNotificationAction* act_dec = [UNNotificationAction actionWithIdentifier:@"Decline" title:@"Decline" options:UNNotificationActionOptionNone];
|
||||
UNNotificationAction* act_ans = [UNNotificationAction actionWithIdentifier:@"Answer" title:NSLocalizedString(@"Answer", nil) options:UNNotificationActionOptionForeground];
|
||||
UNNotificationAction* act_dec = [UNNotificationAction actionWithIdentifier:@"Decline" title:NSLocalizedString(@"Decline", nil) options:UNNotificationActionOptionNone];
|
||||
UNNotificationCategory* cat_call = [UNNotificationCategory categoryWithIdentifier:@"call_cat" actions:[NSArray arrayWithObjects:act_ans, act_dec, nil] intentIdentifiers:[[NSMutableArray alloc] init] options:UNNotificationCategoryOptionCustomDismissAction];
|
||||
|
||||
//Msg category
|
||||
UNTextInputNotificationAction* act_reply = [UNTextInputNotificationAction actionWithIdentifier:@"Reply" title:@"Reply" options:UNNotificationActionOptionNone];
|
||||
UNNotificationAction* act_seen = [UNNotificationAction actionWithIdentifier:@"Seen" title:@"Mark as seen" options:UNNotificationActionOptionNone];
|
||||
UNTextInputNotificationAction* act_reply = [UNTextInputNotificationAction actionWithIdentifier:@"Reply" title:NSLocalizedString(@"Reply", nil) options:UNNotificationActionOptionNone];
|
||||
UNNotificationAction* act_seen = [UNNotificationAction actionWithIdentifier:@"Seen" title:NSLocalizedString(@"Mark as seen", nil) options:UNNotificationActionOptionNone];
|
||||
UNNotificationCategory* cat_msg = [UNNotificationCategory categoryWithIdentifier:@"msg_cat" actions:[NSArray arrayWithObjects:act_reply, act_seen, nil] intentIdentifiers:[[NSMutableArray alloc] init] options:UNNotificationCategoryOptionCustomDismissAction];
|
||||
|
||||
//UNUserNotificationCenter* notifCenter = [UNUserNotificationCenter currentNotificationCenter];
|
||||
|
|
|
|||
|
|
@ -749,7 +749,7 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char
|
|||
}
|
||||
} else {
|
||||
UNMutableNotificationContent* content = [[UNMutableNotificationContent alloc] init];
|
||||
content.title = @"Incoming call";
|
||||
content.title = NSLocalizedString(@"Incoming call", nil);
|
||||
content.body = address;
|
||||
content.sound = [UNNotificationSound soundNamed:@"notes_of_the_optimistic.caf"];
|
||||
content.categoryIdentifier = @"call_cat";
|
||||
|
|
@ -810,7 +810,7 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char
|
|||
LinphoneCallLog *UNlog = linphone_call_get_call_log(call);
|
||||
if (UNlog == NULL || linphone_call_log_get_status(UNlog) == LinphoneCallMissed) {
|
||||
UNMutableNotificationContent* missed_content = [[UNMutableNotificationContent alloc] init];
|
||||
missed_content.title = @"Missed call";
|
||||
missed_content.title = NSLocalizedString(@"Missed call", nil);
|
||||
missed_content.body = address;
|
||||
UNNotificationRequest *missed_req = [UNNotificationRequest requestWithIdentifier:@"call_request" content:missed_content trigger:NULL];
|
||||
[[UNUserNotificationCenter currentNotificationCenter] addNotificationRequest:missed_req withCompletionHandler:^(NSError * _Nullable error) {
|
||||
|
|
@ -1197,7 +1197,7 @@ static void linphone_iphone_popup_password_request(LinphoneCore *lc, const char
|
|||
}
|
||||
} else {
|
||||
UNMutableNotificationContent* content = [[UNMutableNotificationContent alloc] init];
|
||||
content.title = @"Message received";
|
||||
content.title = NSLocalizedString(@"Message received", nil);
|
||||
if ([LinphoneManager.instance lpConfigBoolForKey:@"show_msg_in_notif" withDefault:YES]) {
|
||||
content.subtitle = from;
|
||||
content.body = [UIChatBubbleTextCell TextMessageForChat:msg];
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue