diff options
author | linkmauve <linkmauve@linkmauve.fr> | 2017-06-29 01:23:48 +0100 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2017-06-29 02:23:48 +0200 |
commit | f83e1188c5dcf1981832f296203f94503b467e30 (patch) | |
tree | 568cf0d0af57b540464cbcf5f56fa422c1c26328 | |
parent | a3fbb937c483b356ecf8e08124e019120dbbe1d7 (diff) | |
download | dino-f83e1188c5dcf1981832f296203f94503b467e30.tar.gz dino-f83e1188c5dcf1981832f296203f94503b467e30.zip |
Small i18n fixes (#53)
* Replace “...” with “…” in user-visible strings, as per GNOME’s HIG.
* Add a message for translators to know that a string starts a sentence.
-rw-r--r-- | main/src/ui/conversation_summary/message_item.vala | 1 | ||||
-rw-r--r-- | main/src/ui/conversation_summary/view.vala | 2 | ||||
-rw-r--r-- | main/src/ui/manage_accounts/dialog.vala | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/main/src/ui/conversation_summary/message_item.vala b/main/src/ui/conversation_summary/message_item.vala index 74d46805..b03202f5 100644 --- a/main/src/ui/conversation_summary/message_item.vala +++ b/main/src/ui/conversation_summary/message_item.vala @@ -111,6 +111,7 @@ public class MessageItem : Grid, ConversationItem { /* xgettext:no-c-format */ /* Time in 12h format (w/o seconds) */ _("%l\u2236%M %p")); } else if (timespan > TimeSpan.MINUTE) { ulong mins = (ulong) (timespan.abs() / TimeSpan.MINUTE); + /* xgettext:this is the beginning of a sentence. */ return n("%i min ago", "%i mins ago", mins).printf(mins); } else { return _("Just now"); diff --git a/main/src/ui/conversation_summary/view.vala b/main/src/ui/conversation_summary/view.vala index 60d26cf0..fdd6029c 100644 --- a/main/src/ui/conversation_summary/view.vala +++ b/main/src/ui/conversation_summary/view.vala @@ -117,7 +117,7 @@ public class View : Box { if (state_ != null) { if (state_ == Xep.ChatStateNotifications.STATE_COMPOSING || state_ == Xep.ChatStateNotifications.STATE_PAUSED) { if (state_ == Xep.ChatStateNotifications.STATE_COMPOSING) { - typing_status = new StatusItem(stream_interactor, conversation, _("is typing...")); + typing_status = new StatusItem(stream_interactor, conversation, _("is typing…")); } else if (state_ == Xep.ChatStateNotifications.STATE_PAUSED) { typing_status = new StatusItem(stream_interactor, conversation, _("has stopped typing")); } diff --git a/main/src/ui/manage_accounts/dialog.vala b/main/src/ui/manage_accounts/dialog.vala index c4324b75..548cb713 100644 --- a/main/src/ui/manage_accounts/dialog.vala +++ b/main/src/ui/manage_accounts/dialog.vala @@ -207,7 +207,7 @@ public class Dialog : Gtk.Dialog { ConnectionManager.ConnectionState state = stream_interactor.connection_manager.get_state(account); switch (state) { case ConnectionManager.ConnectionState.CONNECTING: - state_label.label = _("Connecting..."); break; + state_label.label = _("Connecting…"); break; case ConnectionManager.ConnectionState.CONNECTED: state_label.label = _("Connected"); break; case ConnectionManager.ConnectionState.DISCONNECTED: |