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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
--- src/tab.c.orig Sat Dec 18 14:32:38 2004
+++ src/tab.c Sat Dec 18 14:46:22 2004
@@ -407,46 +407,81 @@
GString *tab_help_find_helpfile(gchar *command)
{
GString *long_filename = NULL;
-
- // For Redhat/Fedora Core and sensible distrubutions...
- long_filename = tab_help_try_filename("/usr/share/doc/phpmanual/function.", command, ".html");
+
+ /* br (Brazillian) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-br/function.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-br/ref.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-br/", command, NULL);
+ if (long_filename)
+ return long_filename;
+
+ /* de (German) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-de/function.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-de/ref.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-de/", command, NULL);
+ if (long_filename)
+ return long_filename;
+
+ /* en (English) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-en/function.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-en/ref.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-en/", command, NULL);
+ if (long_filename)
+ return long_filename;
+
+ /* es (Spanish) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-es/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/phpmanual/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-es/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/phpmanual/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-es/", command, NULL);
if (long_filename)
return long_filename;
- // For Gentoo, as much as I love it - it's twatty to put docs in a version specific folder like this!
- long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/function.", command, ".html");
+ /* fr (French) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-fr/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-fr/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-fr/", command, NULL);
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/php-docs-200403/html/function.", command, ".html");
+ /* ja (Japanese) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-ja/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/php-docs-200403/html/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-ja/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/php-docs-200403/html/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-ja/", command, NULL);
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-4.2.3/html/function.", command, ".html");
+ /* pl (Polish) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-pl/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-4.2.3/html/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-pl/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-4.2.3/html/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-pl/", command, NULL);
if (long_filename)
return long_filename;
|