On Sat, 18 Apr 2020, Sven Schreiber wrote:
Hi,
I think the string in the following line must still be marked for
translation:
gui/menustate.c: sprintf(tmp + 1, "Imported %s", basename);
Do I understand correctly -to do it myself in the future- that it would
have to be replaced with:
N_("Imported %s")
?
Almost. But the syntax N_(<string>) means "mark this string for
translation but don't actually translate it here". In this case
you'd want _("Imported %s") to get it translated in place.
The N_() form is used in this kind of context:
const char *s = N_("Something stringy"); /* mark it */
...
printf("%s\n", _(s)); /* actually translate it */
Allin