Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/view/PhabricatorSetupIssueView.php
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | public function render() { | ||||
} | } | ||||
$extensions = $issue->getPHPExtensions(); | $extensions = $issue->getPHPExtensions(); | ||||
if ($extensions) { | if ($extensions) { | ||||
$install_these = pht( | $install_these = pht( | ||||
'Install these %d PHP extension(s):', count($extensions)); | 'Install these %d PHP extension(s):', count($extensions)); | ||||
$install_info = pht( | $install_info = pht( | ||||
'You can usually install a PHP extension using %s or %s. Common '. | 'You can usually install a PHP extension using %s, %s, or %s. A '. | ||||
'package names are %s or %s. Try commands like these:', | 'common package name is %s. Try commands like these:', | ||||
phutil_tag('tt', array(), 'apt-get'), | phutil_tag('tt', array(), 'apt-get'), | ||||
phutil_tag('tt', array(), 'dnf'), | |||||
phutil_tag('tt', array(), 'yum'), | phutil_tag('tt', array(), 'yum'), | ||||
hsprintf('<tt>php-<em>%s</em></tt>', pht('extname')), | hsprintf('<tt>php-<em>%s</em></tt>', pht('extname'))); | ||||
hsprintf('<tt>php5-<em>%s</em></tt>', pht('extname'))); | |||||
// TODO: We should do a better job of detecting how to install extensions | // TODO: We should do a better job of detecting how to install extensions | ||||
// on the current system. | // on the current system. | ||||
$install_commands = hsprintf( | $install_commands = hsprintf( | ||||
"\$ sudo apt-get install php5-<em>extname</em> ". | "\$ sudo apt-get install php-<em>extname</em> ". | ||||
"# Debian / Ubuntu\n". | "# Debian / Ubuntu\n". | ||||
"\$ sudo dnf install php-<em>extname</em> ". | |||||
"# Red Hat / Derivatives\n". | |||||
"\$ sudo yum install php-<em>extname</em> ". | "\$ sudo yum install php-<em>extname</em> ". | ||||
"# Red Hat / Derivatives"); | "# Older Red Hat versions"); | ||||
$fallback_info = pht( | $fallback_info = pht( | ||||
"If those commands don't work, try Google. The process of installing ". | "If those commands don't work, try Google. The process of installing ". | ||||
"PHP extensions is not specific to this software, and any ". | "PHP extensions is not specific to this software, and any ". | ||||
"instructions you can find for installing them on your system should ". | "instructions you can find for installing them on your system should ". | ||||
"work. On Mac OS X, you might want to try Homebrew."); | "work. On Mac OS X, you might want to try Homebrew."); | ||||
$restart_info = pht( | $restart_info = pht( | ||||
▲ Show 20 Lines • Show All 517 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0