我要如何將我的 VI 或應用程式發布為多種語言的版本主要軟體: LabVIEW Development Systems>>LabVIEW Full Development System主要軟體版本: 主要軟體修正版本: 次要軟體: LabVIEW Development Systems>>LabVIEW Base Package
問題: 我想將我的 VI 發布為不同語言的版本卻又不想對程式大幅修改,有辦法做到這點嗎? 解答: 1. Labels 與 Captions 每一個控制元/顯示元都有 Caption 與 Label 這兩個屬性。Label 是用來給 LabVIEW 在執行是做辨別控制元/顯示元用的〈或者說是變數名稱〉;而 Caption 則是提供額外資訊的屬性。若我們想要在同一個 VI 顯示不同的語言,那我們應該修改 Caption。Label 在程式執行中無法修改,但是 Caption 是可以變更的。 2.程式執行中改變語言環境
3.程式執行前改變語言環境Change language previous to execution 3.1 輸入與輸出字串 以下則是比前一個更簡單的範例: Developer Zone Example: Exporting Strings from LabVIEW and Translating the Exported Strings 這個 VI 搜尋整個人機介面的 caption,並依每個 caption 詢問使用者要存為哪一種語言。 3.2 動態呼叫 相關連結: Developer Zone Example: Changing the language of front panel labels at run-time Developer Zone Example: Exporting Strings from LabVIEW and Translating the Exported Strings Developer Zone Example: Exporting Strings from LabVIEW and Translating the Exported Strings 附加檔案:
報告日期: 06/05/2007 最後更新: 08/09/2007 文件偏號: 4A46QBMK |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
