Bonjour
il faut mettre aussi le nom du fichier de langue, tu peux aussi
mettre des restrictions d'accès en 5eme paramètre :
$this->tabs = array('invoice:+codefactinter:fact:oefactinter@oefactinter:$conf->oefactinter->enabled:/oefactinter/htdocs/main.inc.php?id=__ID__');
Le 16/11/12 23:25, Mapluz Dev a écrit :
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
Cordialement,
--
Régis Houssin
---------------------------------------------------------
Cap-Networks
Cidex 1130
34, route de Gigny
71240 MARNAY
FRANCE
VoIP: +33 1 83 62 40 03
GSM: +33 6 33 02 07 97
Web: http://www.cap-networks.com/
Email: address@hidden
Dolibarr developer: address@hidden
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------