Translating PHP files

Get Localization supports following array syntax. Note that the file is parsed, not evaluated. If your PHP file is using key-value syntax instead of array, you may also want to see our key-value parser article.



$locales = Array(
        // this is the context
        "LOGICAL_STRING" => "The master string",

        // the text displayed in the front page
        "Welcome_text" => "Welcome to our website",
        "Signin" => "Log in");

$menu = Array(
        "item_1" => "Home",
        "item_2" => "Exit");

Get Started With Get Localization Today

Get an instant translation quote Try Get Localization Workspace for Free