bonjour
j'ai crée un module 'oefactinter';
je souhaite afficher un onglet dans l'objet 'Invoice' (facture) avec la
titre de l'onglet provenant d'un fichier de langue;
mais cela ne marche pas, il m'affiche le code de l'onglet et non la
traduction
Voici comment j'ai procédé :
Dans /*modoefactinter.class.php*/, j'ai rajouté la ligne suivante :
*$this->tabs =
array('invoice:+codefactinter:fact:@oefactinter:/oefactinter/htdocs/main.inc.php?id=__ID__');*
Voici une partie de l'arborescence de mon module :
------------------------------------------------------------------------------------------------
htdocs
|
+--oefactinter
|
+ admin
|
+...
|
+langs
| |
| + en_US
| | |
| | +oefactinter.lang
| + fr_FR
| | |
| | +oefactinter.lang
|
+sql
+...
------------------------------------------------------------------------------------------------
Dans le fichier *oefactinter.lang* j'ai mis cela :
----------------------------------------------------------------------------------------
# Dolibarr language file - fr_FR - xxxxxxxxxxxxxx
CHARSET=UTF-8
fact=Ma Facture
----------------------------------------------------------------------------------------
mon application affiche l'onglet avec le titre 'fact' au lieu de 'Ma
Facture'
Si vous avez une idée, je suis preneur
Merci
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev