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
Post a Comment