Code

main: *settings_name: translate "unknown"
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 15 Jun 2011 20:01:40 +0000 (22:01 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 23 Jun 2011 08:52:10 +0000 (10:52 +0200)
src/main.c

index 185ca5d97405a25a2950ff6ba0520c13dc1d4d0d..25321fc4229a3fbd01ea19bd07f7a1ed09749142 100644 (file)
@@ -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