Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-16 21:35:40 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-16 21:35:40 +0400
commitccb1c57745a4cab8cf475209fa17da0db390db01 (patch)
tree17a0892e8346b44ca2602c2ce973a91157c3452f /lib/l10n.php
parent296f79d1a4a30acee77ea41219e43f385fd6797e (diff)
add warning in log if OC_L10N::tA was called
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index de8514573d3..e7f5ffea0e4 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);