setLanguage($translation->getLanguage()) ->addTranslations($translation->getTranslations()); // Append any paths to $PATH if we need to. $paths = PhabricatorEnv::getEnvConfig('environment.append-paths'); if (!empty($paths)) { $current_env_path = getenv('PATH'); $new_env_paths = implode(PATH_SEPARATOR, $paths); putenv('PATH='.$current_env_path.PATH_SEPARATOR.$new_env_paths); }