dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] fichier de lang associé à un mo dule perso


From: Mapluz Dev
Subject: [Dolibarr-dev] fichier de lang associé à un mo dule perso
Date: Fri, 16 Nov 2012 23:25:43 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.6esrpre) Gecko/20120713 Thunderbird/10.0.6

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]