Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit f1c675b

Browse files
author
Sergey Shvets
committed
MAGETWO-75790: Type mismatch in translation js dataprovider
1 parent e9893b3 commit f1c675b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Translation/Model/Js/DataProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function getData($themePath)
114114
}
115115
} catch (\Exception $e) {
116116
throw new LocalizedException(
117-
sprintf(__('Error while translating phrase "%s" in file %s.'), $phrase, $filePath[0])
117+
__('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0])
118118
);
119119
}
120120
}
@@ -145,7 +145,7 @@ protected function getPhrases($content)
145145
}
146146
if (false === $result) {
147147
throw new LocalizedException(
148-
sprintf(__('Error while generating js translation dictionary: "%s"'), error_get_last())
148+
__('Error while generating js translation dictionary: "%s"', error_get_last())
149149
);
150150
}
151151
}

0 commit comments

Comments
 (0)