Fix the strange case of a strresGetString call which is given a hash

string, but does not use hashes. I could not see that it is ever used,
but it must be wrong, so fixing it anyway. Adding the first case of 
gettext markup in the code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1248 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-03-16 18:11:47 +00:00
parent 81507a85f6
commit 5b503205ac
2 changed files with 4 additions and 2 deletions

View File

@ -102,6 +102,9 @@ typedef struct
#define FALSE (0)
#endif
/* Preparation for gettextization of the source code.
* Use this for all new strings that may need translation. */
#define _(x) x
/* defines for ONEINX - use

View File

@ -1551,7 +1551,6 @@ intChooseSystemStats( DROID_TEMPLATE *psTemplate )
/* set SHOWTEMPLATENAME to 0 to show template components in edit box */
#define SHOWTEMPLATENAME 0
//Watermelon:added "hydra" prefix to multi-turret droids
char *GetDefaultTemplateName(DROID_TEMPLATE *psTemplate)
{
COMP_BASE_STATS *psStats;
@ -1561,7 +1560,7 @@ char *GetDefaultTemplateName(DROID_TEMPLATE *psTemplate)
*/
if(psTemplate->droidType == DROID_TRANSPORTER)
{
return strresGetString(NULL,HashString("Transporter"));
return _("Transporter");
}
/*
Now get the normal default droid name based on its components