Code

po: improved translatable strings for easier translation
authorMax Kellermann <max@duempel.org>
Tue, 25 Nov 2008 20:03:28 +0000 (21:03 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 25 Nov 2008 20:03:28 +0000 (21:03 +0100)
Remove exclamation marks and other markup from the strings.

src/colors.c
src/command.c
src/main.c
src/screen.c
src/screen_artist.c
src/screen_file.c
src/screen_keydef.c
src/screen_lyrics.c
src/screen_play.c

index 0bcf2782c8a76677122d32f3d6cfdd3af2bb426c..cc3ec50615ff7e09d312ba4b7759feb2c6ff787d 100644 (file)
@@ -235,7 +235,7 @@ colors_start(void)
                                list = list->next;
                        }
                } else if (color_definition_list && !can_change_color())
-                       fprintf(stderr, _("Terminal lacks support for changing colors!\n"));
+                       fprintf(stderr, _("Terminal lacks support for changing colors\n"));
 
                if (options.enable_colors) {
                        enum color i;
@@ -245,7 +245,7 @@ colors_start(void)
                                colors_update_pair(i);
                }
        } else if (options.enable_colors) {
-               fprintf(stderr, _("Terminal lacks color capabilities!\n"));
+               fprintf(stderr, _("Terminal lacks color capabilities\n"));
                options.enable_colors = 0;
        }
 
index 107167376e1db2162cbbc4c063f7dbb268615018..e04817fa1e08625579ec3880962210bb3ecb0ac9 100644 (file)
@@ -468,14 +468,14 @@ check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
                                                   get_key_names(CMD_SCREEN_KEYDEF,0));
 #else
                                        g_snprintf(buf, bufsize,
-                                                  _("Error: Key %s assigned to %s and %s !!!\n"),
+                                                  _("Error: Key %s assigned to %s and %s\n"),
                                                   key2str(cp[i].keys[j]),
                                                   get_key_command_name(cp[i].command),
                                                   get_key_command_name(cmd));
 #endif
                                } else
                                        fprintf(stderr,
-                                               _("Error: Key %s assigned to %s and %s !!!\n"),
+                                               _("Error: Key %s assigned to %s and %s\n"),
                                                key2str(cp[i].keys[j]),
                                                get_key_command_name(cp[i].command),
                                                get_key_command_name(cmd));
index ed76181f627a20fafb80057110782dc4d041e4d1..11f16acb842f57174986ffca34e4e7ddcd1c2769 100644 (file)
@@ -225,10 +225,11 @@ timer_reconnect(G_GNUC_UNUSED gpointer data)
 #ifndef NCMPC_MINI
        /* quit if mpd is pre 0.11.0 - song id not supported by mpd */
        if (MPD_VERSION_LT(mpd, 0, 11, 0)) {
-               screen_status_printf(_("Error: MPD version %d.%d.%d is to old (0.11.0 needed).\n"),
+               screen_status_printf(_("Error: MPD version %d.%d.%d is to old (%s needed)"),
                                     mpd->connection->version[0],
                                     mpd->connection->version[1],
-                                    mpd->connection->version[2]);
+                                    mpd->connection->version[2],
+                                    "0.11.0");
                mpdclient_disconnect(mpd);
                doupdate();
 
@@ -238,7 +239,7 @@ timer_reconnect(G_GNUC_UNUSED gpointer data)
        }
 #endif
 
-       screen_status_printf(_("Connected to %s!"), options.host);
+       screen_status_printf(_("Connected to %s"), options.host);
        doupdate();
 
        connected = TRUE;
