Page MenuHomePhabricator

Setup check to install/enable pygments
ClosedPublic

Authored by fabe on Dec 29 2014, 9:48 AM.
Tags
None
Referenced Files
F14347906: D11048.diff
Thu, Dec 19, 3:56 AM
Unknown Object (File)
Fri, Dec 13, 3:33 PM
Unknown Object (File)
Fri, Dec 13, 5:50 AM
Unknown Object (File)
Wed, Dec 11, 4:03 AM
Unknown Object (File)
Sat, Dec 7, 6:41 PM
Unknown Object (File)
Fri, Dec 6, 6:19 AM
Unknown Object (File)
Wed, Dec 4, 9:45 AM
Unknown Object (File)
Wed, Nov 27, 4:51 AM
Subscribers

Details

Summary

Fixes T6533 - actively prompt the user to install and enable pygments

Test Plan

uninstalled / disabled pygments and checked setup checks

Diff Detail

Repository
rP Phabricator
Branch
pygments
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3337
Build 3344: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

fabe retitled this revision from to Setup check to install/enable pygments.
fabe updated this object.
fabe edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Minor wordsmithing/etc.

src/applications/config/check/PhabricatorSetupCheckPygment.php
53–59

Just pht() the whole string, including "\n"'s, e.g.:

pht(
  "Blah blah.\n".
  "Blah blah blah.");

As written, this will make the first sentence translatable to other languages but the last two untranslatable.

54–59

Phabicator can only highlight some languages without Pygments, so maybe this would be clearer with a name like:

Install Pygments to Improve Syntax Highlighting

...and a message like:

Phabricator can highlight a few languages by default, but installing and enabling Pygments (a third-party highlighting tool) will add syntax highlighting for many more languages.

For instructions on installing and enabling Pygments, see the `pygments.enabled` configuration option.

(It doesn't have very good instructions right now, but I can fix that.)

This revision now requires changes to proceed.Dec 29 2014, 5:37 PM
fabe edited edge metadata.

changed wording

epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 29 2014, 5:49 PM
This revision was automatically updated to reflect the committed changes.