1
0
Fork 0

Fix PHP cannot take a shell script

Fix part of https://github.com/friendica/friendica/issues/4665
`php [shell file]` does not work, so use `php [php file]` instead.
`php bin/console.php` is more robust than e.g. `bin/console` which does
not work on Windows, or *nix systems without Bash
This commit is contained in:
Alexandre Alapetite 2018-03-24 12:47:40 +01:00
commit e64196c7b3
6 changed files with 12 additions and 12 deletions

View file

@ -94,7 +94,7 @@ Please remove all the `require_once` mentions of the former file, as they will p
## Miscellaneous tips
When you are done with moving the class, please run `php bin/console typo` from the Friendica base directory to check for obvious mistakes.
When you are done with moving the class, please run `php bin/console.php typo` from the Friendica base directory to check for obvious mistakes.
Howevever, this tool isn't bullet-proof, and a staging install of Friendica is recommended to test your class move without impairing your production server if you host one.
Most of Friendica processes are run in the background, so make sure to turn on your debug log to check for errors that wouldn't show up while simply browsing Friendica.

View file

@ -70,7 +70,7 @@ Don't hesitate to ask us in case of doubt.
3. Check your code for typos.
There is a console command called *typo* for this.
$> php bin/console typo
$> php bin/console.php typo
Check out how to work with [our Vagrant](help/Vagrant) to save a lot of setup time!

View file

@ -39,7 +39,7 @@ Assuming you want to convert the German localization which is placed in view/lan
2. Execute the po2php command, which will place the translation
in the strings.php file that is used by friendica.
$> php bin/console po2php view/lang/de/messages.po
$> php bin/console.php po2php view/lang/de/messages.po
The output of the script will be placed at view/lang/de/strings.php where
friendica is expecting it, so you can test your translation immediately.
@ -94,7 +94,7 @@ To update the translation files after you have translated strings of e.g. Espera
And then use the `po2php` command described above to convert the `messages.po` file to the `strings.php` file Friendica is loading.
$> php bin/console po2php view/lang/eo/messages.po
$> php bin/console.php po2php view/lang/eo/messages.po
Afterwards, just commit the two changed files to a feature branch of your Friendica repository, push the changes to github and open a pull request for your changes.