gettext_noop() should be used for some old system.

This commit is contained in:
Shin-ichi TOYAMA 2009-05-26 16:10:00 +00:00
parent db92c6c6cc
commit a5fdc5cf3a
10 changed files with 20 additions and 20 deletions

View file

@ -97,12 +97,12 @@ SDL_Surface * alien_get_icon(magic_api * api, int which){
// Return our names, localized:
char * alien_get_name(magic_api * api, int which){
return(strdup(gettext(alien_names[which])));
return(strdup(gettext_noop(alien_names[which])));
}
// Return our descriptions, localized:
char * alien_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(alien_descs[which][mode-1])));
return(strdup(gettext_noop(alien_descs[which][mode-1])));
}
//Do the effect for one pixel

View file

@ -89,12 +89,12 @@ SDL_Surface * blur_get_icon(magic_api * api, int which){
// Return our names, localized:
char * blur_get_name(magic_api * api, int which){
return(strdup(gettext(blur_names[which])));
return(strdup(gettext_noop(blur_names[which])));
}
// Return our descriptions, localized:
char * blur_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(blur_descs[which][mode-1])));
return(strdup(gettext_noop(blur_descs[which][mode-1])));
}
//Do the effect for one pixel

View file

@ -103,12 +103,12 @@ SDL_Surface * mosaic_get_icon(magic_api * api, int which){
// Return our names, localized:
char * mosaic_get_name(magic_api * api, int which){
return(strdup(gettext(mosaic_names[which])));
return(strdup(gettext_noop(mosaic_names[which])));
}
// Return our descriptions, localized:
char * mosaic_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(mosaic_descs[which][mode-1])));
return(strdup(gettext_noop(mosaic_descs[which][mode-1])));
}
//Calculates the grey scale value for a rgb pixel

View file

@ -96,12 +96,12 @@ SDL_Surface * noise_get_icon(magic_api * api, int which){
// Return our names, localized:
char * noise_get_name(magic_api * api, int which){
return(strdup(gettext(noise_names[which])));
return(strdup(gettext_noop(noise_names[which])));
}
// Return our descriptions, localized:
char * noise_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(noise_descs[which][mode-1])));
return(strdup(gettext_noop(noise_descs[which][mode-1])));
}
//Do the effect for one pixel

View file

@ -106,12 +106,12 @@ SDL_Surface * rain_get_icon(magic_api * api, int which){
// Return our names, localized:
char * rain_get_name(magic_api * api, int which){
return(strdup(gettext(rain_names[which])));
return(strdup(gettext_noop(rain_names[which])));
}
// Return our descriptions, localized:
char * rain_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(rain_descs[which][mode-1])));
return(strdup(gettext_noop(rain_descs[which][mode-1])));
}
// Do the effect:

View file

@ -66,12 +66,12 @@ SDL_Surface * realrainbow_get_icon(magic_api * api, int which)
char * realrainbow_get_name(magic_api * api, int which)
{
return(strdup(gettext("Real Rainbow")));
return(strdup(gettext_noop("Real Rainbow")));
}
char * realrainbow_get_description(magic_api * api, int which, int mode)
{
return(strdup(gettext("Click where you want your rainbow to start, drag to where you want it to end, and then let go to draw a rainbow.")));
return(strdup(gettext_noop("Click where you want your rainbow to start, drag to where you want it to end, and then let go to draw a rainbow.")));
}
int realrainbow_modes(magic_api * api, int which)

View file

@ -115,12 +115,12 @@ SDL_Surface * sharpen_get_icon(magic_api * api, int which){
// Return our names, localized:
char * sharpen_get_name(magic_api * api, int which){
return(strdup(gettext(sharpen_names[which])));
return(strdup(gettext_noop(sharpen_names[which])));
}
// Return our descriptions, localized:
char * sharpen_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(sharpen_descs[which][mode-1])));
return(strdup(gettext_noop(sharpen_descs[which][mode-1])));
}
//Calculates the grey scale value for a rgb pixel

View file

@ -115,12 +115,12 @@ SDL_Surface * snow_get_icon(magic_api * api, int which){
// Return our names, localized:
char * snow_get_name(magic_api * api, int which){
return(strdup(gettext(snow_names[which])));
return(strdup(gettext_noop(snow_names[which])));
}
// Return our descriptions, localized:
char * snow_get_description(magic_api * api, int which){
return(strdup(gettext(snow_descs[which])));
return(strdup(gettext_noop(snow_descs[which])));
}
// Do the effect:

View file

@ -105,12 +105,12 @@ SDL_Surface * tint_get_icon(magic_api * api, int which){
// Return our names, localized:
char * tint_get_name(magic_api * api, int which){
return(strdup(gettext(tint_names[which])));
return(strdup(gettext_noop(tint_names[which])));
}
// Return our descriptions, localized:
char * tint_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(tint_descs[which][mode-1])));
return(strdup(gettext_noop(tint_descs[which][mode-1])));
}
//Calculates the grey scale value for a rgb pixel

View file

@ -113,12 +113,12 @@ SDL_Surface * toothpaste_get_icon(magic_api * api, int which){
// Return our names, localized:
char * toothpaste_get_name(magic_api * api, int which){
return(strdup(gettext(toothpaste_names[which])));
return(strdup(gettext_noop(toothpaste_names[which])));
}
// Return our descriptions, localized:
char * toothpaste_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(toothpaste_descs[which])));
return(strdup(gettext_noop(toothpaste_descs[which])));
}
// Do the effect: