File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1313/**
1414 * Translator adapter.
1515 */
16- interface ITranslator
16+ interface Translator
1717{
1818 /**
1919 * Translates the given string.
@@ -22,3 +22,6 @@ interface ITranslator
2222 */
2323 function translate ($ message , ...$ parameters ): string ;
2424}
25+
26+
27+ interface_exists (Nette \Localization \ITranslator::class);
Original file line number Diff line number Diff line change @@ -17,3 +17,14 @@ interface IHtmlString
1717 class_alias (\Nette \HtmlStringable::class, IHtmlString::class);
1818 }
1919}
20+
21+ namespace Nette \Localization {
22+ if (false ) {
23+ /** @deprecated use Nette\Localization\Translator */
24+ interface ITranslator
25+ {
26+ }
27+ } elseif (!interface_exists (ITranslator::class)) {
28+ class_alias (Translator::class, ITranslator::class);
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments