Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="483Themecolorsforpies.html">
8
<LINK REL="Next" HREF="51Thespecialprodlocale.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="483Themecolorsforpies.html">Previous</A>
26
<A HREF="51Thespecialprodlocale.html">Next</A>
27
<HR NOSHADE>
28
<H1><A NAME="5">5 Localizing error messages</A></H1>
29
<P> The library has a quite extensive set of error messages to give
30
 hints and catch erroneous input to many of the controlling methods and
31
 also do sanity check on the data to be plotted.</P>
32
<P> All error messages are collected in resource files which are
33
 localized to a specific language. All resource files are located under
34
 the &quot;lang/&quot; directory in the JpGraph installation directory. The
35
 deafult locale to be used is defined in the configuration file with the
36
 setting DEFAULT_ERR_LOCALE in the distribution this is set to English
37
 locale.</P>
38
<P> The chosen locale is specified in the beginning of the script with a
39
 call to the static method<I> JpGraphError::SetErrLocale()</I>. The
40
 argument to this method is the ISO naming of the country/language to be
41
 selected. For example to enable the special production locale the
42
 following line should be added in the beginning of the script</P>
43
<PRE>
44
JpGraphError::SetErrLocale('prod');
45
</PRE>
46
 If an unknown or unsupported locale is given the error message will
47
 default to English.<HR NOSHADE>
48
<A HREF="toc.html">Contents</A>
49
<A HREF="483Themecolorsforpies.html">Previous</A>
50
<A HREF="51Thespecialprodlocale.html">Next</A>
51
</BODY>
52
</HTML>