aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-09-25 16:04:13 +0200
committerfiaxh <git@lightrise.org>2021-09-25 16:04:13 +0200
commit69a26ebcef2fe43942c26812f4969a62126bd0b9 (patch)
tree06ab4bc421072b687851e459da4e42e887e64f02 /main/src/ui/conversation_content_view
parentce227f7189e8f1a3434c1991780089e7801e07fa (diff)
downloaddino-69a26ebcef2fe43942c26812f4969a62126bd0b9.tar.gz
dino-69a26ebcef2fe43942c26812f4969a62126bd0b9.zip
Improve call related wording
Diffstat (limited to 'main/src/ui/conversation_content_view')
-rw-r--r--main/src/ui/conversation_content_view/call_widget.vala31
1 files changed, 11 insertions, 20 deletions
diff --git a/main/src/ui/conversation_content_view/call_widget.vala b/main/src/ui/conversation_content_view/call_widget.vala
index 74525d11..9667e475 100644
--- a/main/src/ui/conversation_content_view/call_widget.vala
+++ b/main/src/ui/conversation_content_view/call_widget.vala
@@ -83,26 +83,19 @@ namespace Dino.Ui {
image.set_from_icon_name("dino-phone-ring-symbolic", IconSize.LARGE_TOOLBAR);
if (call.direction == Call.DIRECTION_INCOMING) {
bool video = stream_interactor.get_module(Calls.IDENTITY).should_we_send_video(call);
- title_label.label = video ? _("Video call incoming") : _("Call incoming");
+ title_label.label = video ? _("Incoming video call") : _("Incoming call");
subtitle_label.label = "Ring ring…!";
incoming_call_revealer.reveal_child = true;
incoming_call_revealer.get_style_context().add_class("incoming");
} else {
- title_label.label = _("Establishing call");
+ title_label.label = _("Calling…");
subtitle_label.label = "Ring ring…?";
}
break;
case Call.State.ESTABLISHING:
- image.set_from_icon_name("dino-phone-ring-symbolic", IconSize.LARGE_TOOLBAR);
- if (call.direction == Call.DIRECTION_INCOMING) {
- bool video = stream_interactor.get_module(Calls.IDENTITY).should_we_send_video(call);
- title_label.label = video ? _("Video call establishing") : _("Call establishing");
- subtitle_label.label = "Connecting…";
- }
- break;
case Call.State.IN_PROGRESS:
image.set_from_icon_name("dino-phone-in-talk-symbolic", IconSize.LARGE_TOOLBAR);
- title_label.label = _("Call in progress…");
+ title_label.label = _("Call started");
string duration = get_duration_string((new DateTime.now_utc()).difference(call.local_time));
subtitle_label.label = _("Started %s ago").printf(duration);
@@ -127,29 +120,27 @@ namespace Dino.Ui {
string duration = get_duration_string(call.end_time.difference(call.local_time));
subtitle_label.label = _("Ended at %s").printf(formated_end) +
" · " +
- _("Lasted for %s").printf(duration);
+ _("Lasted %s").printf(duration);
break;
case Call.State.MISSED:
image.set_from_icon_name("dino-phone-missed-symbolic", IconSize.LARGE_TOOLBAR);
title_label.label = _("Call missed");
- string who = null;
if (call.direction == Call.DIRECTION_INCOMING) {
- who = "You";
+ subtitle_label.label = _("You missed this call");
} else {
- who = Util.get_participant_display_name(stream_interactor, conversation, call.to);
+ string who = Util.get_participant_display_name(stream_interactor, conversation, call.to);
+ subtitle_label.label = _("%s missed this call").printf(who);
}
- subtitle_label.label = "%s missed this call".printf(who);
break;
case Call.State.DECLINED:
image.set_from_icon_name("dino-phone-hangup-symbolic", IconSize.LARGE_TOOLBAR);
title_label.label = _("Call declined");
- string who = null;
if (call.direction == Call.DIRECTION_INCOMING) {
- who = "You";
+ subtitle_label.label = _("You declined this call");
} else {
- who = Util.get_participant_display_name(stream_interactor, conversation, call.to);
+ string who = Util.get_participant_display_name(stream_interactor, conversation, call.to);
+ subtitle_label.label = _("%s declined this call").printf(who);
}
- subtitle_label.label = "%s declined this call".printf(who);
break;
case Call.State.FAILED:
image.set_from_icon_name("dino-phone-hangup-symbolic", IconSize.LARGE_TOOLBAR);
@@ -189,7 +180,7 @@ namespace Dino.Ui {
return ret;
}
- return _("seconds");
+ return _("a few seconds");
}
private int get_next_time_change() {