Brackets: [AUTO]:LB: LOC: ja_JP: Translation change needed in string "Install PHP7 runtime for enabling PHP-related tooling such as Code Hints, Parameter Hints, Jump to Definition and more."

Created on 23 Apr 2019  ·  9Comments  ·  Source: adobe/brackets

Problem: General style. The target string does not sound like a part of an error message.

EN Source: Install PHP7 runtime for enabling PHP-related tooling such as Code Hints, Parameter Hints, Jump to Definition and more.

Actual Translation: コードヒント、パラメーターヒント、定義にジャンプなどの PHP 関連のツールを有効化するために、PHP7 ランタイムをインストールします。

Expected Translation: コードヒント、パラメーターヒント、定義にジャンプなどの PHP 関連のツールを有効化するために、PHP7 ランタイムをインストールしてください。

EN Screen:

en_PhP version

JP Screen:

jp_PHPversion

Most helpful comment

Oh I see thank you very much that fixed my problem

All 9 comments

I dont quite understand the use of the warning. It opens settings, but not really what to do. There is also no more info given on how to solve this. Probably i need to find out how to install php 7 orso

@schroef It's just there to inform the user that PHP features will not work if we're unable to find the php7 executable.

We prompt the user to install php7 but in case we're unable to pick up the path on our own, the user can search for PHP related settings in the default preferences and override them with his own. You can give a custom php7 executable path there.

So I have been trying to modify the path but no luck the message keeps showing up.
What I am doing wrong?
My code on the default preferences page:
"php": {
// Default: true
"enablePhpTooling": true,

    // Default: php
          //  I tried with C:/xampp/php/php.exe 
    "executablePath": "C://xampp//php//php.exe",

    // Default: 4095M
    "memoryLimit": "4095M",

    // Default: false
    "validateOnType": "false"
}

@RockStartCrazy

  • Go to Debug > Open Preferences File

  • Copy over the php settings from defaultPreferences.json to brackets.json

  • Remove the comments since a valid brackets.json can't have comments. This is important.

  • Replace the defaults with your own settings. In case of any performance issues, try increasing the default memory limit as per your need.

Also, the path in Win should have \\ instead of /, so in your case it would be:

"php": {
        "enablePhpTooling": true,
    "executablePath": "C:\\xampp\\php\\php.exe",
    "memoryLimit": "4095M",
    "validateOnType": "false"
}

Do let us know in case this doesn't solve your problem.

Oh I see thank you very much that fixed my problem

I tried to change it to "executablePath":"C:\\xampp\\php\\php.exe", but I always get the Error Message and it changed back to "executablePath": "php"

@Tagehar

Please give some more information so that we can try replicating the issue on our end.
I feel you might be changing it directly in defaultPreferences.json rather than brackets.json.
That won't work.

Also, do make sure that the php executable path you provide is of php 7 and not php 5.

Yes that was my mistake.

Good day with everyone.
I have read all of your directions above several times, but I do not understand what I am doing wrong. I have entered the code as it indicates that the preferences file does not have the indicated format.
The full code of backets.json is:
{
"brackets-eslint.gutterMarks": true,
"brackets-eslint.useLocalESLint": false,
"fonts.fontSize": "12px",
"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
"useTabChar": false,
"themes.theme": "dark-theme"
}
"php": {
"enablePhpTooling": true,
"executablePath": "C:\AppServ\php7\php.exe",
"memoryLimit": "4095M",
"validateOnType": "false"
}

Please help me.

Edit: SOLVED - The correct code is:
{
"brackets-eslint.gutterMarks": true,
"brackets-eslint.useLocalESLint": false,
"fonts.fontSize": "12px",
"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
"useTabChar": false,
"themes.theme": "dark-theme",

"php": {
    "enablePhpTooling": true,
    "executablePath": "C:\\AppServ\\php7\\php.exe",
    "memoryLimit": "4095M",
    "validateOnType": "false"
}

}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zaggino picture zaggino  ·  4Comments

TheHedge picture TheHedge  ·  3Comments

ankushdas9 picture ankushdas9  ·  3Comments

declanmarks picture declanmarks  ·  3Comments

asportnoy picture asportnoy  ·  3Comments