From 54589b56bf0c7000915e3fe57c1b9e10a861af08 Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Sun, 2 Apr 2017 21:31:05 +0200 Subject: [PATCH] fix translation of 3 Main Buttons --- default-template.ini | 5 +++-- photobooth.c | 2 -- photobooth.ui | 6 +++--- photoboothwin.c | 3 +++ 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/default-template.ini b/default-template.ini index 22988b4..34e2094 100644 --- a/default-template.ini +++ b/default-template.ini @@ -50,8 +50,9 @@ Focussing... = stelle scharf... Taking photo... = fotografiere... Taking photo failed! = Fotografieren fehlgeschlagen! Processing photo... = verarbeite Foto... -Print Photo? = Foto Drucken? -Upload photo? = Foto hochladen? +Print photo = Foto drucken +Upload photo = Foto hochladen +Cancel = Abbrechen Please wait... = Bitte warten... Printer %s online. %i prints (%s) remaining = Drucker %s bereit. %i Abzüge (%s) übrig Can't parse printer backend output = Fehler beim Verarbeiten der Ausgabe vom Drucker-Backend diff --git a/photobooth.c b/photobooth.c index b8f30c1..2513ffc 100644 --- a/photobooth.c +++ b/photobooth.c @@ -1620,7 +1620,6 @@ static GstPadProbeReturn photo_booth_catch_photo_buffer (GstPad * pad, GstPadPro gtk_widget_show (GTK_WIDGET (priv->win->button_print)); gtk_widget_show (GTK_WIDGET (priv->win->button_cancel)); photo_booth_window_show_cursor (priv->win); - gtk_label_set_text (priv->win->status, _("Print Photo?")); g_main_context_invoke (NULL, (GSourceFunc) photo_booth_process_photo_plug_elements, pb); break; } @@ -2039,7 +2038,6 @@ static void photo_booth_print_done (GtkPrintOperation *operation, GtkPrintOperat if ((priv->imgur_album_id && priv->imgur_access_token) || priv->facebook_put_uri) { gtk_widget_show (GTK_WIDGET (priv->win->button_upload)); - gtk_label_set_text (priv->win->status, _("Upload photo?")); g_timeout_add_seconds (priv->upload_timeout, (GSourceFunc) photo_booth_upload_timedout, pb); photo_booth_change_state (pb, PB_STATE_ASK_UPLOAD); } diff --git a/photobooth.ui b/photobooth.ui index 823d16f..808140f 100644 --- a/photobooth.ui +++ b/photobooth.ui @@ -54,7 +54,7 @@ False - Ausdrucken! + Print! 360 120 True @@ -73,7 +73,7 @@ - Abbrechen + Cancel 360 120 True @@ -92,7 +92,7 @@ - Auf Facebook teilen + Upload! 360 120 True diff --git a/photoboothwin.c b/photoboothwin.c index fc52bfe..895a134 100644 --- a/photoboothwin.c +++ b/photoboothwin.c @@ -93,6 +93,9 @@ static void photo_booth_window_init (PhotoBoothWindow *win) g_object_unref (cssfile); } } + gtk_button_set_label (win->button_cancel, _("Cancel")); + gtk_button_set_label (win->button_print, _("Print photo")); + gtk_button_set_label (win->button_upload, _("Upload photo")); g_timeout_add (1000, (GSourceFunc) _pbw_clock_tick, win->status_clock); }