// later idea: include a list of authorized .po file checksums with the csprogs
{
qboolean deftrans = !!strcmp(PRVM_NAME, "client");
+ const char *realfilename = (strcmp(PRVM_NAME, "client") ? filename : sv.csqc_progname);
if(deftrans) // once we have dotranslate_ strings, ALWAYS use the opt-in method!
{
for (i=0 ; i<prog->progs->numglobaldefs ; i++)
}
if(!strcmp(prvm_language.string, "dump"))
{
- qfile_t *f = FS_OpenRealFile(va("%s.pot", filename), "w", false);
- Con_Printf("Dumping to %s.pot\n", filename);
+ qfile_t *f = FS_OpenRealFile(va("%s.pot", realfilename), "w", false);
+ Con_Printf("Dumping to %s.pot\n", realfilename);
if(f)
{
for (i=0 ; i<prog->progs->numglobaldefs ; i++)
}
else
{
- po_t *po = PRVM_PO_Load(va("%s.%s.po", filename, prvm_language.string), prog->progs_mempool);
+ po_t *po = PRVM_PO_Load(va("%s.%s.po", realfilename, prvm_language.string), prog->progs_mempool);
if(po)
{
for (i=0 ; i<prog->progs->numglobaldefs ; i++)