diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-15 23:39:29 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-15 23:39:29 +0200 |
commit | 51530925ec9efce86e105c0327cbe67a317aa950 (patch) | |
tree | e44e0c48fb47efbebacfcce353c0e1ba3b27ea6d /plugins/gtkui/mainplaylist.c | |
parent | 919e8f9e45c77217d1893281ca8606b21c1389f5 (diff) |
added basic gettext support and russian translation
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 4c3b5d9e..7ad6e0ad 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -16,8 +16,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif #include <stdlib.h> #include <string.h> +#include "../../gettext.h" #include "parser.h" #include "gtkui.h" #include "ddblistview.h" @@ -290,11 +294,11 @@ main_playlist_init (GtkWidget *widget) { DB_conf_item_t *col = deadbeef->conf_find ("playlist.column.", NULL); if (!col) { // create default set of columns - add_column_helper (listview, "Playing", 50, DB_COLUMN_PLAYING, NULL, 0); - add_column_helper (listview, "Artist / Album", 150, -1, "%a - %b", 0); - add_column_helper (listview, "Track No", 50, -1, "%n", 1); - add_column_helper (listview, "Title / Track Artist", 150, -1, "%t", 0); - add_column_helper (listview, "Duration", 50, -1, "%l", 0); + add_column_helper (listview, _("Playing"), 50, DB_COLUMN_PLAYING, NULL, 0); + add_column_helper (listview, _("Artist / Album"), 150, -1, "%a - %b", 0); + add_column_helper (listview, _("Track No"), 50, -1, "%n", 1); + add_column_helper (listview, _("Title / Track Artist"), 150, -1, "%t", 0); + add_column_helper (listview, _("Duration"), 50, -1, "%l", 0); } else { while (col) { |