Thread: [Solved] Problems languages
View Single Post
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-05-2021 , 11:10   Re: Problems languages
Reply With Quote #4

yes what I mean is:

if you have "{1}" (for example) in your translation file probably you must have a "#format" "{1:N}" clause too

Sample:

PHP Code:
    "Sample Format"
    
{
        
"#format"        "{1:N}"
        "en"            "{orange}{1} {lightgreen}is my name"
        "es"            "{orange}{1} {lightgreen}es mi nombre"
        "pt"            "{orange}{1} {lightgreen}é meu nome"
        "pt_p"            "{orange}{1} {lightgreen}é meu nome"
    

And in your backend code probably you will have something like this:

PHP Code:
CPrintToChat(client"%t""Sample Format"client); 
__________________

Last edited by Marttt; 04-05-2021 at 11:12.
Marttt is offline