Skip to content

Commit

Permalink
Fixes #51.
Browse files Browse the repository at this point in the history
Introduces new optional parameter $locale to method getSupportedFormatStringFields.
  • Loading branch information
dweichert committed Mar 16, 2016
1 parent d48ca2b commit 1df0b49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/EmperorNortonCommands/lib/Ddate.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ public function __construct(
/**
* Returns array of all supported format strings.
*
* @param string $locale OPTIONAL e.g. en for English, de for German, ...
* @return string[]
*/
public function getSupportedFormatStringFields()
public function getSupportedFormatStringFields($locale = 'en')
{
$formatter = $this->_formatterFactory->getFormatter('en');
$formatter = $this->_formatterFactory->getFormatter($locale);
return $formatter->getSupportedFormatStringFields();
}

Expand Down

0 comments on commit 1df0b49

Please sign in to comment.