'//'*********************************************************
'// ' Purpose: open include 文件
'// ' Inputs: strIncludeFile 路徑
'// ' Returns: All Text
'//'*********************************************************
Function GetFileContents(strIncludeFile)
On Error Resume Next
Dim objFSO
Dim objText
Dim strPage
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objText = objFSO.OpenTextFile(Server.MapPath(strIncludeFile))
GetFileContents= objText.ReadAll
objText.Close
Set objText = Nothing
Set objFSO = Nothing
IF Err Then
Response.Write "Error open this language package file<<" & strIncludeFile & ">>!"
Response.End
END IF
End Function
'//'*********************************************************
'// ' Purpose: 動態 include 文件
'// ' Inputs: strIncludeFile 路徑,語言種類
'// ' Returns: 執行變量到全局變量
'//'*********************************************************
Function IncludeLangFile(StrFileName,Language)
On Error Resume Next
dim StrLangPackagePath
dim StrLanguagePath
StrLanguagePath=Language
StrLangPackagePath="./Language/" & StrLanguagePath & "/" & StrFileName
Execute(GetFileContents(StrLangPackagePath))
IF Err Then
Response.Write "Error Include this language package file<<" & strIncludeFile & ">>! check the file's syntax"
Response.End
END IF
End Function
2.圖片部分
為帶有漢字圖片建立 BBS--> language -->simplified-->Image
--->traditional-->Image
--->English -->Image
動態Include
<img src="/Files/BeyondPic/2005-12/8/0512808453877682.gif">
3.COM部分
使用resource file 控制語言版本,由系統自動判斷語言版本
注意: resource file 簡體字碼必須在簡體機器輸入,繁體字碼必須在繁體機器輸入
4.其他
多語言版本參考規則﹕
1.英文翻譯長度盡量與漢語長度相當。
2.要符合各個版本的語言習慣。
3.英文版中Title ,text標簽文本﹐按鈕文本﹐select option 中英文單詞 首字母大寫,但
介詞﹐連詞 ,冠詞 使用小寫。
4. 英文版中縮寫全部使用大寫。
5. 英文版中check ,radio ,英文首字母大寫.
6. 英文版中狀態信息使用小寫。