xgettext: No such file or directory

白昼怎懂夜的黑 提交于 2020-05-31 05:20:10

问题


I'm using this command line:

xgettext -kT._ -kT._n:1,2 -kT._p:1c,2 -kT._pn:1c,2,3 
   -LC# --omit-header --from-code=UTF-8 -o messages.pot
   -c -n -p PO ./TransClassOne.cs

Nevertheless, I'm getting this message from xgettext:

xgettext.exe: error while opening "._" for reading: No such file or directory

Any ideas?


回答1:


Using MacOS:

  1. Install gettext tool
  2. If already installed, you might want to reinstall - brew reinstall gettext
  3. If using some bash profile (oh-my-zsh e.g.), export gettext and update it:

    • nano ~/.zshrc

    • at the end of file add export PATH="/usr/local/opt/gettext/bin:$PATH" and save it

    • update profile with . ~/.zshrc ; pay attention to not forget the dot before zshrc

    • restart your terminal (optional)

  4. Run your command again.



来源:https://stackoverflow.com/questions/41870164/xgettext-no-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!