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(':', $paths); putenv('PATH='.$current_env_path.':'.$new_env_paths); }