add warning in log if OC_L10N::tA was called
This commit is contained in:
parent
296f79d1a4
commit
ccb1c57745
|
@ -154,8 +154,15 @@ class OC_L10N{
|
||||||
*
|
*
|
||||||
* Returns the translation. If no translation is found, $textArray will be
|
* Returns the translation. If no translation is found, $textArray will be
|
||||||
* returned.
|
* returned.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @deprecated deprecated since ownCloud version 5.0
|
||||||
|
* This method will probably be removed with ownCloud 6.0
|
||||||
|
*
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public function tA($textArray){
|
public function tA($textArray){
|
||||||
|
OC_Log::write('core', 'DEPRECATED: the method tA is deprecated and will be removed soon.',OC_Log::WARN);
|
||||||
$result = array();
|
$result = array();
|
||||||
foreach($textArray as $key => $text){
|
foreach($textArray as $key => $text){
|
||||||
$result[$key] = (string)$this->t($text);
|
$result[$key] = (string)$this->t($text);
|
||||||
|
|
Loading…
Reference in New Issue