2011年2月28日 星期一

產生翻譯的檔案

做個筆記

Step1:
  1. 安裝gettext,如果是在windows請在這下載
  2. 安裝Poedit
Step2:
安裝完後,到我的電腦->內容->進階系統設定->設環境變數->進階->環境變數->Path
那邊新增C:\Program Files\GnuWin32\bin

Step3:
產生POT檔
到要翻譯的檔案資料夾下,輸入xgettext -a 你的檔案 -o 你的檔案.pot


Step4
  1. 執行poedit並點選"檔案"->"偏好"->"個人化"->"編輯器"->"儲存時自動編譯出.mo檔",要打勾。
  2. 點選"檔案"->"從POT檔新增編目檔"後會出現對話視窗,找你剛剛找到的pot檔

Step5
開始翻譯

Step6
翻譯完後,按存檔,poedit就會自動轉出mo檔了。

沒有留言:

Class has no initializers in swift

Class has no initializers in swift I have met this situation. Found a solution here It says if you have the code like bellow var se...