From 4a0c2cbd932f3e1bc17419ce8320419b633e0fa0 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 23 Nov 2011 10:21:25 +0100 Subject: [PATCH] Rewrite call status text in InCallView --- Classes/IncallViewController.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Classes/IncallViewController.m b/Classes/IncallViewController.m index d3d922613..95e8fb3e1 100644 --- a/Classes/IncallViewController.m +++ b/Classes/IncallViewController.m @@ -480,7 +480,16 @@ int callCount(LinphoneCore* lc) { else [ms appendFormat:@"%02i sec", duration, nil]; } else { - [ms appendFormat:@"%s", linphone_call_state_to_string(linphone_call_get_state(call)), nil]; + switch (linphone_call_get_state(call)) { + case LinphoneCallPaused: + [ms appendFormat:@"%@", NSLocalizedString(@"Paused", nil), nil]; + break; + case LinphoneCallOutgoingProgress: + [ms appendFormat:@"%@...", NSLocalizedString(@"In progress", nil), nil]; + break; + default: + break; + } } [cell.detailTextLabel setText:ms];