index 25c05c64f656d00b6d17476beab77e331923c917..569df7a51022a615edeb209eecfb2e4b21fb7dde 100644 (file)
@@ -393,7 +393,7 @@ screen_resize(struct mpdclient *c)
 {
        if (COLS<SCREEN_MIN_COLS || LINES<SCREEN_MIN_ROWS) {
                screen_exit();
-               fprintf(stderr, _("Error: Screen to small!\n"));
+               fprintf(stderr, _("Error: Screen to small\n"));
                exit(EXIT_FAILURE);
        }
 
@@ -466,7 +466,7 @@ void
 screen_init(mpdclient_t *c)
 {
        if (COLS < SCREEN_MIN_COLS || LINES < SCREEN_MIN_ROWS) {
-               fprintf(stderr, _("Error: Screen to small!\n"));
+               fprintf(stderr, _("Error: Screen to small\n"));
                exit(EXIT_FAILURE);
        }
 
@@ -601,7 +601,7 @@ screen_update(mpdclient_t *c)
                        screen_status_printf(_("Crossfade %d seconds"), c->status->crossfade);
 
                if (dbupdate && dbupdate != c->status->updatingDb) {
-                       screen_status_printf(_("Database updated!"));
+                       screen_status_printf(_("Database updated"));
                        mpdclient_browse_callback(c, BROWSE_DB_UPDATED, NULL);
                }
 
@@ -734,11 +734,11 @@ screen_client_cmd(mpdclient_t *c, command_t cmd)
                break;
        case CMD_SHUFFLE:
                if (mpdclient_cmd_shuffle(c) == 0)
-                       screen_status_message(_("Shuffled playlist!"));
+                       screen_status_message(_("Shuffled playlist"));
                break;
        case CMD_CLEAR:
                if (mpdclient_cmd_clear(c) == 0)
-                       screen_status_message(_("Cleared playlist!"));
+                       screen_status_message(_("Cleared playlist"));
                break;
        case CMD_REPEAT:
                mpdclient_cmd_repeat(c, !c->status->repeat);
@@ -755,7 +755,7 @@ screen_client_cmd(mpdclient_t *c, command_t cmd)
        case CMD_DB_UPDATE:
                if (!c->status->updatingDb) {
                        if( mpdclient_cmd_db_update(c,NULL)==0 )
-                               screen_status_printf(_("Database update started!"));
+                               screen_status_printf(_("Database update started"));
                } else
                        screen_status_printf(_("Database update running..."));
                break;
index b3429fca92fd4bb495ec6b41a70a33047c942ef9..2c228834e4227dbcbd0fdf99c94d4c5774dc05ce 100644 (file)
@@ -631,7 +631,6 @@ artist_cmd(mpdclient_t *c, command_t cmd)
                /* continue and update... */
        case CMD_SCREEN_UPDATE:
                reload_lists(c);
-               screen_status_printf(_("Screen updated!"));
                return false;
 
        case CMD_LIST_FIND:
index b073b8710f439ab1499cb6e3d0faec21dc301e01..1f39395c9d839e1c96d896609ccf054e6f3d25ac 100644 (file)
@@ -121,7 +121,7 @@ handle_delete(mpdclient_t *c)
        entity = entry->entity;
 
        if( entity->type!=MPD_INFO_ENTITY_TYPE_PLAYLISTFILE ) {
-               screen_status_printf(_("You can only delete playlists!"));
+               screen_status_printf(_("You can only delete playlists"));
                screen_bell();
                return -1;
        }
@@ -133,14 +133,14 @@ handle_delete(mpdclient_t *c)
        key = tolower(screen_getch(screen.status_window.w, buf));
        g_free(buf);
        if( key != YES[0] ) {
-               screen_status_printf(_("Aborted!"));
+               screen_status_printf(_("Aborted"));
                return 0;
        }
 
        if( mpdclient_cmd_delete_playlist(c, plf->path) )
                return -1;
 
-       screen_status_printf(_("Playlist deleted!"));
+       screen_status_printf(_("Playlist deleted"));
        return 0;
 }
 
@@ -239,8 +239,6 @@ browse_cmd(mpdclient_t *c, command_t cmd)
                list_window_check_selected(browser.lw,
                                           filelist_length(browser.filelist));
                file_repaint();
-
-               screen_status_printf(_("Screen updated!"));
                return false;
 
        case CMD_DB_UPDATE:
@@ -252,11 +250,11 @@ browse_cmd(mpdclient_t *c, command_t cmd)
                                if (strcmp(browser.filelist->path, "")) {
                                        char *path_locale =
                                                utf8_to_locale(browser.filelist->path);
-                                       screen_status_printf(_("Database update of %s started!"),
+                                       screen_status_printf(_("Database update of %s started"),
                                                             path_locale);
                                        g_free(path_locale);
                                } else
-                                       screen_status_printf(_("Database update started!"));
+                                       screen_status_printf(_("Database update started"));
 
                                /* set updatingDb to make shure the browse callback gets called
                                 * even if the updated has finished before status is updated */
index d55d4c0d2999313e7de38e472913410e4ccfdc65..02ef177d828cce17df35b5f707a411bcb44513db 100644 (file)
@@ -66,7 +66,7 @@ apply_keys(void)
                size_t size = command_list_length * sizeof(command_definition_t);
 
                memcpy(orginal_cmds, cmds, size);
-               screen_status_printf(_("You have new key bindings!"));
+               screen_status_printf(_("You have new key bindings"));
        } else
                screen_status_printf(_("Keybindings unchanged."));
 }
@@ -159,7 +159,7 @@ assign_new_key(WINDOW *w, int cmd_index, int key_index)
        g_free(buf);
 
        if (key==ERR) {
-               screen_status_printf(_("Aborted!"));
+               screen_status_printf(_("Aborted"));
                return;
        }
 
@@ -212,7 +212,8 @@ list_callback(unsigned idx, int *highlight, G_GNUC_UNUSED void *data)
                                   cmds[subcmd].keys[idx]);
                        return buf;
                } else if (idx == subcmd_addpos) {
-                       g_snprintf(buf, BUFSIZE, _("%d. Add new key "), idx + 1);
+                       g_snprintf(buf, BUFSIZE, "%d. %s",
+                                  idx + 1, _("Add new key"));
                        return buf;
                }
        }
@@ -258,7 +259,6 @@ keydef_open(G_GNUC_UNUSED mpdclient_t *c)
                cmds = g_malloc0(cmds_size);
                memcpy(cmds, current_cmds, cmds_size);
                command_list_length += STATIC_ITEMS;
-               screen_status_printf(_("Welcome to the key editor!"));
        }
 
        subcmd = -1;
index 2d61bc0924a1c14d7cdc397ee7c1ba29f1d8ded4..93a47cc8d3f3bae0b3a45094c5e7f7aa225e4a61 100644 (file)
@@ -323,7 +323,7 @@ lyrics_cmd(mpdclient_t *c, command_t cmd)
        case CMD_ADD:
                if (current.loader == NULL && current.artist != NULL &&
                    current.title != NULL && store_lyr_hd() == 0)
-                       screen_status_message (_("Lyrics saved!"));
+                       screen_status_message (_("Lyrics saved"));
                return true;
        case CMD_LYRICS_UPDATE:
                if (c->song != NULL) {
index 6fd586af952b79abfcae42e1f2457d4f046a00cb..b4fb15f574eb9f5679db3c3cd216e5f41c1052b6 100644 (file)
@@ -258,7 +258,7 @@ playlist_save(mpdclient_t *c, char *name, char *defaultname)
                                return error;
                        }
 
-                       screen_status_printf(_("Aborted!"));
+                       screen_status_printf(_("Aborted"));
                }
 
                g_free(filename);