zend framework 2 gettext translation using others comments -


i want know if possible use comments created build other comment contain used commend in addition other text.

e.g.

//en file

  msgid "user no logged"   msgstr ""    msgid "#previous commend# participant"   msgstr "" 

//es file

  msgid "user no logged"   msgstr "usuario no logueado"    msgid "#previous commend# participant"   msgstr "#previous translation# como participante" 

i want use translation:

  $this->translate('user no logged participant');   //i want obtain: usuario no logueado como participante 

is possible change #.....# words anything?

thanks in advance.

isn't other question about, too? though if understand correctly you're trying do, may this:

echo $this->translate(sprintf(     '%s participant',      $this->translate('user no logged') )); 

but again in case, me 2 translations in row, like:

echo sprintf('%s %s',      $this->translate('user no logged'),     $this->translate('as participant') ); 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -