18 files changed +30
-14
lines changed Original file line number Diff line number Diff line change 40
40
if (!$ username_okay ) {
41
41
echo pht (
42
42
'Failed to migrate mailing list "%s": unable to generate a unique ' .
43
- 'username for it. ' )."\n" ;
43
+ 'username for it. ' ,
44
+ $ name )."\n" ;
44
45
continue ;
45
46
}
46
47
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ public function execute(PhutilArgumentParser $args) {
36
36
throw new PhutilArgumentUsageException (
37
37
pht (
38
38
'Object "%s" specified by "--revision" must be a Differential ' .
39
- 'revision. ' ));
39
+ 'revision. ' ,
40
+ $ revision_identifier ));
40
41
}
41
42
} else {
42
43
$ revision = id (new DifferentialRevisionQuery ())
Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ public function validateTransactions($object, array $xactions) {
84
84
$ errors [] = $ this ->newInvalidError (
85
85
pht (
86
86
'Repository "%s" is not a valid repository, or you do not have ' .
87
- 'permission to view it. ' ),
87
+ 'permission to view it. ' ,
88
+ $ new_value ),
88
89
$ xaction );
89
90
}
90
91
}
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public function addArgument(PhabricatorChartFunctionArgument $spec) {
43
43
pht (
44
44
'Chart function "%s" emitted an argument specification ("%s") with ' .
45
45
'no type. Each argument specification must have a valid type. ' ,
46
+ $ this ->getFunctionArgumentSignature (),
46
47
$ name ));
47
48
}
48
49
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public function execute(PhutilArgumentParser $args) {
54
54
pht (
55
55
'Object "%s" is not a HarbormasterBuildable (it is a "%s"). ' .
56
56
'Name one or more buildables to publish, like "B123". ' ,
57
+ $ name ,
57
58
get_class ($ result )));
58
59
}
59
60
}
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ public function loadData($offset, $length) {
177
177
pht (
178
178
'Attempt to load log bytes (%d - %d) failed: failed to ' .
179
179
'load a single contiguous range. Actual ranges: %s. ' ,
180
+ $ offset ,
181
+ $ end ,
180
182
implode ('; ' , $ display_ranges )));
181
183
}
182
184
Original file line number Diff line number Diff line change @@ -199,8 +199,7 @@ public static function validateConfiguration($config) {
199
199
throw new Exception (
200
200
pht (
201
201
'Configuration is not valid. Maniphest priority configurations ' .
202
- 'must be dictionaries. ' ,
203
- $ config ));
202
+ 'must be dictionaries. ' ));
204
203
}
205
204
206
205
$ all_keywords = array ();
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ final public function setMedia(array $media) {
65
65
pht (
66
66
'Adapter ("%s") is configured for medium "%s", but this is not ' .
67
67
'a supported delivery medium. Supported media are: %s. ' ,
68
+ get_class ($ this ),
68
69
$ medium ,
69
70
implode (', ' , $ native_map )));
70
71
}
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ public function validateStoredValue(
98
98
'Notification server configuration describes an invalid host ' .
99
99
'("%s", at index "%s"). This is an "admin" service but it has a ' .
100
100
'"path" property. This property is only valid for "client" ' .
101
- 'services. ' ));
101
+ 'services. ' ,
102
+ $ host ,
103
+ $ index ));
102
104
}
103
105
104
106
// We can't guarantee that you didn't just give the same host two
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ private function readTestCases($path) {
85
85
throw new Exception (
86
86
pht (
87
87
'Expected test file "%s" to contain exactly two sections, ' .
88
- 'but it has more than two sections. ' ));
88
+ 'but it has more than two sections. ' ,
89
+ $ file ));
89
90
}
90
91
91
92
list ($ input , $ expect ) = $ parts ;
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ public function createDialog(
71
71
->appendParagraph (pht (
72
72
'Reverting this fragment to version %d will create a new version of ' .
73
73
'the fragment. It will not delete any version history. ' ,
74
- $ version ->getSequence (),
75
74
$ version ->getSequence ()));
76
75
return id (new AphrontDialogResponse ())->setDialog ($ dialog );
77
76
}
Original file line number Diff line number Diff line change @@ -266,8 +266,7 @@ public static function getOpaquePolicyExplanation(
266
266
return pht (
267
267
'Members of a particular project can take this action. (You ' .
268
268
'can not see this object, so the name of this project is ' .
269
- 'restricted.) ' ,
270
- $ handle ->getFullName ());
269
+ 'restricted.) ' );
271
270
} else if ($ type == PhabricatorPeopleUserPHIDType::TYPECONST ) {
272
271
return pht (
273
272
'%s can take this action. ' ,
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ public static function validateConfiguration($config) {
224
224
'Icon key "%s" is not a valid icon key. Icon keys must be 1-32 ' .
225
225
'characters long and contain only lowercase letters. For example, ' .
226
226
'"%s" and "%s" are reasonable keys. ' ,
227
+ $ value ['key ' ],
227
228
'tag ' ,
228
229
'group ' ));
229
230
}
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ final public static function validateFerretFunctionName($function_name) {
17
17
pht (
18
18
'Ferret search engine function name ("%s") is invalid. Function ' .
19
19
'names must be nonempty and may only contain latin letters and ' .
20
- 'hyphens. ' ));
20
+ 'hyphens. ' ,
21
+ $ function_name ));
21
22
}
22
23
}
23
24
@@ -77,6 +78,7 @@ final public static function newFerretSearchFunctions() {
77
78
'Ferret function "%s" is specified with a denormalized name. ' .
78
79
'Instead, specify the function using the normalized ' .
79
80
'function name ("%s"). ' ,
81
+ $ function_name ,
80
82
$ normal_name ));
81
83
}
82
84
Original file line number Diff line number Diff line change @@ -2548,7 +2548,9 @@ final public function newBulkEditGroupMap() {
2548
2548
pht (
2549
2549
'Extension "%s" defines a bulk edit group with the same key ' .
2550
2550
'("%s") as the main editor or another extension. Each bulk ' .
2551
- 'edit group must have a unique key. ' ));
2551
+ 'edit group must have a unique key. ' ,
2552
+ get_class ($ extension ),
2553
+ $ key ));
2552
2554
}
2553
2555
2554
2556
$ map [$ key ] = $ group ;
Original file line number Diff line number Diff line change @@ -204,7 +204,8 @@ public static function validateConfiguration($config) {
204
204
pht (
205
205
'Subtype configuration is invalid: subtype with key "%s" ' .
206
206
'specifies both child subtypes and child forms. Specify one ' .
207
- 'or the other, but not both. ' ));
207
+ 'or the other, but not both. ' ,
208
+ $ key ));
208
209
}
209
210
}
210
211
Original file line number Diff line number Diff line change @@ -205,6 +205,8 @@ public function newRefs(array $config) {
205
205
'Database "%s" is configured as a replica and specifies a ' .
206
206
'master ("%s"), but that master is not a valid master. Valid ' .
207
207
'masters are: %s. ' ,
208
+ $ ref ->getRefKey (),
209
+ $ master_key ,
208
210
implode (', ' , $ master_keys )));
209
211
}
210
212
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function getDatasourceFunctions() {
22
22
'summary ' => pht ('Find results with no value. ' ),
23
23
'description ' => pht (
24
24
"This function includes results which have no value. Use a query " .
25
- "like this to find results with no value: \n\n%s \n\n" ,
25
+ "like this to find results with no value: \n\n%s \n\n" .
26
26
'If you combine this function with other constraints, results ' .
27
27
'which have no value or the specified values will be returned. ' ,
28
28
'> any() ' ),
0 commit comments