diff --git a/public_html/includes/addons/LSaddons.supann.php b/public_html/includes/addons/LSaddons.supann.php
index 9d49f6bc..6982766b 100644
--- a/public_html/includes/addons/LSaddons.supann.php
+++ b/public_html/includes/addons/LSaddons.supann.php
@@ -331,6 +331,28 @@ LSerror :: defineError('SUPANN_02',
return;
}
+ /**
+ * Simple découpage label/valeur sans traduction réel
+ *
+ * @param[in] $key La cle
+ * @param[in] $value La valeur
+ *
+ * @retval array Un tableau cle->valeur contenant label et translated
+ **/
+ function supannTranslateLabeledValue($value) {
+ $label='no';
+ $pl=supannParseLabeledValue($value);
+ if ($pl) {
+ $label=$pl['label'];
+ $value=$pl['value'];
+ }
+
+ return array(
+ 'label' => $label,
+ 'translated' => $value
+ );
+ }
+
/**
* Traduit une valeur en fonction de sa cle extrait d'un attribut
* supannRoleEntite.
diff --git a/public_html/includes/class/class.LSattr_html_supannLabeledValue.php b/public_html/includes/class/class.LSattr_html_supannLabeledValue.php
new file mode 100644
index 00000000..feb44b3c
--- /dev/null
+++ b/public_html/includes/class/class.LSattr_html_supannLabeledValue.php
@@ -0,0 +1,34 @@
+
+ */
+class LSattr_html_supannLabeledValue extends LSattr_html {
+
+ var $LSformElement_type = 'supannLabeledValue';
+
+}
+
+?>
diff --git a/public_html/includes/class/class.LSformElement_supannLabeledValue.php b/public_html/includes/class/class.LSformElement_supannLabeledValue.php
index 0be04cec..bbcf1f53 100644
--- a/public_html/includes/class/class.LSformElement_supannLabeledValue.php
+++ b/public_html/includes/class/class.LSformElement_supannLabeledValue.php
@@ -73,10 +73,7 @@ class LSformElement_supannLabeledValue extends LSformElement {
* @retval array Un tableau cle->valeur contenant translated et label ou False
**/
function translate($value) {
- return array (
- 'translated' => 'NOT IMPLEMENTED',
- 'label' => 'NOT IMPLEMENTED',
- );
+ return supannTranslateLabeledValue($value);
}
}