Skip to content

Commit

Permalink
client: enabled localization support on Mac, refs #74
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSimek committed Nov 16, 2012
1 parent e057e09 commit 646aff3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/client/cl_main.c
Expand Up @@ -100,11 +100,11 @@ cvar_t *cl_trn;
cvar_t *cl_missionStats;
cvar_t *cl_waitForFire;

// NERVE - SMF - localization
// Localization
cvar_t *cl_language;
cvar_t *cl_debugTranslation;

// DHM - Nerve :: Auto-Update
// Auto-Update
cvar_t *cl_updateavailable;
cvar_t *cl_updatefiles;

Expand Down Expand Up @@ -3282,7 +3282,7 @@ void CL_CheckAutoUpdate(void)
cls.autoupdateServer.port = BigShort(PORT_SERVER);
Com_DPrintf("Auto-update server at: %i.%i.%i.%i:%i (%s)\n", cls.autoupdateServer.ip[0], cls.autoupdateServer.ip[1],
cls.autoupdateServer.ip[2], cls.autoupdateServer.ip[3],
BigShort(cls.autoupdateServer.port) , cls.autoupdateServerNames[0]);
BigShort(cls.autoupdateServer.port), cls.autoupdateServerNames[0]);

NET_OutOfBandPrint(NS_CLIENT, cls.autoupdateServer, "getUpdateInfo \"%s\" \"%s\"\n", Q3_VERSION, CPUSTRING);

Expand Down Expand Up @@ -3738,11 +3738,11 @@ void CL_Init(void)
cl_missionStats = Cvar_Get("g_missionStats", "0", CVAR_ROM);
cl_waitForFire = Cvar_Get("cl_waitForFire", "0", CVAR_ROM);

// NERVE - SMF - localization
// Localization
cl_language = Cvar_Get("cl_language", "0", CVAR_ARCHIVE);
cl_debugTranslation = Cvar_Get("cl_debugTranslation", "0", 0);

// DHM - Nerve :: Auto-update
// Auto-update
cl_updateavailable = Cvar_Get("cl_updateavailable", "0", CVAR_ROM);
cl_updatefiles = Cvar_Get("cl_updatefiles", "", CVAR_ROM);

Expand Down Expand Up @@ -4981,7 +4981,7 @@ qboolean CL_GetLimboString(int index, char *buf)
return qtrue;
}

// NERVE - SMF - Localization code
// Localization code
#define FILE_HASH_SIZE 1024
#define MAX_VA_STRING 32000
#define MAX_TRANS_STRING 4096
Expand Down
4 changes: 1 addition & 3 deletions src/qcommon/q_shared.h
Expand Up @@ -1817,10 +1817,9 @@ typedef enum _flag_status
#define MAX_PINGREQUESTS 16
#define MAX_SERVERSTATUSREQUESTS 16

// NERVE - SMF - localization
// Localization
typedef enum
{
#ifndef __MACOS__ //DAJ USA
LANGUAGE_FRENCH = 0,
LANGUAGE_GERMAN,
LANGUAGE_ITALIAN,
Expand All @@ -1831,7 +1830,6 @@ typedef enum
LANGUAGE_RUSSIAN, // FIXME: NO SUPPORT of ISO-8859-1
LANGUAGE_FINNISH,
LANGUAGE_DANISH,
#endif
MAX_LANGUAGES
} languages_t;

Expand Down

0 comments on commit 646aff3

Please sign in to comment.