dans la declaration du header, on accepte les chaines de langue :
<:prefix:ma_chaine_de_langue:>
This commit is contained in:
parent
643f5aee98
commit
57b4d95157
2 changed files with 10 additions and 1 deletions
|
@ -13,6 +13,15 @@ if (!defined('_ECRIRE_INC_VERSION')) {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
function gamuform_lang(?string $chaine):string {
|
||||
if (strpos($chaine, ':>') !== false) {
|
||||
$chaine = substr($chaine, 2, -2);
|
||||
$chaine = _T($chaine);
|
||||
}
|
||||
return $chaine ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* filtre generale qui appelle un filtre spécifique, déclaré dans l'array saisies avec la cle : gamutable/filtre
|
||||
* si cette fonction commence par _array_ ex: _array_maSuperFonction => elle aura en parametre l'array de la ligne
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"id": "id",
|
||||
"edit": "",
|
||||
<BOUCLE_header(DATA){source table,#GET{header}}>
|
||||
[(#CLE|json_encode)] : [(#VALEUR|json_encode)],
|
||||
[(#CLE|json_encode)] : [(#VALEUR*|gamuform_lang|json_encode)],
|
||||
</BOUCLE_header>
|
||||
"sup": ""
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue