IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

EDI, CMS, Outils, Scripts et API PHP Discussion :

[Configuration] php_manual en fr


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Mai 2002
    Messages
    616
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2002
    Messages : 616
    Par défaut [Configuration] php_manual en fr
    Bonjour,

    j'ai réupéré un truc sympa qui permet de rechercher
    dans php_manual grace à des mots clé .
    le seul hic c'est que ça marche qu'avec la version anglaise...
    c'est un .hta
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     
    <html>
    <head>
     <hta:application
         id="phpmanqr"
         applicationname="PHP Manual Quickref"
         border="dialog"
         contextmenu="no"
         icon="php_manual.ico"
         innerborder="no"
         maximizebutton="no"
         scroll="no"
         selection="no"
         version="1.0"
     >
     <script language="JavaScript" type="text/javascript">
         window.resizeTo(240,100);
         function quickRef(form)
         {
             funcpage = "function." + form.lookup.value.replace(/_/g, "-") + ".html";
             hta_path = unescape(location.href.substring(8, location.href.lastIndexOf("/")+1));
             window.showHelp('file:///' + hta_path + 'php_manual_en.chm::/' + funcpage);
             return false;
         }
     </script>
     <style type="text/css">
         body { 
             border: 10;
             margin: 10;
             background: buttonface;
             font-family: Verdana, Arial, Helvetica;
             font-size: 10pt;
             text-align : center;
             vertical-align : middle;
         }
     </style>
    	<title>PHP Manual Quickref</title>
    </head>
    <body>
    <form onsubmit="return quickRef(this)">
    Function: <input type="text" name="lookup"><br>
    <input type="submit" value="Show manual page">
    </form>
    </body>
    </html>
    qui ouvre php_manual_en.chm directement à la page du mot clé tapé

    j'ai donc essayé de changer cette ligne :
    window.showHelp('file:///' + hta_path + 'php_manual_en.chm::/' + funcpage);
    par
    window.showHelp('file:///' + hta_path + 'php_manual_fr.chm::/' + funcpage);
    le php_manual_fr.chm s'ouvre mais sans prendre en compte la recherche de mot

    d'autres fichiers sont présent

    - context.ini
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
     
    # =================================================
    # PHP Manual CHM version context menu configuration
    # =================================================
     
    # Genaral functions
    # -----------------
     
    [context_item]
    display        = "Copy selection to clipboard"
    implementation = "copySelection()"
     
    [context_item]
    display        = "Select all"
    implementation = "selectAll()"
     
    [context_item]
    display         = "Print page"
    implementation  = "print()"
     
    [context_item]
    display         = "Back"
    implementation  = "back()"
     
    [context_item]
    display         = "Forward"
    implementation  = "forward()"
     
    [context_item]
    display         = "Refresh"
    implementation  = "refresh()"
     
    # Page jump options
    # -----------------
     
    [context_item]
    display        = "Manual TOC"
    implementation = "index.html"
     
    [context_item]
    display        = "Function Reference"
    implementation = "funcref.html"
     
    [context_item]
    display        = "HTML Help Edition"
    implementation = "chmonly.html"
     
    [context_item]
    display        = "Functions Index"
    implementation = "indexes.html"
     
    [context_item]
    display        = "PHP-GTK home"
    implementation = "http://gtk.php.net/"
     
    [context_item]
    display        = "PEAR home"
    implementation = "http://pear.php.net/"
     
    # Search engine quickforms and selections
    # ---------------------------------------
     
    [context_item]
    display        = "Google SearchBox"
    implementation = "_GoogleSearch_"
     
    [context_item]
    display        = "Google Search Selection"
    implementation = "searchSelGoogle()"
     
    [context_item]
    display        = "AlltheWeb SearchBox"
    implementation = "_ATWSearch_"
     
    [context_item]
    display        = "AlltheWeb Search Selection"
    implementation = "searchSelATW()"
    et php_manual_prefs.js
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    prefs_online  = true;
    prefs_mirror  = "http://us2.php.net/";
    prefs_context_override = true;
    prefs_context_names = Array(
        "Manual TOC",
        "Function Reference",
        "Functions Index",
        "_Separator_",
        "Copy selection to clipboard",
        "Google Search Selection",
        "AlltheWeb SearchBox"
    );
    prefs_context_values = Array(
        "index.html",
        "funcref.html",
        "indexes.html",
        "_Separator_",
        "copySelection()",
        "searchSelGoogle()",
        "_ATWSearch_"
    );
    prefs_skin = "Low";
    prefHandler();
    quelqu'un a une idée

    Merci

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Mai 2002
    Messages
    616
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2002
    Messages : 616
    Par défaut
    résolu !
    en fait il faut ajouter
    fr/
    à la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    funcpage = "function." + form.lookup.value.replace(/_/g, "-") + ".html";
    donc
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    funcpage = "fr/function." + form.lookup.value.replace(/_/g, "-") + ".html";

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. configurer sql pour envoyer des mails
    Par arwen dans le forum MS SQL Server
    Réponses: 6
    Dernier message: 29/07/2003, 15h28
  2. [postgresql]configuration serveur
    Par Fyna dans le forum PostgreSQL
    Réponses: 4
    Dernier message: 16/06/2003, 19h22
  3. [configuration] lancer plusieurs serveurs Tomcat
    Par polo54 dans le forum JBuilder
    Réponses: 4
    Dernier message: 13/06/2003, 15h52
  4. Configurer OpenGL/Glut avec C++Bluider
    Par MiGoN dans le forum OpenGL
    Réponses: 2
    Dernier message: 13/09/2002, 23h18
  5. BDE : Configurer automatiquement le NETDIR
    Par Harry dans le forum Paradox
    Réponses: 10
    Dernier message: 29/07/2002, 11h33

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo