1

How to Translate about this code please?

->addSuccessMessage(__('Your #' . $incrementId . ' has been submited.'));

I tried Your #%1 xxxx but not working?

anyone can help,

thank you!

2 Answers 2

1

Try This :-

->addSuccessMessage(__('Your # %1 has been submited.',$incrementId));
3
  • Working or not ?? Dec 12, 2020 at 7:26
  • yes, it is working, thank you
    – niceonelee
    Dec 13, 2020 at 20:21
  • If answer is useful than approve answer.. thank you☺️ Dec 14, 2020 at 4:16
1

use this one

->addSuccessMessage(__('Your # . %1 has been submitted.', $incrementId));

put SPACE after #

1
  • not working, it is showing " syntax error, unexpected '%'
    – niceonelee
    Dec 12, 2020 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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