Hi,
I am someone else than the original reporter still hitting the same wall
with the latest checkout 0abbba9f1171e5c7cd7997f4d185d5ffe0cd7c5f from
zendframework-dev-master.
The goal is to have PoEdit (or xgettext) detect strings for translation from
forms.
i.e.
class LoginForm extends Form {
public function __construct() {
$this->add(array(
'name' => "username",
'attributes' => array(
'type' => "email",
'class' => "input-medium span5",
'placeholder' => "Email address..." // THIS
NEEDS TO BE EXTRACTED BY
XGETTEXT!! // XXX
),
'options' => array(
'label' => "!THIS NEEDS TO BE EXTRACTED BY
XGETTEXT!", // XXX
)
));
}
}
I too couldn't find any acceptable way to do it.
I can only get rid of
echo $this->formLabel($form->get('username'))
in the view and replace them by
$this->translate('xxx')
but in that case I somehow lose the definition done in the form...
Can anyone please suggest a way of doing it?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/problem-in-translation-in-zend2-beta5-tp4655843p4657804.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]