Mend Googly Eyes name(!) & adjust how description l10ns

h/t Karl Ove Hufthammer
This commit is contained in:
Bill Kendrick 2023-02-27 22:28:12 -08:00
parent 42a479be53
commit 00da6d60fb

View file

@ -3,7 +3,7 @@
Draws a googly eye at the click position, and looks Draws a googly eye at the click position, and looks
towards where you drag+release. towards where you drag+release.
Last updated: February 12, 2023 Last updated: February 27, 2023
*/ */
#include <stdio.h> #include <stdio.h>
@ -17,9 +17,9 @@
#define NUM_SIZES 2 #define NUM_SIZES 2
int sizes[NUM_SIZES] = { 100, 50 }; int sizes[NUM_SIZES] = { 100, 50 };
char * size_names[NUM_SIZES] = { char * googlyeyes_descr[NUM_SIZES] = {
gettext_noop("large googly eye"), "Click to place a large googly eye, then drag and release to make it look that direction.",
gettext_noop("small googly eye") "Click to place a small googly eye, then drag and release to make it look that direction."
}; };
char * img_filenames[NUM_SIZES] = { char * img_filenames[NUM_SIZES] = {
"googlyeyes.png", "googlyeyes.png",
@ -162,7 +162,7 @@ SDL_Surface *googlyeyes_get_icon(magic_api * api, int which)
char *googlyeyes_get_name(magic_api * api ATTRIBUTE_UNUSED, char *googlyeyes_get_name(magic_api * api ATTRIBUTE_UNUSED,
int which ATTRIBUTE_UNUSED) int which ATTRIBUTE_UNUSED)
{ {
return strdup(gettext("Google Eyes")); return strdup(gettext("Googly Eyes"));
} }
int googlyeyes_get_group(magic_api * api ATTRIBUTE_UNUSED, int googlyeyes_get_group(magic_api * api ATTRIBUTE_UNUSED,
@ -175,10 +175,7 @@ char *googlyeyes_get_description(magic_api * api ATTRIBUTE_UNUSED,
int which ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED,
int mode ATTRIBUTE_UNUSED) int mode ATTRIBUTE_UNUSED)
{ {
char tmp[512]; return strdup(gettext(googlyeyes_descr[which]));
sprintf(tmp, gettext("Click to place a %s, then drag and release to make it look that direction."), gettext(size_names[which]));
return strdup(tmp);
} }
int googlyeyes_requires_colors(magic_api * api ATTRIBUTE_UNUSED, int googlyeyes_requires_colors(magic_api * api ATTRIBUTE_UNUSED,