Added internationalization compatibility to error message.
[squirrelmail.git] / src / help.php
CommitLineData
e222c290 1<HTML>
2<FONT FACE="Arial,Helvetica">
3
4<?php
5
6/**
7 ** help.php
8 **
9 ** This checks if the user's preferred language has a directory and file present
10 ** then loads it or english if preferred is not found.
11 **
12 **/
13
14 if (!isset($config_php))
15 include("../config/config.php");
16
17/** If it was a successful login, lets load their preferences **/
18 include("../src/load_prefs.php");
19 echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
20
21/**
22 ** Check to see if the help files have been translated into the users language
23 ** If so, include them, if not, give them english. The po file should really have
24 ** The echo line put in it.
25 **/
26
27 if (file_exists("../help/$user_language/basic.hlp")) {
28 include ("../help/$user_language/basic.hlp");
29 } else {
802d73a4 30 echo "<CENTER><B><FONT COLOR=$color[2]>";
31 echo _("Your preferred language is not yet translated. English will be substituted here.");
32 echo "</FONT></B></CENTER><BR>";
e222c290 33 include ("../help/en/basic.hlp");
34 }
35 if (file_exists("../help/$user_language/main_folder.hlp")) {
36 include ("../help/$user_language/main_folder.hlp");
37 } else {
802d73a4 38 echo "<CENTER><B><FONT COLOR=$color[2]>";
39 echo _("Your preferred language is not yet translated. English will be substituted here.");
40 echo "</FONT></B></CENTER><BR>";
e222c290 41 include ("../help/en/main_folder.hlp");
42 }
43 if (file_exists("../help/$user_language/read_mail.hlp")) {
44 include ("../help/$user_language/read_mail.hlp");
45 } else {
802d73a4 46 echo "<CENTER><B><FONT COLOR=$color[2]>";
47 echo _("Your preferred language is not yet translated. English will be substituted here.");
48 echo "</FONT></B></CENTER><BR>";
e222c290 49 include ("../help/en/read_mail.hlp");
50 }
51 if (file_exists("../help/$user_language/compose.hlp")) {
52 include ("../help/$user_language/compose.hlp");
53 } else {
54 echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>";
802d73a4 55 echo "<CENTER><B><FONT COLOR=$color[2]>";
56 echo _("Your preferred language is not yet translated. English will be substituted here.");
57 echo "</FONT></B></CENTER><BR>";
e222c290 58 include ("../help/en/compose.hlp");
59 }
60 if (file_exists("../help/$user_language/addresses.hlp")) {
61 include ("../help/$user_language/addresses.hlp");
62 } else {
802d73a4 63 echo "<CENTER><B><FONT COLOR=$color[2]>";
64 echo _("Your preferred language is not yet translated. English will be substituted here.");
65 echo "</FONT></B></CENTER><BR>";
e222c290 66 include ("../help/en/addresses.hlp");
67 }
68 if (file_exists("../help/$user_language/folders.hlp")) {
69 include ("../help/$user_language/folders.hlp");
70 } else {
802d73a4 71 echo "<CENTER><B><FONT COLOR=$color[2]>";
72 echo _("Your preferred language is not yet translated. English will be substituted here.");
73 echo "</FONT></B></CENTER><BR>";
e222c290 74 include ("../help/en/folders.hlp");
75 }
76 if (file_exists("../help/$user_language/options.hlp")) {
77 include ("../help/$user_language/options.hlp");
78 } else {
802d73a4 79 echo "<CENTER><B><FONT COLOR=$color[2]>";
80 echo _("Your preferred language is not yet translated. English will be substituted here.");
81 echo "</FONT></B></CENTER><BR>";
e222c290 82 include ("../help/en/options.hlp");
83 }
84 if (file_exists("../help/$user_language/FAQ.hlp")) {
85 include ("../help/$user_language/FAQ.hlp");
86 } else {
802d73a4 87 echo "<CENTER><B><FONT COLOR=$color[2]>";
88 echo _("Your preferred language is not yet translated. English will be substituted here.");
89 echo "</FONT></B></CENTER><BR>";
e222c290 90 include ("../help/en/FAQ.hlp");
91 }
92
93?>
94</FONT>
95</BODY>
96</HTML>