1

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?

Jordi
  • 20,868
  • 39
  • 149
  • 333

1 Answers1

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.

Victor Oliveira
  • 3,293
  • 7
  • 47
  • 77