1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

WRaster: Made a few messages translatable

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2021-05-17 16:32:14 +02:00
committed by Carlos R. Mafra
parent 70f89fd9c5
commit e5f7ef23a6
5 changed files with 18 additions and 18 deletions

View File

@@ -454,7 +454,7 @@ static void gatherconfig(RContext * context, int screen_n)
if (ptr) {
float g1, g2, g3;
if (sscanf(ptr, "%f/%f/%f", &g1, &g2, &g3) != 3 || g1 <= 0.0F || g2 <= 0.0F || g3 <= 0.0F) {
printf("wrlib: invalid value(s) for gamma correction \"%s\"\n", ptr);
fprintf(stderr, _("wrlib: invalid value \"%s\" for %s\n"), ptr, "WRASTER_GAMMA");
} else {
context->attribs->flags |= RC_GammaCorrection;
context->attribs->rgamma = g1;
@@ -466,7 +466,7 @@ static void gatherconfig(RContext * context, int screen_n)
if (ptr) {
int i;
if (sscanf(ptr, "%d", &i) != 1 || i < 2 || i > 6) {
printf("wrlib: invalid value for color resolution \"%s\"\n", ptr);
fprintf(stderr, _("wrlib: invalid value \"%s\" for %s\n"), ptr, "WRASTER_COLOR_RESOLUTION");
} else {
context->attribs->flags |= RC_ColorsPerChannel;
context->attribs->colors_per_channel = i;