2

I've found a lot of examples and modules where such expressions are used .

In php files

 t('Submit this form'),

In twig files

 {{ 'Send'|trans }}

So as I know this is used for the translation purpose, and I've also used these functions in my theme & modules.

But the question is where I can specify translation for these words & phrases ?

2

I think you could do that with the User interface translation, "/admin/config/regional/translate" (which is part of the multilingual core package). By the way you can also use:

{% trans %} Your english text {% endtrans %}
  • Thanks, as usual it very "easy" to find a configuration page – HelloMufecayo Mar 13 '17 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.