用于从POT文件更新PO文件,类似于msgmerge命令。
适合在翻译工作流中,当POT文件更新后,同步更新对应的PO文件。
| 参数 | 说明 |
|---|---|
<source> |
用于更新的现有POT文件的路径。 |
[<destination>] |
要更新的PO文件或包含多个PO文件的目录。默认为源目录中的所有PO文件。 |
$ wp i18n update-po example-plugin.pot
Success: Updated 3 files.
$ wp i18n update-po example-plugin.pot example-plugin-de_DE.po
Success: Updated 1 file.
$ wp i18n update-po example-plugin.pot languages
Success: Updated 2 files.