2011-07-10 15 views
2

我想建立一個網站,將有兩個版本。 英文,印度語Langauge(Kannada)。 整個網站的網站應該有相同的設計,創意,結構和數據。如何創建印度語網站 - 卡納達爾

這個網站是內容重,需要一個CMS和相關語言編輯器。我是一個PHP編碼器,我可以與任何免費的CMS - wordpress,drupal,joomla。我聽說將字體安裝到我的共享服務器上以支持卡納達語言。我猜這些字體應該支持所有平臺(Windows,Mac,Linux和移動網站)。

任何人都可以請幫助我。有沒有免費的小部件,可以安裝在我的共享服務器上的插件,並幫助用我們的語言顯示我的網站。

回答

0

Joomla有joomfish插件。這是好的和廣泛的。這是值得研究的。

0

你應該設定正確的字符集爲你的語言,我覺得UTF-8將會爲你工作

header("Content-Type: text/html; charset=utf-8"); 

在你的腳本的頂部

0

您可以使用typeface.js英語,語言特點印度(卡納達) 簡單而美好的一個! get your typeface.js

+0

爲此,我需要將所需的字體下載到我的機器上嗎?我相信這會幫助我使用UNICODE集。 –

0

喜久後,我已經做了埃納德語網站在PHP中,我使用的定義在網站菜單和非動態的東西,並且什麼都數據將插入到數據庫將它們轉換爲「實體」

您可以使用此功能

function ascii_to_entities($str) 
{ 
    $count = 1; 
    $out = ''; 
    $temp = array(); 

    for ($i = 0, $s = strlen($str); $i < $s; $i++) 
    { 
     $ordinal = ord($str[$i]); 

     if ($ordinal < 128) 
     { 
      /* 
       If the $temp array has a value but we have moved on, then it seems only 
       fair that we output that entity and restart $temp before continuing. -Paul 
      */ 
      if (count($temp) == 1) 
      { 
       $out .= '&#'.array_shift($temp).';'; 
       $count = 1; 
      } 

      $out .= $str[$i]; 
     } 
     else 
     { 
      if (count($temp) == 0) 
      { 
       $count = ($ordinal < 224) ? 2 : 3; 
      } 

      $temp[] = $ordinal; 

      if (count($temp) == $count) 
      { 
       $number = ($count == 3) ? (($temp['0'] % 16) * 4096) + (($temp['1'] % 64) * 64) + ($temp['2'] % 64) : (($temp['0'] % 32) * 64) + ($temp['1'] % 64); 

       $out .= '&#'.$number.';'; 
       $count = 1; 
       $temp = array(); 
      } 
     } 
    } 

    return $out; 
} 

或定義方法

define('lang','ಕನ್ನಡ'); 

鏈接 - http://www.jayashomeshop.com/?language=kn