Skip to content

Commit

Permalink
convert {:foo} to {foo} in line with PSR-3 placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Jan 4, 2013
1 parent 06c3eb0 commit aec9f04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions intl/en_US.php
Expand Up @@ -4,11 +4,11 @@
'formatter' => 'basic',
'messages' => [
'ERR_GETOPT_INITIALIZED' => "Getopt is already initialized.",
'ERR_OPTION_ARRAY' => "The definition for option '{:option}' is not an array.",
'ERR_OPTION_PARAM' => "The value for 'param' in option '{:option}' is not recognized.",
'ERR_OPTION_NOT_DEFINED' => "The option '{:option}' is not recognized.",
'ERR_OPTION_NOT_MULTI' => "The option '{:option}' does not take multiple values.",
'ERR_OPTION_PARAM_REJECTED' => "The option '{:option}' is not allowed to have a value.",
'ERR_OPTION_PARAM_REQUIRED' => "The option '{:option}' is required to have a value.",
'ERR_OPTION_ARRAY' => "The definition for option '{option}' is not an array.",
'ERR_OPTION_PARAM' => "The value for 'param' in option '{option}' is not recognized.",
'ERR_OPTION_NOT_DEFINED' => "The option '{option}' is not recognized.",
'ERR_OPTION_NOT_MULTI' => "The option '{option}' does not take multiple values.",
'ERR_OPTION_PARAM_REJECTED' => "The option '{option}' is not allowed to have a value.",
'ERR_OPTION_PARAM_REQUIRED' => "The option '{option}' is required to have a value.",
],
);
2 changes: 1 addition & 1 deletion src/Aura/Cli/Translator.php
Expand Up @@ -65,7 +65,7 @@ public function translate($key, array $tokens_values = [])

// do string replacements
foreach ($tokens_values as $token => $value) {
$message = str_replace("{:$token}", $value, $message);
$message = str_replace('{' . $token . '}', $value, $message);
}

// done!
Expand Down

0 comments on commit aec9f04

Please sign in to comment.