简体   繁体   中英

Brew gettext on Mac OS X Terminal

I installed gettext with brew and the path to gettext is

/usr/local/Cellar/gettext/0.18.3.1/bin

my PHP-Project is located under /Applications/XAMPP/xamppfiles/htdocs/projectMine

The files I want to translate are in /Applications/XAMPP/xamppfiles/htdochs/projectMine/public_html

When I'm now in the bin folder I type

./gettext /Applications/XAMPP/xamppfiles/htdocs/projectMine/public_html

I also tried this one here, but this didn't seem to work either.

/usr/local/Cellar/gettext/0.18.3.1/bin/gettext -n /Applications/PATHTOFOLDER

but this results in nothing. What is the exact command to achieve this. I'm new to Mac and Terminal, because I'm normally a Windows user.

This is how I fixed it. I navigated to the folder Where I want my php-files getting scanned for language files and typed this into the termina

 /usr/local/Cellar/gettext/0.18.3.1/bin/xgettext -n *.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM