Update some untranslated text strings
authorColin Clark <colin.clark@cclark.uk>
Thu, 29 Feb 2024 12:45:42 +0000 (12:45 +0000)
committerColin Clark <colin.clark@cclark.uk>
Thu, 29 Feb 2024 12:45:42 +0000 (12:45 +0000)
In some cases, double quotes within a text string have been replaced by
single quotes to make it easier to search for untranslated strings.

16 files changed:
src/bar-gps.cc
src/bar-keywords.cc
src/bar-sort.cc
src/desktop-file.cc
src/dupe.cc
src/format-canon.cc
src/layout-util.cc
src/layout.cc
src/logwindow.cc
src/osd.cc
src/preferences.cc
src/print.cc
src/search.cc
src/ui-pathsel.cc
src/utilops.cc
src/view-file/view-file.cc

index dc6781a..7a81939 100644 (file)
@@ -865,8 +865,7 @@ static void bar_pane_gps_map_centreing(PaneGPSData *pgd)
 
        gd = generic_dialog_new(_("Map centering"),
                                "map_centering", nullptr, TRUE, nullptr, pgd);
-       generic_dialog_add_message(gd, GQ_ICON_DIALOG_INFO,
-                               "Map Centering", message->str, TRUE);
+       generic_dialog_add_message(gd, GQ_ICON_DIALOG_INFO, _("Map Centering"), message->str, TRUE);
        generic_dialog_add_button(gd, GQ_ICON_OK, "OK", nullptr, TRUE);
 
        gtk_widget_show(gd->dialog);
index 2262b20..b745b2e 100644 (file)
@@ -1065,7 +1065,7 @@ static void bar_pane_keywords_disconnect_marks_cb(GtkWidget *menu_widget, gpoint
        gd = generic_dialog_new(_("Marks Keywords"),
                                "marks_keywords", menu_widget, TRUE, dummy_cancel_cb, pkd);
        generic_dialog_add_message(gd, GQ_ICON_DIALOG_WARNING,
-                               "Disconnect all Marks Keywords connections?", _("This will disconnect all Marks Keywords connections"), TRUE);
+                               _("Disconnect all Marks Keywords connections?"), _("This will disconnect all Marks Keywords connections"), TRUE);
        generic_dialog_add_button(gd, GQ_ICON_OK, "OK", bar_pane_keywords_disconnect_marks_ok_cb, TRUE);
 
        gtk_widget_show(gd->dialog);
@@ -1536,7 +1536,7 @@ static GtkWidget *bar_pane_keywords_new(const gchar *id, const gchar *title, con
        gq_gtk_box_pack_end(GTK_BOX(vbox), pkd->autocomplete, FALSE, FALSE, 0);
        gtk_widget_show(pkd->autocomplete);
        gtk_widget_show(vbox);
-       gtk_widget_set_tooltip_text(pkd->autocomplete, "Keyword autocomplete");
+       gtk_widget_set_tooltip_text(pkd->autocomplete, _("Keyword autocomplete"));
 
        path = g_build_filename(get_rc_dir(), "keywords", NULL);
        autocomplete_keywords_list_load(path);
index 5079071..9777e88 100644 (file)
@@ -444,7 +444,7 @@ static void bar_filter_help_dialog()
        gd = generic_dialog_new(_("Sort Manager Operations"),
                                "sort_manager_operations", nullptr, TRUE, nullptr, nullptr);
        generic_dialog_add_message(gd, GQ_ICON_DIALOG_INFO,
-                               "Sort Manager Operations", _("Additional operations utilising plugins\nmay be included by setting:\n\nX-Geeqie-Filter=true\n\nin the plugin file."), TRUE);
+                               _("Sort Manager Operations"), _("Additional operations utilising plugins\nmay be included by setting:\n\nX-Geeqie-Filter=true\n\nin the plugin file."), TRUE);
        generic_dialog_add_button(gd, GQ_ICON_HELP, _("Help"), bar_filter_help_cb, TRUE);
        generic_dialog_add_button(gd, GQ_ICON_OK, "OK", nullptr, TRUE);
 
