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.
This commit is contained in:
linkmauve 2017-06-29 01:23:48 +01:00 committed by fiaxh
parent a3fbb937c4
commit f83e1188c5
3 changed files with 3 additions and 2 deletions

View file

@ -111,6 +111,7 @@ public class MessageItem : Grid, ConversationItem {
/* xgettext:no-c-format */ /* Time in 12h format (w/o seconds) */ _("%l\u2236%M %p")); /* xgettext:no-c-format */ /* Time in 12h format (w/o seconds) */ _("%l\u2236%M %p"));
} else if (timespan > TimeSpan.MINUTE) { } else if (timespan > TimeSpan.MINUTE) {
ulong mins = (ulong) (timespan.abs() / 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); return n("%i min ago", "%i mins ago", mins).printf(mins);
} else { } else {
return _("Just now"); return _("Just now");

View file

@ -117,7 +117,7 @@ public class View : Box {
if (state_ != null) { if (state_ != null) {
if (state_ == Xep.ChatStateNotifications.STATE_COMPOSING || state_ == Xep.ChatStateNotifications.STATE_PAUSED) { if (state_ == Xep.ChatStateNotifications.STATE_COMPOSING || state_ == Xep.ChatStateNotifications.STATE_PAUSED) {
if (state_ == Xep.ChatStateNotifications.STATE_COMPOSING) { 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) { } else if (state_ == Xep.ChatStateNotifications.STATE_PAUSED) {
typing_status = new StatusItem(stream_interactor, conversation, _("has stopped typing")); typing_status = new StatusItem(stream_interactor, conversation, _("has stopped typing"));
} }

View file

@ -207,7 +207,7 @@ public class Dialog : Gtk.Dialog {
ConnectionManager.ConnectionState state = stream_interactor.connection_manager.get_state(account); ConnectionManager.ConnectionState state = stream_interactor.connection_manager.get_state(account);
switch (state) { switch (state) {
case ConnectionManager.ConnectionState.CONNECTING: case ConnectionManager.ConnectionState.CONNECTING:
state_label.label = _("Connecting..."); break; state_label.label = _("Connecting"); break;
case ConnectionManager.ConnectionState.CONNECTED: case ConnectionManager.ConnectionState.CONNECTED:
state_label.label = _("Connected"); break; state_label.label = _("Connected"); break;
case ConnectionManager.ConnectionState.DISCONNECTED: case ConnectionManager.ConnectionState.DISCONNECTED: