Fix "geeqie --help" remote commands section translation
authorCarles Pina i Estany <carles@pina.cat>
Mon, 1 Aug 2022 18:52:03 +0000 (19:52 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 2 Aug 2022 08:26:01 +0000 (09:26 +0100)
The strings were marked to be translated in the:
"static RemoteCommandEntry remote_commands" as N_("some string")

Now it translates the strings at printing time.

src/remote.c

index 7c31272..1046ea7 100644 (file)
@@ -1525,13 +1525,13 @@ void remote_help(void)
                        printf_term(FALSE, "  %-4s %-40s%-s\n",
                                        s_opt_param,
                                        l_opt_param,
-                                       remote_commands[i].description);
+                                       _(remote_commands[i].description));
                        g_free(s_opt_param);
                        g_free(l_opt_param);
                        }
                i++;
                }
-       printf_term(FALSE, N_("\n\n  All other command line parameters are used as plain files if they exist.\n\n  The name of a collection, with or without either path or extension (.gqv) may be used.\n"));
+       printf_term(FALSE, _("\n\n  All other command line parameters are used as plain files if they exist.\n\n  The name of a collection, with or without either path or extension (.gqv) may be used.\n"));
 }
 
 GList *remote_build_list(GList *list, gint argc, gchar *argv[], GList **errors)