From fb4b780eea822c944572f6b3f48544c33a861922 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 28 Feb 2024 11:23:08 +0000 Subject: [PATCH] glib-compile-resources: Provide placeholders for options with an argument If we don't do this, the --help text is formatted as though the option did not expect an argument. IDENTIFIER is a new translated string, but it is developer-oriented, so a missing translation is not particularly bad. COMMAND is already present in translations. Signed-off-by: Simon McVittie --- gio/glib-compile-resources.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c index 2ce923766..36f64a491 100644 --- a/gio/glib-compile-resources.c +++ b/gio/glib-compile-resources.c @@ -830,8 +830,8 @@ main (int argc, char **argv) { "manual-register", 0, 0, G_OPTION_ARG_NONE, &manual_register, N_("Don’t automatically create and register resource"), NULL }, { "internal", 0, 0, G_OPTION_ARG_NONE, &internal, N_("Don’t export functions; declare them G_GNUC_INTERNAL"), NULL }, { "external-data", 0, 0, G_OPTION_ARG_NONE, &external_data, N_("Don’t embed resource data in the C file; assume it's linked externally instead"), NULL }, - { "c-name", 0, 0, G_OPTION_ARG_STRING, &c_name, N_("C identifier name used for the generated source code"), NULL }, - { "compiler", 'C', 0, G_OPTION_ARG_STRING, &compiler, N_("The target C compiler (default: the CC environment variable)"), NULL }, + { "c-name", 0, 0, G_OPTION_ARG_STRING, &c_name, N_("C identifier name used for the generated source code"), N_("IDENTIFIER") }, + { "compiler", 'C', 0, G_OPTION_ARG_STRING, &compiler, N_("The target C compiler (default: the CC environment variable)"), N_("COMMAND") }, G_OPTION_ENTRY_NULL };