| 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="10162Specifyingstartdayofweek.html">
|
|
|
8 |
<LINK REL="Next" HREF="1018AntialiasinginJpGraph.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="10162Specifyingstartdayofweek.html">Previous</A>
|
|
|
26 |
<A HREF="1018AntialiasinginJpGraph.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="10_17">10.17 Localizing</A></H2>
|
|
|
29 |
<P> Depending on your installation of PHP you might have support for
|
|
|
30 |
several locales. By default the locale is set up to use the default
|
|
|
31 |
locale on the server.</P>
|
|
|
32 |
<P> To specifically set a locale you specify the wanted locale with a
|
|
|
33 |
locale string (ala standard PHP), for example American English is
|
|
|
34 |
specified with the string 'EN_US', British English with 'EN_UK' 'nl_NL'
|
|
|
35 |
for Dutch and so on. If your current installation does not support the
|
|
|
36 |
specified locale an error message will be given.<DIV class="phpscript"><CODE>
|
|
|
37 |
<FONT color="#000000"> <FONT color="#0000BB"> $graph</FONT><FONT color="#007700">
|
|
|
38 |
-></FONT><FONT color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
39 |
color="#0000BB">SetDateLocale</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
40 |
"se_SE"</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
|
|
|
41 |
</FONT></CODE></DIV></P>
|
|
|
42 |
<P> The result is displayed below.<DIV class="example">
|
|
|
43 |
<BR> <A href="exframes/frame_ganttex19.html" target="blank"><IMG border="0"
|
|
|
44 |
HEIGHT="191" src="img/ganttex19.png" WIDTH="431"></A>
|
|
|
45 |
<BR><B>Figure 169:</B> Using swedish locale. (Can you spot the
|
|
|
46 |
difference from English?) <A href="exframes/frame_ganttex19.html" target="blank">
|
|
|
47 |
[src]</A>
|
|
|
48 |
<P></P>
|
|
|
49 |
</DIV></P>
|
|
|
50 |
<P></P>
|
|
|
51 |
<HR NOSHADE>
|
|
|
52 |
<A HREF="toc.html">Contents</A>
|
|
|
53 |
<A HREF="10162Specifyingstartdayofweek.html">Previous</A>
|
|
|
54 |
<A HREF="1018AntialiasinginJpGraph.html">Next</A>
|
|
|
55 |
</BODY>
|
|
|
56 |
</HTML>
|