Page MenuHomePhorge

D25078.1734637541.diff
No OneTemporary

D25078.1734637541.diff

diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerAddProjectsRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerAddProjectsRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerAddProjectsRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerAddProjectsRule.php
@@ -6,7 +6,7 @@
const TRIGGERTYPE = 'task.projects.add';
public function getSelectControlName() {
- return pht('Add project tags');
+ return pht('Add Project Tags');
}
protected function getValueForEditorField() {
@@ -17,7 +17,7 @@
if (!is_array($value)) {
throw new Exception(
pht(
- 'Add project rule value should be a list, but is not '.
+ 'Add Project Rule value should be a list, but is not '.
'(value is "%s").',
phutil_describe_type($value)));
}
@@ -27,7 +27,7 @@
if (!$value) {
throw new Exception(
pht(
- 'You must select at least one project tag to add.'));
+ 'You must select at least one Project Tag to add.'));
}
}
@@ -91,7 +91,7 @@
public function getRuleViewDescription($value) {
return pht(
- 'Add project tags: %s.',
+ 'Add Project Tags: %s.',
phutil_tag(
'strong',
array(),
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerInvalidRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerInvalidRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerInvalidRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerInvalidRule.php
@@ -46,7 +46,7 @@
->setIcon('fa-exclamation-triangle red'),
' ',
pht(
- 'This is a trigger rule with a valid type ("%s") but an invalid '.
+ 'This is a Trigger Rule with a valid type ("%s") but an invalid '.
'value.',
$this->getRecord()->getType()),
);
@@ -75,12 +75,12 @@
$exception = $this->getException();
if ($exception) {
return pht(
- 'This rule (of type "%s") is invalid: %s',
+ 'This Rule (of type "%s") is invalid: %s',
$type,
$exception->getMessage());
} else {
return pht(
- 'This rule (of type "%s") is invalid.',
+ 'This Rule (of type "%s") is invalid.',
$type);
}
}
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerManiphestOwnerRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerManiphestOwnerRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerManiphestOwnerRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerManiphestOwnerRule.php
@@ -6,7 +6,7 @@
const TRIGGERTYPE = 'task.owner';
public function getSelectControlName() {
- return pht('Assign task to');
+ return pht('Assign Task to');
}
protected function getValueForEditorField() {
@@ -25,7 +25,7 @@
if (!is_array($value)) {
throw new Exception(
pht(
- 'Owner rule value should be a list, but is not (value is "%s").',
+ 'Owner Rule Value should be a list, but is not (value is "%s").',
phutil_describe_type($value)));
}
}
@@ -34,14 +34,14 @@
if (!$value) {
throw new Exception(
pht(
- 'Owner rule value is required. Specify a user to assign tasks '.
- 'to, or the token "none()" to unassign tasks.'));
+ 'Owner Rule Value is required. Specify a User to assign Tasks '.
+ 'to, or the token "none()" to unassign Tasks.'));
}
if (count($value) > 1) {
throw new Exception(
pht(
- 'Owner rule value must have only one elmement (value is "%s").',
+ 'Owner Rule value must have only one element (value is "%s").',
implode(', ', $value)));
}
@@ -54,7 +54,7 @@
if (!$user) {
throw new Exception(
pht(
- 'User PHID ("%s") is not a valid user.',
+ 'User PHID ("%s") is not a valid User.',
$owner_phid));
}
}
@@ -126,10 +126,10 @@
$value = $this->convertTokenizerValueToOwner($value);
if (!$value) {
- return pht('Unassign task.');
+ return pht('Unassign Task.');
} else {
return pht(
- 'Assign task to %s.',
+ 'Assign Task to %s.',
phutil_tag(
'strong',
array(),
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerManiphestPriorityRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerManiphestPriorityRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerManiphestPriorityRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerManiphestPriorityRule.php
@@ -6,14 +6,14 @@
const TRIGGERTYPE = 'task.priority';
public function getSelectControlName() {
- return pht('Change priority to');
+ return pht('Change Priority to');
}
protected function assertValidRuleRecordFormat($value) {
if (!is_string($value)) {
throw new Exception(
pht(
- 'Priority rule value should be a string, but is not (value is "%s").',
+ 'Priority Rule value should be a string, but is not (value is "%s").',
phutil_describe_type($value)));
}
}
@@ -23,7 +23,7 @@
if (!isset($map[$value])) {
throw new Exception(
pht(
- 'Task priority value ("%s") is not a valid task priority. '.
+ 'Task Priority value ("%s") is not a valid Task Priority. '.
'Valid priorities are: %s.',
$value,
implode(', ', array_keys($map))));
@@ -45,7 +45,7 @@
$priority_color = ManiphestTaskPriority::getTaskPriorityColor($value);
$content = pht(
- 'Change priority to %s.',
+ 'Change Priority to %s.',
phutil_tag('strong', array(), $priority_name));
return array(
@@ -82,7 +82,7 @@
$priority_name = ManiphestTaskPriority::getTaskPriorityName($value);
return pht(
- 'Change task priority to %s.',
+ 'Change Task Priority to %s.',
phutil_tag('strong', array(), $priority_name));
}
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
@@ -6,14 +6,14 @@
const TRIGGERTYPE = 'task.status';
public function getSelectControlName() {
- return pht('Change status to');
+ return pht('Change Status to');
}
protected function assertValidRuleRecordFormat($value) {
if (!is_string($value)) {
throw new Exception(
pht(
- 'Status rule value should be a string, but is not (value is "%s").',
+ 'Status Rule value should be a string, but is not (value is "%s").',
phutil_describe_type($value)));
}
}
@@ -23,8 +23,8 @@
if (!isset($map[$value])) {
throw new Exception(
pht(
- 'Task status value ("%s") is not a valid task status. '.
- 'Valid statues are: %s.',
+ 'Task Status value ("%s") is not a valid Task Status. '.
+ 'Valid Statuses are: %s.',
$value,
implode(', ', array_keys($map))));
}
@@ -44,7 +44,7 @@
$status_color = ManiphestTaskStatus::getStatusColor($value);
$content = pht(
- 'Change status to %s.',
+ 'Change Status to %s.',
phutil_tag('strong', array(), $status_name));
return array(
@@ -81,7 +81,7 @@
$status_name = ManiphestTaskStatus::getTaskStatusName($value);
return pht(
- 'Change task status to %s.',
+ 'Change Task Status to %s.',
phutil_tag('strong', array(), $status_name));
}
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerPlaySoundRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerPlaySoundRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerPlaySoundRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerPlaySoundRule.php
@@ -6,14 +6,14 @@
const TRIGGERTYPE = 'sound';
public function getSelectControlName() {
- return pht('Play sound');
+ return pht('Play Sound');
}
protected function assertValidRuleRecordFormat($value) {
if (!is_string($value)) {
throw new Exception(
pht(
- 'Status rule value should be a string, but is not (value is "%s").',
+ 'Status Rule value should be a string, but is not (value is "%s").',
phutil_describe_type($value)));
}
}
@@ -38,7 +38,7 @@
$sound_name = self::getSoundName($value);
$content = pht(
- 'Play sound %s.',
+ 'Play Sound %s.',
phutil_tag('strong', array(), $sound_name));
return array(
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerRemoveProjectsRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerRemoveProjectsRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerRemoveProjectsRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerRemoveProjectsRule.php
@@ -6,7 +6,7 @@
const TRIGGERTYPE = 'task.projects.remove';
public function getSelectControlname() {
- return pht('Remove project tags');
+ return pht('Remove Project Tags');
}
protected function getValueForEditorField() {
@@ -17,7 +17,7 @@
if (!is_array($value)) {
throw new Exception(
pht(
- 'Remove project rule value should be a list, but is not '.
+ 'Remove Project Rule value should be a list, but is not '.
'(value is "%s").',
phutil_describe_type($value)));
}
@@ -27,7 +27,7 @@
if (!$value) {
throw new Exception(
pht(
- 'You must select at least one project tag to remove.'));
+ 'You must select at least one Project Tag to remove.'));
}
}
@@ -91,7 +91,7 @@
public function getRuleViewDescription($value) {
return pht(
- 'Remove project tags: %s.',
+ 'Remove Project Tags: %s.',
phutil_tag(
'strong',
array(),
diff --git a/src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php b/src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
--- a/src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
+++ b/src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
@@ -35,7 +35,7 @@
->setIcon('fa-exclamation-triangle yellow'),
' ',
pht(
- 'This is a trigger rule with a unknown type ("%s").',
+ 'This is a Trigger Rule with a unknown type ("%s").',
$this->getRecord()->getType()),
);
}
@@ -58,8 +58,8 @@
public function getRuleViewDescription($value) {
return pht(
- 'This is an unknown rule of type "%s". An administrator may have '.
- 'edited or removed an extension which implements this rule type.',
+ 'This is an unknown Rule of type "%s". An Administrator may have '.
+ 'edited or removed an extension which implements this Rule type.',
$this->getRecord()->getType());
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 19:45 (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015449
Default Alt Text
D25078.1734637541.diff (11 KB)

Event Timeline