Modify Explain Code Prompt to fix i18n issue
according to #417128, we may need avoid using "
in i18n template to use `, so below template string(contains "
)
EXPLAIN_CODE_PROMPT: s__(
'AI|Explain the code from %{filePath} in human understandable language presented in Markdown format. In the response add neither original code snippet nor any title. `%{text}`. If it is not programming code, say "The selected text is not code. I am afraid this feature is for explaining code only. Would you like to ask a different question about the selected text?" and wait for another question.',
),
should be ( contains ` )
EXPLAIN_CODE_PROMPT: s__(
'AI|Explain the code from %{filePath} in human understandable language presented in Markdown format. In the response add neither original code snippet nor any title. `%{text}`. If it is not programming code, say `The selected text is not code. I am afraid this feature is for explaining code only. Would you like to ask a different question about the selected text?` and wait for another question.',
),
I try the two prompt in chatgpt and found nothing change.
use " in prompt | use ` in prompt |
---|---|
Edited by MAO Chao