@@ -79,7 +79,7 @@ public function printTrace(Throwable $e): void
7979
8080 $ this ->writer ->colors (
8181 "{$ eClass } <red> {$ e ->getMessage ()}</end><eol/> " .
82- "( {$ this ->translate ('thrownIn ' )} <yellow> {$ e ->getFile ()}</end><white>: {$ e ->getLine ()})</end> "
82+ "( {$ this ->translate ('thrown in ' )} <yellow> {$ e ->getFile ()}</end><white>: {$ e ->getLine ()})</end> "
8383 );
8484
8585 // @codeCoverageIgnoreStart
@@ -89,7 +89,7 @@ public function printTrace(Throwable $e): void
8989 }
9090 // @codeCoverageIgnoreEnd
9191
92- $ traceStr = "<eol/><eol/><bold> {$ this ->translate ('stackTrace ' )}:</end><eol/><eol/> " ;
92+ $ traceStr = "<eol/><eol/><bold> {$ this ->translate ('Stack Trace ' )}:</end><eol/><eol/> " ;
9393
9494 foreach ($ e ->getTrace () as $ i => $ trace ) {
9595 $ trace += ['class ' => '' , 'type ' => '' , 'function ' => '' , 'file ' => '' , 'line ' => '' , 'args ' => []];
@@ -99,7 +99,7 @@ public function printTrace(Throwable $e): void
9999 $ traceStr .= " <comment> $ i)</end> <red> $ symbol</end><comment>( $ args)</end> " ;
100100 if ('' !== $ trace ['file ' ]) {
101101 $ file = realpath ($ trace ['file ' ]);
102- $ traceStr .= "<eol/> <yellow> {$ this ->translate ('thrownAt ' )} $ file</end><white>: {$ trace ['line ' ]}</end><eol/> " ;
102+ $ traceStr .= "<eol/> <yellow> {$ this ->translate ('at ' )} $ file</end><white>: {$ trace ['line ' ]}</end><eol/> " ;
103103 }
104104 }
105105
@@ -187,7 +187,7 @@ protected function showHelp(string $for, array $items, string $header = '', stri
187187 $ this ->writer ->help_header ($ header , true );
188188 }
189189
190- $ this ->writer ->eol ()->help_category ($ this ->translate (strtolower ( $ for) ) . ': ' , true );
190+ $ this ->writer ->eol ()->help_category ($ this ->translate ($ for ) . ': ' , true );
191191
192192 if (empty ($ items )) {
193193 $ this ->writer ->help_text (' (n/a) ' , true );
@@ -231,7 +231,7 @@ public function showUsage(string $usage): self
231231 $ usage = str_replace ('$0 ' , $ _SERVER ['argv ' ][0 ] ?? '[cmd] ' , $ usage );
232232
233233 if (!str_contains ($ usage , ' ## ' )) {
234- $ this ->writer ->eol ()->help_category ($ this ->translate ('usageExamples ' ) . ': ' , true )->colors ($ usage )->eol ();
234+ $ this ->writer ->eol ()->help_category ($ this ->translate ('Usage Examples ' ) . ': ' , true )->colors ($ usage )->eol ();
235235
236236 return $ this ;
237237 }
@@ -248,7 +248,7 @@ public function showUsage(string $usage): self
248248 return str_pad ('# ' , $ maxlen - array_shift ($ lines ), ' ' , STR_PAD_LEFT );
249249 }, $ usage );
250250
251- $ this ->writer ->eol ()->help_category ($ this ->translate ('usageExamples ' ) . ': ' , true )->colors ($ usage )->eol ();
251+ $ this ->writer ->eol ()->help_category ($ this ->translate ('Usage Examples ' ) . ': ' , true )->colors ($ usage )->eol ();
252252
253253 return $ this ;
254254 }
@@ -263,11 +263,11 @@ public function showCommandNotFound(string $attempted, array $available): self
263263 }
264264 }
265265
266- $ this ->writer ->error ($ this ->translate ('commandNotFound ' , [$ attempted ]), true );
266+ $ this ->writer ->error ($ this ->translate ('Command %s not found ' , [$ attempted ]), true );
267267 if ($ closest ) {
268268 asort ($ closest );
269269 $ closest = key ($ closest );
270- $ this ->writer ->bgRed ($ this ->translate ('commandSuggestion ' , [$ closest ]), true );
270+ $ this ->writer ->bgRed ($ this ->translate ('Did you mean %s? ' , [$ closest ]), true );
271271 }
272272
273273 return $ this ;
0 commit comments