index a84efa1..8a3ec6c 100644 (file)
@@ -360,7 +360,7 @@ static void editor_list_window_delete_cb(GtkWidget *, gpointer data)
                                            nullptr, TRUE,
                                            editor_list_window_delete_dlg_cancel, ewdl);
 
-               generic_dialog_add_button(ewl->gd, GQ_ICON_DELETE, "Delete", editor_list_window_delete_dlg_ok_cb, TRUE);
+               generic_dialog_add_button(ewl->gd, GQ_ICON_DELETE, _("Delete"), editor_list_window_delete_dlg_ok_cb, TRUE);
 
                text = g_strdup_printf(_("About to delete the file:\n %s"), path);
                generic_dialog_add_message(ewl->gd, GQ_ICON_DIALOG_QUESTION,
@@ -600,7 +600,7 @@ static void editor_list_window_create()
        gtk_widget_show(button);
        ewl->edit_button = button;
 
-       button = pref_button_new(nullptr, GQ_ICON_DELETE, "Delete",
+       button = pref_button_new(nullptr, GQ_ICON_DELETE, _("Delete"),
                                 G_CALLBACK(editor_list_window_delete_cb), ewl);
        gq_gtk_container_add(GTK_WIDGET(hbox), button);
        gtk_widget_set_can_default(button, TRUE);
index e84ca94..57f8ba5 100644 (file)
@@ -3127,7 +3127,7 @@ static void dupe_display_stats(DupeWindow *dw, DupeItem *di)
 
        if (!di) return;
 
-       gd = file_util_gen_dlg("Image thumbprint debug info", "thumbprint",
+       gd = file_util_gen_dlg(_("Image thumbprint debug info"), "thumbprint",
                               dw->window, TRUE,
                               nullptr, nullptr);
        generic_dialog_add_button(gd, GQ_ICON_CLOSE, _("Close"), nullptr, TRUE);
@@ -4784,14 +4784,14 @@ DupeWindow *dupe_window_new()
        gtk_widget_show(dw->custom_threshold);
 
        button = gtk_check_button_new_with_label(_("Sort"));
-       gtk_widget_set_tooltip_text(GTK_WIDGET(button), "Sort by group totals");
+       gtk_widget_set_tooltip_text(GTK_WIDGET(button), _("Sort by group totals"));
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), options->sort_totals);
        g_signal_connect(G_OBJECT(button), "toggled", G_CALLBACK(dupe_sort_totals_toggle_cb), dw);
        gq_gtk_box_pack_start(GTK_BOX(controls_box), button, FALSE, FALSE, PREF_PAD_SPACE);
        gtk_widget_show(button);
 
        dw->button_rotation_invariant = gtk_check_button_new_with_label(_("Ignore Orientation"));
-       gtk_widget_set_tooltip_text(GTK_WIDGET(dw->button_rotation_invariant), "Ignore image orientation");
+       gtk_widget_set_tooltip_text(GTK_WIDGET(dw->button_rotation_invariant), _("Ignore image orientation"));
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dw->button_rotation_invariant), options->rot_invariant_sim);
        g_signal_connect(G_OBJECT(dw->button_rotation_invariant), "toggled",
                         G_CALLBACK(dupe_window_rotation_invariant_cb), dw);
