[FLOW3-general] Flash messages internationalization.

Sergio naguib.mahfuz at gmail.com
Fri Jan 4 12:24:26 CET 2013


Hi,

I'm trying to translate my "flash messages" in my extension.

1. I added unit entries and translations for every message.

2. I add flash message from my controller:

eg:

$message = 'Successfully logged in';
$this->addFlashMessage($message);

3. I added the "lang" attribute to <f:flashMessages> viewhelper in my view:

eg:


      <f:flashMessages lang="{lang}" as="flashMessages">
                <f:for each="{flashMessages}" as="flashMessage">
                    <div class="alert-box success">
                          {flashMessage}.
                          <a href="" class="close">&times;</a>
                    </div>
                </f:for>
            </f:flashMessages>

Only entries in the default language are shown. "lang" contains the
language of the user, which is not the same as the default language.

Am I missing something?

Thanks in advance,
Sergio


More information about the FLOW3-general mailing list