View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 01-03-2021 , 00:35   Re: [L4D2] Vote Manager 3
Reply With Quote #190

Quote:
Originally Posted by disawar1 View Post
You added missing phrases and fix grammar but you totally remove format properties. So your file is corrupted now. Read Translation page on wiki and fix your file.
The Russian translation file included in the main post's package doesn't have them either because you only need the format properties for the main (English) file. If you check the translation files of the default SM plugins, you'll notice they did it that way as well.

translations/l4d2_vote_manager.phrases.txt:
PHP Code:
"Phrases"
{
    
"Vetoed"
    
{
        
"#format"    "{1:N}"
        "en"        "{1} has vetoed current vote!"
    
}
    
    
"Passed"
    
{
        
"#format"    "{1:N}"
        "en"        "{1} has passed current vote!"
    
}
    
    ... 
translations/ru/l4d2_vote_manager.phrases.txt:
PHP Code:
"Phrases"
{
    
"Vetoed"
    
{
        
"ru"        "{1} отменил голосование!"
    
}
    
    
"Passed"
    
{
        
"ru"        "{1} пропустил голосование!"
    
}
    
    ... 
SM's admin help plugin:

translations/adminhelp.phrases.txt:
PHP Code:
"Phrases"
{
    ...

    
"Type sm_help to see more"
    
{
        
"#format"        "{1:d}"
        "en"            "Type sm_help {1} to see more commands"
    
}

    
"Entries n - m in page k"
    
{
        
"#format"        "{1:d},{2:d},{3:d}"
        "en"            "Entries {1} - {2} in page {3}"
    
}

    ... 
translations/ru/adminhelp.phrases.txt:
PHP Code:
"Phrases"
{
    ...

    
"Type sm_help to see more"
    
{
        
"ru"        "Введите sm_help {1} для просмотра остальных команд"
    
}

    
"Entries n - m in page k"
    
{
        
"ru"        "Элементы {1} - {2} на {3} странице"
    
}

    ... 
The page you linked even includes a section that showcases a similar structure: https://wiki.alliedmods.net/Translat...Language_Files
__________________
Psyk0tik is offline