From b7ee2ebc289f0f5aca9856aa5cbdbc633b4ed93e Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Mon, 14 Mar 2011 13:05:01 +0100
Subject: [PATCH] Issue #469720 by ao2: make user inputed variables translatable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
 ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG
 !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE

Make user inputed variables translatable, variables which have the
message “This is a multilingual variable.” in their description message
can be translated by switching the active language and replacing the
content with the localized one.

In Drupal 6 this requires the i18n module to work as intended.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
---
 addtoany.module |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/addtoany.module b/addtoany.module
index f73ceab..84eb1e3 100644
--- a/addtoany.module
+++ b/addtoany.module
@@ -6,6 +6,15 @@
  */
 
 /**
+ * Implementation of hook_init().
+ */
+function addtoany_init() {
+  global $conf;
+  $conf['i18n_variables'][] = 'addtoany_image_attributes';
+  $conf['i18n_variables'][] = 'addtoany_link_text';
+}
+
+/**
  * Implementation of hook_perm().
  * 
  * @return
-- 
1.7.4.1

