From ccb1c57745a4cab8cf475209fa17da0db390db01 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 16 Jul 2012 19:35:40 +0200 Subject: [PATCH] add warning in log if OC_L10N::tA was called --- lib/l10n.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/l10n.php b/lib/l10n.php index de8514573d..e7f5ffea0e 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -154,8 +154,15 @@ class OC_L10N{ * * Returns the translation. If no translation is found, $textArray will be * returned. + * + * + * @deprecated deprecated since ownCloud version 5.0 + * This method will probably be removed with ownCloud 6.0 + * + * */ public function tA($textArray){ + OC_Log::write('core', 'DEPRECATED: the method tA is deprecated and will be removed soon.',OC_Log::WARN); $result = array(); foreach($textArray as $key => $text){ $result[$key] = (string)$this->t($text);