| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <title>Another Example</title> |
| <link rel="stylesheet" href="style.css"> |
| </head> |
| |
| <body> |
| <? prevnext "<h1>Another Example</h1>" ?> |
| |
| <PRE> |
| <B><FONT COLOR="#A020F0">proc</FONT></B> <B><FONT COLOR="#0000FF">greeting</FONT></B> {<FONT COLOR="#B8860B"></FONT>} { |
| <B><FONT COLOR="#A020F0">switch</FONT></B> $<FONT COLOR="#B8860B">HTTP_ACCEPT_LANGUAGE</FONT> { |
| en { |
| <B><FONT COLOR="#A020F0">return</FONT></B> <B><FONT COLOR="#BC8F8F">"Hello, how is it going?"</FONT></B> |
| } |
| it { |
| <B><FONT COLOR="#A020F0">return</FONT></B> <B><FONT COLOR="#BC8F8F">"Buon giorno, come va?"</FONT></B> |
| } |
| fr { |
| <B><FONT COLOR="#A020F0">return</FONT></B> <B><FONT COLOR="#BC8F8F">"Bonjour, comment ça va?"</FONT></B> |
| } |
| de { |
| <B><FONT COLOR="#A020F0">return</FONT></B> <B><FONT COLOR="#BC8F8F">"Guten Tag, wie geht's?"</FONT></B> |
| } |
| zt { |
| <B><FONT COLOR="#A020F0">return</FONT></B> <B><FONT COLOR="#BC8F8F">"Grüezi, wi gaat's?"</FONT></B> |
| } |
| } |
| } |
| |
| <B><FONT COLOR="#A020F0">puts</FONT></B> [greeting]</PRE> |
| |
| <?footer?> |
| </body> |
| </html> |