- LSrelation : Problème de traduction de l'emptyText.
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 14 Apr 2009 14:43:17 +0000 (14:43 +0000)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 14 Apr 2009 14:43:17 +0000 (14:43 +0000)
trunk/includes/class/class.LSrelation.php

index a9aa33c..8f9782e 100644 (file)
@@ -61,7 +61,7 @@ class LSrelation {
           );
           
           if (isset($relationConf['emptyText'])) {
-            $return['emptyText'] = $relationConf['emptyText'];
+            $return['emptyText'] = __($relationConf['emptyText']);
           }
           else {
             $return['emptyText'] = _('No object.');
@@ -192,7 +192,7 @@ class LSrelation {
                         }
                         else {
                           if (isset($relationConf['emptyText'])) {
-                            $data['html'] = "<li>".$relationConf['emptyText']."</li>\n";
+                            $data['html'] = "<li>".__($relationConf['emptyText'])."</li>\n";
                           }
                           else {
                             $data['html'] = "<li>"._('No object.')."</li>\n";