View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-09-2013 , 12:19   Re: Translation Project Website
Reply With Quote #22

A section like this
Code:
    "Where I aim at"  // a revoir
    {
        "fr"            "Oł je vise."
    }
get's interpreted including the comment.
http://translator.mitchdempsey.com/phrases/1398

Also would be great to be able to add descriptions of the format parameters like {1}.
Currently i'm adding a short info as a comment above the "#format" key. Maybe some syntax like that could be parsed as well? Other than that one could add that description later through the website.
Code:
    "HE bought"
    {
        // 1: Price, 2: amount of grenades in stack
        "#format"        "{1:d},{2:d}"
        "en"            "You bought a {default}HE Grenade (${1}){green} and have {lightgreen}{2}{green} now."
    }
or
Code:
// 1: Price
// 2: amount of grenades in stack
"#format"        "{1:d},{2:d}"
__________________
Peace-Maker is offline