Thursday, 03 October 2024
 
 
Comment localiser la description initiale d'une extension de la famille Mozilla Print
Written by Goofy   
Thursday, 29 September 2005

Cette page s'adresse à tous ceux qui connaissent déjà les principes de base pour éditer et localiser une extension destinée aux applications motorisées par Gecko : Firefox, Thunderbird, Mozilla... Le contenu de cette page provient entièrement de cet article de mozillaZine Knowledge Base.

Voici les étapes pour localiser la description d'une extension que nous nommerons par exemple : tournicoti 

           1) Vérifiez que l'extension a l'arborescence suivante, sinon créez les     
               éléments manquants :

 

 

                            |---install.rdf
                            |

tournicoti.xpi==|---install.js
                            |
                            |---
defaults------preferences-----
prefs.js
                            |                  
                            |---chrome.manifest                   
                            |                                                                
|--content
                            |---chrome---------
tournicoti.jar=====|                                                     
                                                                                              |---skin               
                                                                                              |                               
                                                                                              |---locale--|
                                                                                                                |

                                                                                                        tournicoti
                                                                                                                |
                                                                                                       ---------------.....
                                                                                                      |         |         |
                                                                                                 en-US        (autres locales...)
                                                                                                                |
                                                                                                       --------------
                                                                                                       |       |        |
                                                                                     contents.rdf     |    tournicoti.dtd
                                                                                                               |
                                                                                             
tournicoti.properties

 

                            |---install.rdf
                            |
tournicoti.xpi==============|---install.js
                            |
                            |---defaults------preferences-----prefs.js
                            |                  
                            |---chrome.manifest                   
                            |                                     |---content
                            |---chrome---------tournicoti.jar=====|                                                    
                                                                  |---skin               
                                                                  |                               
                                                                  |---locale--|
                                                                              |
                                                                           tournicoti
                                                                               |
                                                                           -------------.....
                                                                          |        |         |
                                                                         en-US     (autres locales...)
                                                                          |                                                                                              --------------
                                                                  ----------------
								|	  |	|
                                                         contents.rdf     |    tournicoti.dtd
                                                                      tournicoti.properties                          nicoti.properties
= = = = = dézipper
dossier à créer
fichier à créer


2) Écrivez cette ligne dans le fichier prefs.js :

pref("extensions.{616f2aa8-9674-4009-90de-94ce4ea9d29a}.description","chrome://tournicoti/locale/tournicoti.properties"); 
 
...dans laquelle la série alphanumérique rouge est le numéro d'identification de l'extension qu'il vous suffir de copier/coller depuis le fichier install.rdf
 
Si vous utilisez un pseudo-courriel comme identifiant, n'utilisez pas les accolades :
 
pref("extensions. This e-mail address is being protected from spam bots, you need JavaScript enabled to view it .description","chrome://tournicoti/locale/tournicoti.properties"); 
 



3)
Écrivez cette ligne dans le fichier tournicoti.properties :

extensions.{616f2aa8-9674-4009-90de-94ce4ea9d29a}.description=une extension qui vous donne le vertige.
 
ou bien
 
extensions. This e-mail address is being protected from spam bots, you need JavaScript enabled to view it .description=une extension qui vous donne le vertige.
 
 
Vous n'avez plus qu'à re-zipper tout cela correctement et...
 
C'est tout !
goofy
Last Updated ( Monday, 04 February 2008 )
 
 
Top! Top!
'; ?>