AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Ignoring translation to invalid language "#format" (https://forums.alliedmods.net/showthread.php?t=142690)

Annihilator 11-08-2010 12:43

Ignoring translation to invalid language "#format"
 
I've been getting this error lately and I've got no idea what's wrong
Error and translation examples:

PHP Code:

Ignoring translation to invalid language "#format" on line 

PHP Code:

    "killed"
    
{
        
"#format"    "{1:N},{2:N}"
        "en"        "{1} killed {2}"
    


Any idea what could've coused it?

dirka_dirka 11-10-2010 02:26

Re: Ignoring translation to invalid language "#format"
 
N is not valid.

psychonic 11-10-2010 06:53

Re: Ignoring translation to invalid language "#format"
 
Quote:

Originally Posted by dirka_dirka (Post 1346433)
N is not valid.

Sure it is. N is name when given a client index.

rhelgeby 11-10-2010 07:14

Re: Ignoring translation to invalid language "#format"
 
The format specifier should only be in the english (original) translation. Remove that line in translations for other languages, because it will read the english file to get the format string.

dirka_dirka 11-10-2010 12:51

Re: Ignoring translation to invalid language "#format"
 
Quote:

Originally Posted by psychonic (Post 1346513)
Sure it is. N is name when given a client index.

then the wiki needs to be updated.


All times are GMT -4. The time now is 07:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.