From: Jonathan Neuschäfer Date: Wed, 15 Jun 2011 20:01:40 +0000 (+0200) Subject: main: *settings_name: translate "unknown" X-Git-Tag: release-0.19~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a0e02ecb6fcb8361d4b8d0cef37b87d0f617f85f;p=ncmpc.git main: *settings_name: translate "unknown" --- diff --git a/src/main.c b/src/main.c index 185ca5d..25321fc 100644 --- a/src/main.c +++ b/src/main.c @@ -240,7 +240,7 @@ settings_name(const struct mpd_settings *settings) { const char *host = mpd_settings_get_host(settings); if (host == NULL) - host = "unknown"; + host = _("unknown"); if (host[0] == '/') return g_strdup(host); @@ -262,7 +262,7 @@ default_settings_name(void) mpd_settings_new(options.host, options.port, 0, NULL, options.password); if (settings == NULL) - return g_strdup("unknown"); + return g_strdup(_("unknown")); char *name = settings_name(settings); mpd_settings_free(settings); @@ -280,7 +280,7 @@ connection_settings_name(const struct mpd_connection *connection) const struct mpd_settings *settings = mpd_connection_get_settings(connection); if (settings == NULL) - return g_strdup("unknown"); + return g_strdup(_("unknown")); return settings_name(settings); #else