ܼ

Document Manager¿б򤷤Ƥ뤿ᡢܸ򰷤ȤǤ롣
ܸ2ХʸˤѤˤ¿ιפɬפȤʤ롣

ե

ǥեȤθϱѸǤ롣
ڤؤѤȤͽƤեϰʲȤʤ롣

./php/lang_fr.phpե󥹸
./php/lang_es.phpڥ

ܸθե

¸Υեʣܸ롣
Ŭ˺äܸեܥڡźդޤ

cd ./php
cp lang_fr.php lang_jp.php

lang_jp.phpܸɽ롣

ܸ̾Ǥ褦ˤˤϡcommon.phpɲä롣

  • common.php
    /* Language */
    $available_lang = array(
    	"fr" => "Fran?ais",
    	"en" => "English",
    	"es" => "Espanol",
    	"jp" => "Japanese",ɲá
    );

ܸɽб

̤HTMLإåꤵƤ뤿ᡢhead.php롣

  • head.php
    ѹ<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    ѹ<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

ޤʤڡΥȥϥե󥹸ǥϡɥǥ󥰤Ƥ뤿ᡢ񤭴롣

  • browser.php
    ѹ<h1>Documenth?que</h1>
    ѹ<h1>ʸϴƥ</h1>

Хк

3.0bˤϸڤؤ˥Хꡢ̤Ǹ򤷤ƤȿǤʤ
Фcommon.php񤭴뤳ȤǶŪܸɽ򤵤뤳Ȥ롣

  • common.php
    ڥȥȡ
    //if (file_exists("lang_" . $_SESSION["lang"] . ".php"))
    //	include ("lang_" . $_SESSION["lang"] . ".php");
    ɵ
    if (file_exists("lang_jp.php"))
    	include ("lang_jp.php");

źեե: filelang_jp.php 677 [ܺ]

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2010-01-15 () 17:45:06 (3412d)