@@ -5358,7 +5358,7 @@ static void pop_menu_export(GList *, gpointer dupe_window, gpointer data)
 {
        const gint index = GPOINTER_TO_INT(data);
        auto dw = static_cast<DupeWindow *>(dupe_window);
-       const gchar *title = "Export duplicates data";
+       const gchar *title = _("Export duplicates data");
        const gchar *default_path = "/tmp/";
        gchar *file_extension;
        ExportDupesData *edd;
index 805e47c..52cd0be 100644 (file)
@@ -158,11 +158,11 @@ gboolean format_canon_raw_crw(guchar *data, const guint len,
 
        /* CRW header starts with 2 bytes for byte order (always "II", little endian),
         * 4 bytes for start of root block,
-        * and 8 bytes of magic for file type and format "HEAPCCDR"
+        * and 8 bytes of magic for file type and format 'HEAPCCDR'
         * (also 4 bytes for file version, and 8 bytes reserved)
         *
         * CIFF specification in pdf format is available on some websites,
-        * search for "CIFFspecV1R03.pdf" or "CIFFspecV1R04.pdf"
+        * search for 'CIFFspecV1R03.pdf' or 'CIFFspecV1R04.pdf'
         */
        if (len < CRW_HEADER_SIZE ||
            memcmp(data, "II", 2) != 0 ||
index b9edc6f..c8844a0 100644 (file)
@@ -260,9 +260,7 @@ static void layout_menu_clear_marks_cb(GtkAction *, gpointer)
 
        gd = generic_dialog_new(_("Clear Marks"),
                                "marks_clear", nullptr, FALSE, clear_marks_cancel_cb, nullptr);
-       generic_dialog_add_message(gd, GQ_ICON_DIALOG_QUESTION, "Clear all marks?",
-                               "This will clear all marks for all images,\nincluding those linked to keywords",
-                               TRUE);
+       generic_dialog_add_message(gd, GQ_ICON_DIALOG_QUESTION, _("Clear all marks?"), _("This will clear all marks for all images,\nincluding those linked to keywords"), TRUE);
        generic_dialog_add_button(gd, GQ_ICON_OK, "OK", layout_menu_clear_marks_ok_cb, TRUE);
        generic_dialog_add_button(gd, GQ_ICON_HELP, _("Help"),
                                clear_marks_help_cb, FALSE);
@@ -638,10 +636,8 @@ static void layout_menu_write_rotate(GtkToggleAction *, gpointer data, gboolean
 
                        message = g_string_append(message, fd_n->name);
 
-                       gd = generic_dialog_new(_("Image orientation"),
-                       "Image orientation", nullptr, TRUE, nullptr, nullptr);
-                       generic_dialog_add_message(gd, GQ_ICON_DIALOG_ERROR,
-                       "Image orientation", message->str, TRUE);
+                       gd = generic_dialog_new(_("Image orientation"), "image_orientation", nullptr, TRUE, nullptr, nullptr);
+                       generic_dialog_add_message(gd, GQ_ICON_DIALOG_ERROR, _("Image orientation"), message->str, TRUE);
                        generic_dialog_add_button(gd, GQ_ICON_OK, "OK", nullptr, TRUE);
 
                        gtk_widget_show(gd->dialog);
index 98776db..ca397b5 100644 (file)
@@ -395,7 +395,7 @@ static GtkWidget *layout_tool_setup(LayoutWindow *lw)
                gtk_widget_show(box_menu_tabcomp);
 
                open_menu = layout_actions_menu_bar(lw);
-               gtk_widget_set_tooltip_text(open_menu, "Open application menu");
+               gtk_widget_set_tooltip_text(open_menu, _("Open application menu"));
                gq_gtk_box_pack_start(GTK_BOX(box_menu_tabcomp), open_menu, FALSE, FALSE, 0);
                gq_gtk_box_pack_start(GTK_BOX(box_menu_tabcomp), tabcomp, TRUE, TRUE, 0);
                gq_gtk_box_pack_start(GTK_BOX(box), box_menu_tabcomp, FALSE, FALSE, 0);
@@ -2757,7 +2757,7 @@ LayoutWindow *layout_new_with_geometry(FileData *dir_fd, LayoutOptions *lop,
                pixbuf = pixbuf_inline(PIXBUF_INLINE_LOGO);
 
                /** @FIXME the zoom value set here is the value, which is then copied again and again
-                  in "Leave Zoom at previous setting" mode. This is not ideal.  */
+                  in 'Leave Zoom at previous setting' mode. This is not ideal.  */
                image_change_pixbuf(lw->image, pixbuf, 0.0, FALSE);
                g_object_unref(pixbuf);
                }
index 8ce6f86..19ae7e2 100644 (file)
@@ -461,7 +461,7 @@ static LogWindow *log_window_create(LayoutWindow *lw)
        gtk_widget_show_all(logwin->wrap);
 
        logwin->timer_data = gtk_toggle_button_new();
-       label = gtk_label_new("Timer");
+       label = gtk_label_new(_("Timer"));
        gtk_widget_set_tooltip_text(GTK_WIDGET(logwin->timer_data), _("Enable timer data"));
        gq_gtk_container_add(GTK_WIDGET(logwin->timer_data), label) ;
        gq_gtk_box_pack_start(GTK_BOX(hbox),logwin->timer_data, FALSE, FALSE, 0) ;
index 6801e5f..0815593 100644 (file)
@@ -373,10 +373,10 @@ gchar *image_osd_mkinfo(const gchar *str, FileData *fd, GHashTable *vars)
                                 * Examples:
                                 * "<i>*</i>\n" -> data is displayed in italics ended with a newline
                                 * "\n"         -> ended with newline
-                                * "ISO *"      -> prefix data with "ISO " (ie. "ISO 100")
+                                * 'ISO *'      -> prefix data with 'ISO ' (ie. 'ISO 100')
                                 * "\**\*"      -> prefix data with a star, and append a star (ie. "*100*")
                                 * "\\*"        -> prefix data with an anti slash (ie "\100")
-                                * "Collection <b>*</b>\n" -> display data in bold prefixed by "Collection " and a newline is appended
+                                * 'Collection <b>*</b>\n' -> display data in bold prefixed by 'Collection ' and a newline is appended
                                 */
                                /** @FIXME using background / foreground colors lead to weird results.
                                 */
index e37e912..a56f3bf 100644 (file)
@@ -1516,7 +1516,7 @@ static void image_overlay_set_font_cb(GtkWidget *widget, gpointer)
 {
        GtkWidget *dialog;
 
-       dialog = gtk_font_chooser_dialog_new("Image Overlay Font", GTK_WINDOW(gtk_widget_get_toplevel(widget)));
+       dialog = gtk_font_chooser_dialog_new(_("Image Overlay Font"), GTK_WINDOW(gtk_widget_get_toplevel(widget)));
        gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
        gtk_font_chooser_set_font(GTK_FONT_CHOOSER(dialog), options->image_overlay.font);
 
@@ -3325,7 +3325,7 @@ static void config_tab_keywords(GtkWidget *notebook)
 
        button = pref_button_new(hbox, GQ_ICON_RUN, _("Search"),
                                   G_CALLBACK(keywords_find_cb), keyword_text);
-       gtk_widget_set_tooltip_text(button, "Search for existing keywords");
+       gtk_widget_set_tooltip_text(button, _("Search for existing keywords"));
 
 
        keyword_text = gtk_text_view_new();
@@ -3421,7 +3421,7 @@ static void add_intent_menu(GtkWidget *table, gint column, gint row, const gchar
 
        gtk_combo_box_set_active(GTK_COMBO_BOX(combo), current);
 
-       gtk_widget_set_tooltip_text(combo,"Refer to the lcms documentation for the defaults used when the selected Intent is not available");
+       gtk_widget_set_tooltip_text(combo,_("Refer to the lcms documentation for the defaults used when the selected Intent is not available"));
 
        g_signal_connect(G_OBJECT(combo), "changed",
                         G_CALLBACK(intent_menu_cb), option_c);
@@ -3624,7 +3624,7 @@ static void config_tab_behavior(GtkWidget *notebook)
 
        marks = pref_checkbox_new_int(group, _("Save marks on exit"),
                                options->marks_save, &c_options->marks_save);
-       gtk_widget_set_tooltip_text(marks,"Note that marks linked to a keyword will be saved irrespective of this setting");
+       gtk_widget_set_tooltip_text(marks,_("Note that marks linked to a keyword will be saved irrespective of this setting"));
 
        with_rename = pref_checkbox_new_int(group, _("Use \"With Rename\" as default for Copy/Move dialogs"),
                                options->with_rename, &c_options->with_rename);
@@ -3632,11 +3632,11 @@ static void config_tab_behavior(GtkWidget *notebook)
 
        collections_on_top = pref_checkbox_new_int(group, _("Permit duplicates in Collections"),
                                options->collections_duplicates, &c_options->collections_duplicates);
-       gtk_widget_set_tooltip_text(collections_on_top,"Allow the same image to be in a Collection more than once");
+       gtk_widget_set_tooltip_text(collections_on_top, _("Allow the same image to be in a Collection more than once"));
 
        collections_on_top = pref_checkbox_new_int(group, _("Open collections on top"),
                                options->collections_on_top, &c_options->collections_on_top);
-       gtk_widget_set_tooltip_text(collections_on_top,"Open collections window on top");
+       gtk_widget_set_tooltip_text(collections_on_top, _("Open collections window on top"));
 
        hide_window_in_fullscreen = pref_checkbox_new_int(group, _("Hide window in fullscreen"),
                                options->hide_window_in_fullscreen, &c_options->hide_window_in_fullscreen);
@@ -3688,7 +3688,7 @@ static void config_tab_behavior(GtkWidget *notebook)
 
        checkbox = pref_checkbox_new_int(group, _("Override disable GPU"),
                                options->override_disable_gpu, &c_options->override_disable_gpu);
-       gtk_widget_set_tooltip_text(checkbox, "Contact the developers for usage");
+       gtk_widget_set_tooltip_text(checkbox, _("Contact the developers for usage"));
 
 #ifdef DEBUG
        pref_spacer(group, PREF_PAD_GROUP);
@@ -3994,7 +3994,7 @@ static void config_tab_advanced(GtkWidget *notebook)
        pref_line(vbox, PREF_PAD_SPACE);
        group = pref_group_new(vbox, FALSE, _("Thread pool limits"), GTK_ORIENTATION_VERTICAL);
 
-       threads_string_label = pref_label_new(group, "This option limits the number of threads (or cpu cores) that Geeqie will use when running duplicate checks.\nThe value 0 means all available cores will be used.");
+       threads_string_label = pref_label_new(group, _("This option limits the number of threads (or cpu cores) that Geeqie will use when running duplicate checks.\nThe value 0 means all available cores will be used."));
        gtk_label_set_line_wrap(GTK_LABEL(threads_string_label), TRUE);
 
        pref_spacer(vbox, PREF_PAD_GROUP);
@@ -4230,7 +4230,7 @@ void show_about_window(LayoutWindow *lw)
        gsize size;
        guint32 flags;
 
-       copyright = g_string_new("This program comes with absolutely no warranty.\nGNU General Public License, version 2 or later.\nSee https://www.gnu.org/licenses/old-licenses/gpl-2.0.html\n\n");
+       copyright = g_string_new(_("This program comes with absolutely no warranty.\nGNU General Public License, version 2 or later.\nSee https://www.gnu.org/licenses/old-licenses/gpl-2.0.html\n\n"));
 
        timezone_path = g_build_filename(get_rc_dir(), TIMEZONE_DATABASE_FILE, NULL);
        if (g_file_test(timezone_path, G_FILE_TEST_EXISTS))
@@ -4248,7 +4248,7 @@ void show_about_window(LayoutWindow *lw)
                }
        g_free(timezone_path);
 
-       copyright = g_string_append(copyright, "\n\nSome icons by https://www.flaticon.com");
+       copyright = g_string_append(copyright, _("\n\nSome icons by https://www.flaticon.com"));
 
        in_stream_authors = g_resources_open_stream(GQ_RESOURCE_PATH_CREDITS "/authors", G_RESOURCE_LOOKUP_FLAGS_NONE, nullptr);
 
@@ -4274,7 +4274,7 @@ void show_about_window(LayoutWindow *lw)
        g_input_stream_read_all(in_stream_translators, translators, size, &bytes_read, nullptr, nullptr);
        g_input_stream_close(in_stream_translators, nullptr, nullptr);
 
-       comment = g_strconcat("Project created by John Ellis\nGQview 1998\nGeeqie 2007\n\n\nDevelopment and bug reports:\n", GQ_EMAIL_ADDRESS, "\nhttps://github.com/BestImageViewer/geeqie/issues",NULL);
+       comment = g_strconcat(N_("Project created by John Ellis\nGQview 1998\nGeeqie 2007\n\n\nDevelopment and bug reports:\n"), GQ_EMAIL_ADDRESS, N_("\nhttps://github.com/BestImageViewer/geeqie/issues"), NULL);
 
        artists[0] = g_strdup("Néstor Díaz Valencia <nestor@estudionexos.com>");
        artists[1] = nullptr;
@@ -4289,7 +4289,7 @@ void show_about_window(LayoutWindow *lw)
                "logo", pixbuf_logo,
                "icon", pixbuf_icon,
                "website", GQ_WEBSITE,
-               "website-label", "Website",
+               "website-label", _("Website"),
                "comments", comment,
                "artists", artists,
                "authors", authors,
index 2a3b8eb..f24f02b 100644 (file)
@@ -388,16 +388,16 @@ static void print_text_menu(GtkWidget *box, PrintWindow *pw)
        gq_gtk_box_pack_start(GTK_BOX(subgroup), hbox, FALSE, FALSE, 0);
 
        /* order is important */
-       button1 = pref_radiobutton_new(hbox, nullptr,  "Header 1",
+       button1 = pref_radiobutton_new(hbox, nullptr,  _("Header 1"),
                                                        options->printer.image_text_position == HEADER_1,
                                                        G_CALLBACK(image_text_position_h1_cb), pw);
-       button1 = pref_radiobutton_new(hbox, button1,  "Header 2",
+       button1 = pref_radiobutton_new(hbox, button1,  _("Header 2"),
                                                        options->printer.image_text_position == HEADER_2,
                                                        G_CALLBACK(image_text_position_h2_cb), pw);
-       button1 = pref_radiobutton_new(hbox, button1, "Footer 1",
+       button1 = pref_radiobutton_new(hbox, button1, _("Footer 1"),
                                                        options->printer.image_text_position == FOOTER_1,
                                                        G_CALLBACK(image_text_position_f1_cb), pw);
-       button1 = pref_radiobutton_new(hbox, button1, "Footer 2",
+       button1 = pref_radiobutton_new(hbox, button1, _("Footer 2"),
                                                        options->printer.image_text_position == FOOTER_2,
                                                        G_CALLBACK(image_text_position_f2_cb), pw);
        gtk_widget_show(hbox);
@@ -451,16 +451,16 @@ static void print_text_menu(GtkWidget *box, PrintWindow *pw)
        gq_gtk_box_pack_start(GTK_BOX(subgroup), hbox, FALSE, FALSE, 0);
 
        /* order is important */
-       button2 = pref_radiobutton_new(hbox, nullptr, "Header 1",
+       button2 = pref_radiobutton_new(hbox, nullptr, _("Header 1"),
                                                        options->printer.page_text_position == HEADER_1,
                                                        G_CALLBACK(page_text_position_h1_cb), pw);
-       button2 = pref_radiobutton_new(hbox, button2,  "Header 2",
+       button2 = pref_radiobutton_new(hbox, button2,  _("Header 2"),
                                                        options->printer.page_text_position == HEADER_2,
                                                        G_CALLBACK(page_text_position_h2_cb), pw);
-       button2 = pref_radiobutton_new(hbox, button2, "Footer 1",
+       button2 = pref_radiobutton_new(hbox, button2, _("Footer 1"),
                                                        options->printer.page_text_position == FOOTER_1,
                                                        G_CALLBACK(page_text_position_f1_cb), pw);
-       button2 = pref_radiobutton_new(hbox, button2, "Footer 2",
+       button2 = pref_radiobutton_new(hbox, button2, _("Footer 2"),
                                                        options->printer.page_text_position == FOOTER_2,
                                                        G_CALLBACK(page_text_position_f2_cb), pw);
        gtk_widget_show(hbox);
@@ -914,7 +914,7 @@ void print_window_new(FileData *, GList *selection, GList *, GtkWidget *parent)
        operation = gtk_print_operation_new();
        settings = gtk_print_settings_new();
 
-       gtk_print_operation_set_custom_tab_label(operation, "Options");
+       gtk_print_operation_set_custom_tab_label(operation, _("Options"));
        gtk_print_operation_set_use_full_page(operation, TRUE);
        gtk_print_operation_set_unit(operation, GTK_UNIT_POINTS);
        gtk_print_operation_set_embed_page_setup(operation, TRUE);
index dd49fc9..e391911 100644 (file)
@@ -1592,7 +1592,7 @@ static void search_gps_dnd_received_cb(GtkWidget *, GdkDragContext *,
                                }
                        else
                                {
-                               gq_gtk_entry_set_text(GTK_ENTRY(sd->entry_gps_coord), "Image is not geocoded");
+                               gq_gtk_entry_set_text(GTK_ENTRY(sd->entry_gps_coord), _("Image is not geocoded"));
                                }
                        }
                }
index 8584959..c802919 100644 (file)
@@ -539,7 +539,7 @@ static void dest_view_delete(Dest_Data *dd, GtkTreeView *view)
                                    dd->entry, TRUE,
                                    dest_view_delete_dlg_cancel, dl);
 
-       generic_dialog_add_button(dd->gd, GQ_ICON_DELETE, "Delete", dest_view_delete_dlg_ok_cb, TRUE);
+       generic_dialog_add_button(dd->gd, GQ_ICON_DELETE, _("Delete"), dest_view_delete_dlg_ok_cb, TRUE);
 
        text = g_strdup_printf(_("About to delete the file:\n %s"), path);
        generic_dialog_add_message(dd->gd, GQ_ICON_DIALOG_QUESTION,
index 9a241bb..b50741a 100644 (file)
@@ -245,7 +245,7 @@ static void generic_dialog_add_image(GenericDialog *gd, GtkWidget *box,
  * @param data
  * @returns
  *
- * \image html file_util_gen_dlg.png "Typical implementation" width=200
+ * \image html file_util_gen_dlg.png 'Typical implementation' width=200
  */
 GenericDialog *file_util_gen_dlg(const gchar *title,
                                 const gchar *role,
@@ -272,7 +272,7 @@ GenericDialog *file_util_gen_dlg(const gchar *title,
  * @param data
  * @returns
  *
- * \image html file_util_file_dlg.png "Typical implementation including optional filter, buttons and path widgets" width=300
+ * \image html file_util_file_dlg.png 'Typical implementation including optional filter, buttons and path widgets' width=300
  */
 FileDialog *file_util_file_dlg(const gchar *title,
                               const gchar *role,
@@ -1774,7 +1774,7 @@ static void file_util_dialog_init_source_dest(UtilityData *ud, gboolean second_i
 
        if (second_image)
                {
-               generic_dialog_add_image(ud->gd, box, nullptr, "Source", TRUE, nullptr, "Destination", TRUE);
+               generic_dialog_add_image(ud->gd, box, nullptr, _("Source"), TRUE, nullptr, _("Destination"), TRUE);
                }
        else
                {
@@ -2729,8 +2729,7 @@ static void file_util_delete_dir_full(FileData *fd, GtkWidget *parent, UtilityPh
                ud->messages.title = _("Delete folder");
                ud->messages.question = _("Delete symbolic link?");
                ud->messages.desc_flist = "";
-               ud->messages.desc_source_fd = _("This will delete the symbolic link.\n"
-                                               "The folder this link points to will not be deleted.");
+               ud->messages.desc_source_fd = _("This will delete the symbolic link.\nThe folder this link points to will not be deleted.");
                ud->messages.fail = _("Link deletion failed");
 
                file_util_dialog_run(ud);
@@ -2741,8 +2740,7 @@ static void file_util_delete_dir_full(FileData *fd, GtkWidget *parent, UtilityPh
                {
                gchar *text;
 
-               text = g_strdup_printf(_("Unable to remove folder %s\n"
-                                        "Permissions do not allow writing to the folder."), fd->path);
+               text = g_strdup_printf(_("Unable to remove folder %s\nPermissions do not allow writing to the folder."), fd->path);
                file_util_warning_dialog(_("Delete failed"), text, GQ_ICON_DIALOG_ERROR, parent);
                g_free(text);
 
@@ -2771,8 +2769,7 @@ static void file_util_delete_dir_full(FileData *fd, GtkWidget *parent, UtilityPh
                                        parent, TRUE, nullptr, nullptr);
                generic_dialog_add_button(gd, GQ_ICON_CLOSE, _("Close"), nullptr, TRUE);
 
-               text = g_strdup_printf(_("Unable to delete the folder:\n\n%s\n\n"
-                                        "This folder contains subfolders which must be moved before it can be deleted."),
+               text = g_strdup_printf(_("Unable to delete the folder:\n\n%s\n\nThis folder contains subfolders which must be moved before it can be deleted."),
                                        fd->path);
                box = generic_dialog_add_message(gd, GQ_ICON_DIALOG_WARNING,
                                                 _("Folder contains subfolders"),
@@ -2802,8 +2799,7 @@ static void file_util_delete_dir_full(FileData *fd, GtkWidget *parent, UtilityPh
                ud->messages.title = _("Delete folder");
                ud->messages.question = _("Delete folder?");
                ud->messages.desc_flist = _("The folder contains these files:");
-               ud->messages.desc_source_fd = _("This will delete the folder.\n"
-                                               "The contents of this folder will also be deleted.");
+               ud->messages.desc_source_fd = _("This will delete the folder.\nThe contents of this folder will also be deleted.");
                ud->messages.fail = _("File deletion failed");
 
                if (!file_util_delete_dir_prepare(ud, flist, dlist))
index 62b6ed1..a2ae72b 100644 (file)
@@ -937,7 +937,7 @@ static gboolean vf_marks_tooltip_cb(GtkWidget *widget,
        gtk_entry_set_icon_from_icon_name(GTK_ENTRY(mte->edit_widget),
                                      GTK_ENTRY_ICON_SECONDARY, GQ_ICON_CLEAR);
        gtk_entry_set_icon_tooltip_text(GTK_ENTRY(mte->edit_widget),
-                                       GTK_ENTRY_ICON_SECONDARY, "Clear");
+                                       GTK_ENTRY_ICON_SECONDARY, _("Clear"));
        g_signal_connect(GTK_ENTRY(mte->edit_widget), "icon-press",
                         G_CALLBACK(vf_marks_filter_on_icon_press), mte);
 
@@ -1833,7 +1833,7 @@ static void vf_read_metadata_in_idle_finished_cb(gpointer data)
 {
        auto vf = static_cast<ViewFile *>(data);
 
-       vf_thumb_status(vf, 0.0, "Loading meta...");
+       vf_thumb_status(vf, 0.0, _("Loading meta..."));
        vf->read_metadata_in_idle_id = 0;
 }