Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14376397
D7345.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D7345.diff
View Options
Index: src/applications/differential/view/DifferentialChangesetListView.php
===================================================================
--- src/applications/differential/view/DifferentialChangesetListView.php
+++ src/applications/differential/view/DifferentialChangesetListView.php
@@ -114,7 +114,21 @@
));
Javelin::initBehavior(
'differential-dropdown-menus',
- array());
+ array(
+ 'pht' => array(
+ 'Open in Editor' => pht('Open in Editor'),
+ 'Show Entire File' => pht('Show Entire File'),
+ 'Entire File Shown' => pht('Entire File Shown'),
+ "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"),
+ 'Expand File' => pht('Expand File'),
+ 'Collapse File' => pht('Collapse File'),
+ 'Browse in Diffusion' => pht('Browse in Diffusion'),
+ 'View Standalone' => pht('View Standalone'),
+ 'Show Raw File (Left)' => pht('Show Raw File (Left)'),
+ 'Show Raw File (Right)' => pht('Show Raw File (Right)'),
+ 'Configure Editor' => pht('Configure Editor'),
+ ),
+ ));
$output = array();
$mapping = array();
Index: src/infrastructure/javelin/Javelin.php
===================================================================
--- src/infrastructure/javelin/Javelin.php
+++ src/infrastructure/javelin/Javelin.php
@@ -3,36 +3,6 @@
final class Javelin {
public static function initBehavior($behavior, array $config = array()) {
- switch ($behavior) {
- case 'differential-dropdown-menus':
- $config['pht'] = array(
- 'Open in Editor' => pht('Open in Editor'),
- 'Show Entire File' => pht('Show Entire File'),
- 'Entire File Shown' => pht('Entire File Shown'),
- "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"),
- 'Expand File' => pht('Expand File'),
- 'Collapse File' => pht('Collapse File'),
- 'Browse in Diffusion' => pht('Browse in Diffusion'),
- 'View Standalone' => pht('View Standalone'),
- 'Show Raw File (Left)' => pht('Show Raw File (Left)'),
- 'Show Raw File (Right)' => pht('Show Raw File (Right)'),
- 'Configure Editor' => pht('Configure Editor'),
- );
- break;
-
- case 'phabricator-remarkup-assist':
- $config['pht'] = array(
- 'bold text' => pht('bold text'),
- 'italic text' => pht('italic text'),
- 'monospaced text' => pht('monospaced text'),
- 'List Item' => pht('List Item'),
- 'data' => pht('data'),
- 'name' => pht('name'),
- 'URL' => pht('URL'),
- );
- break;
- }
-
$response = CelerityAPI::getStaticResourceResponse();
$response->initBehavior($behavior, $config);
}
Index: src/view/form/control/PhabricatorRemarkupControl.php
===================================================================
--- src/view/form/control/PhabricatorRemarkupControl.php
+++ src/view/form/control/PhabricatorRemarkupControl.php
@@ -27,7 +27,19 @@
'uri' => '/file/dropupload/',
));
- Javelin::initBehavior('phabricator-remarkup-assist', array());
+ Javelin::initBehavior(
+ 'phabricator-remarkup-assist',
+ array(
+ 'pht' => array(
+ 'bold text' => pht('bold text'),
+ 'italic text' => pht('italic text'),
+ 'monospaced text' => pht('monospaced text'),
+ 'List Item' => pht('List Item'),
+ 'data' => pht('data'),
+ 'name' => pht('name'),
+ 'URL' => pht('URL'),
+ ),
+ ));
Javelin::initBehavior('phabricator-tooltips', array());
$actions = array(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 11:44 PM (21 h, 8 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6916563
Default Alt Text
D7345.diff (3 KB)
Attached To
Mode
D7345: Decentralize phtize
Attached
Detach File
Event Timeline
Log In to Comment