diff --git a/translation/message_format.rst b/translation/message_format.rst index a0761ec75f6..341da90e039 100644 --- a/translation/message_format.rst +++ b/translation/message_format.rst @@ -132,13 +132,13 @@ the function name is ``select`` and its statement contains the "cases" of this select. This function is applied over the ``organizer_gender`` variable:: // prints "Ryan has invited you for his party!" - echo $translator->trans('invition_title', [ + echo $translator->trans('invitation_title', [ 'organizer_name' => 'Ryan', 'organizer_gender' => 'male', ]); // prints "John & Jane have invited you for their party!" - echo $translator->trans('invition_title', [ + echo $translator->trans('invitation_title', [ 'organizer_name' => 'John & Jane', 'organizer_gender' => 'not_applicable', ]);