Skip to content

Commit a189238

Browse files
mabardg
authored andcommitted
Allow multiple parameters for translated messages (#731)
1 parent c7b7b88 commit a189238

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cs/localization.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MyTranslator implements Nette\Localization\ITranslator
1313
/**
1414
* Translates the given string.
1515
*/
16-
public translate($message, int $count = null): string
16+
public function translate($message, ...$parameters): string
1717
{
1818
return ...;
1919
}

en/localization.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MyTranslator implements Nette\Localization\ITranslator
1313
/**
1414
* Translates the given string.
1515
*/
16-
public translate($message, int $count = null): string;
16+
public function translate($message, ...$parameters): string;
1717
{
1818
return ...;
1919
}

0 commit comments

Comments
 (0)