mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
wmaker: change message to have only one string to translate and to have more information
The warning message was duplicated many times for each possible case, but it could have used the same message everywhere, which ease the work of translators. Took opportunity to include the complete command being processed so that the user will know more about the problem and may be able to fix it. Updated the French translation to show the gain, but not the other languages because it require more knowledge than what Google Translate can provide me. Signed-off-by: Christophe CURIS <christophe.curis@free.fr> Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
877c26b467
commit
6e8639c47d
10
src/misc.c
10
src/misc.c
@@ -575,7 +575,7 @@ char *ExpandOptions(WScreen *scr, const char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%%w\""));
|
||||
wwarning(_("out of memory during expansion of '%s' for command \"%s\""), "%w", cmdline);
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -592,7 +592,7 @@ char *ExpandOptions(WScreen *scr, const char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%%W\""));
|
||||
wwarning(_("out of memory during expansion of '%s' for command \"%s\""), "%W", cmdline);
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -609,7 +609,7 @@ char *ExpandOptions(WScreen *scr, const char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%%a\""));
|
||||
wwarning(_("out of memory during expansion of '%s' for command \"%s\""), "%a", cmdline);
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -632,7 +632,7 @@ char *ExpandOptions(WScreen *scr, const char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%%d\""));
|
||||
wwarning(_("out of memory during expansion of '%s' for command \"%s\""), "%d", cmdline);
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -653,7 +653,7 @@ char *ExpandOptions(WScreen *scr, const char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%%s\""));
|
||||
wwarning(_("out of memory during expansion of '%s' for command \"%s\""), "%s", cmdline);
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
|
||||
Reference in New Issue
Block a user