[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:
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 :
Citation:
window.showHelp('file:///' + hta_path + 'php_manual_en.chm::/' + funcpage);
par
Citation:
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:
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:
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