?? gettext.info
字號:
Key Terms 1. MO => Machine Object File 2. PO => Portable Object FileContents 1. Generation of the Portable Objects Files. 2. Generation of Machine Object Files. 3. Merging the PO Files1. Generation of the Portable Objects Files you can generate the po file with the help of xgettext utility. > xgettext -n --no-wrap *.php if you want xgettext to traverse the child directories and search for ".inc" and ".php" files. > find | grep [.][p,i][h,n][p,c]$ | xargs xgettext -n --no-wrap this will get all the gettext entries from the all php file and generate a po file.2. Generation of Machine Object Files you can convert your po file when it is translated, to the mo file. mo file is the binary file. > msgfmt messages.po this will generate a mo file.3. Merging the PO Files you can merge your po files if you have changed your text in the files and regenerate a po file. > msgmerge --no-wrap old.po messages.po --output-file=new.po this will generate a mo file.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -