@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Decentralize phtize

Summary: The idea is to have all `phtize` definitions in applications to allow their separation.

Test Plan: Clicked View Options after mangling the translation.

Reviewers: epriestley

Reviewed By: epriestley

CC: btrahan, Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7345

+28 -32
+15 -1
src/applications/differential/view/DifferentialChangesetListView.php
··· 114 114 )); 115 115 Javelin::initBehavior( 116 116 'differential-dropdown-menus', 117 - array()); 117 + array( 118 + 'pht' => array( 119 + 'Open in Editor' => pht('Open in Editor'), 120 + 'Show Entire File' => pht('Show Entire File'), 121 + 'Entire File Shown' => pht('Entire File Shown'), 122 + "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), 123 + 'Expand File' => pht('Expand File'), 124 + 'Collapse File' => pht('Collapse File'), 125 + 'Browse in Diffusion' => pht('Browse in Diffusion'), 126 + 'View Standalone' => pht('View Standalone'), 127 + 'Show Raw File (Left)' => pht('Show Raw File (Left)'), 128 + 'Show Raw File (Right)' => pht('Show Raw File (Right)'), 129 + 'Configure Editor' => pht('Configure Editor'), 130 + ), 131 + )); 118 132 119 133 $output = array(); 120 134 $mapping = array();
-30
src/infrastructure/javelin/Javelin.php
··· 3 3 final class Javelin { 4 4 5 5 public static function initBehavior($behavior, array $config = array()) { 6 - switch ($behavior) { 7 - case 'differential-dropdown-menus': 8 - $config['pht'] = array( 9 - 'Open in Editor' => pht('Open in Editor'), 10 - 'Show Entire File' => pht('Show Entire File'), 11 - 'Entire File Shown' => pht('Entire File Shown'), 12 - "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), 13 - 'Expand File' => pht('Expand File'), 14 - 'Collapse File' => pht('Collapse File'), 15 - 'Browse in Diffusion' => pht('Browse in Diffusion'), 16 - 'View Standalone' => pht('View Standalone'), 17 - 'Show Raw File (Left)' => pht('Show Raw File (Left)'), 18 - 'Show Raw File (Right)' => pht('Show Raw File (Right)'), 19 - 'Configure Editor' => pht('Configure Editor'), 20 - ); 21 - break; 22 - 23 - case 'phabricator-remarkup-assist': 24 - $config['pht'] = array( 25 - 'bold text' => pht('bold text'), 26 - 'italic text' => pht('italic text'), 27 - 'monospaced text' => pht('monospaced text'), 28 - 'List Item' => pht('List Item'), 29 - 'data' => pht('data'), 30 - 'name' => pht('name'), 31 - 'URL' => pht('URL'), 32 - ); 33 - break; 34 - } 35 - 36 6 $response = CelerityAPI::getStaticResourceResponse(); 37 7 $response->initBehavior($behavior, $config); 38 8 }
+13 -1
src/view/form/control/PhabricatorRemarkupControl.php
··· 27 27 'uri' => '/file/dropupload/', 28 28 )); 29 29 30 - Javelin::initBehavior('phabricator-remarkup-assist', array()); 30 + Javelin::initBehavior( 31 + 'phabricator-remarkup-assist', 32 + array( 33 + 'pht' => array( 34 + 'bold text' => pht('bold text'), 35 + 'italic text' => pht('italic text'), 36 + 'monospaced text' => pht('monospaced text'), 37 + 'List Item' => pht('List Item'), 38 + 'data' => pht('data'), 39 + 'name' => pht('name'), 40 + 'URL' => pht('URL'), 41 + ), 42 + )); 31 43 Javelin::initBehavior('phabricator-tooltips', array()); 32 44 33 45 $actions = array(