Hello Ralf,
here you go:
snip
Thanks a lot!
Best regards,
Andreas
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com
Hello Ralf,
AbstractValidator::setDefaultTranslator($translator);
How are you attaching the listener? To what event? I don't seem to get it wired
up correctly yet.
Best regards,
Andreas
Hi Andreas,
here you go:
-
namespace Application;
use Application\Listener\ApplicationListener;
use Zend\EventManager\EventInterface;
use Zend\ModuleManager\Feature\BootstrapListenerInterface;
class Module implements
Hello Ralf,
currently I use this code in a ListenerAggregate class to add the
translations for validators:
$baseDir = APPLICATION_ROOT . '/module/Application/language';
$translator = Translator::factory(array(
'locale'= 'de',
Hello Ralf,
AbstractValidator::setDefaultTranslator($translator);
Sort of solved my problem by specifying the default translator in this way.
Don't like it, though.
Best regards,
Andreas
Hello Ralf,
I know its xmas but do you have any news on this. Just again I have the
problem with untranslated validator messages and I am starting again to
mess around with setting messages for each validator I use.
I haven't had much of a chance to work on this over the last two to three
Hello Ralf,
What do you say?
So, after having had a look at Zend\Validator\AbstractValidator, translation
obviously occurs in the validator, why setting form error messages in the form
*after* validation has occurred will leave form error messages untranslated.
Best regards,
Andreas
--
Hi Andreas,
currently I use this code in a ListenerAggregate class to add the
translations for validators:
$baseDir = APPLICATION_ROOT . '/module/Application/language';
$translator = Translator::factory(array(
'locale'= 'de',
Hi Andreas,
Andreas Möller schrieb am 11.12.2012 16:27:
Yes -- the plan is to roll out 2.1 the first or second week of
January. As such, getting it in in the next two to three weeks would
be necessary if you want to hit that release.
I'll try my best!
I know its xmas but do you have any
Hello Ralf,
thanks for your feedback!
I personally have now problems with that full stop. But there is another
issue which makes the messages translations useless currently.
https://github.com/zendframework/zf2/issues/2536
For example look at this file at the text for Alpha::NOT_ALPHA:
Hi Andreas,
Seems that the translation files need a big update, then, in the first place.
I'll have a look into this later.
Yep. Would be great if youn could sort that out. Anyway, why is the file
called Zend_Validate.php and not Zend_Validator.php?
Regards,
Ralf
--
List:
Hello Ralf,
Seems that the translation files need a big update, then, in the first
place. I'll have a look into this later.
Yep. Would be great if youn could sort that out. Anyway, why is the file
called Zend_Validate.php and not Zend_Validator.php?
Good question - I guess that's a
On Tue, Dec 11, 2012 at 7:42 AM, Andreas Möller a...@softe.is wrote:
Seems that the translation files need a big update, then, in the first
place. I'll have a look into this later.
Yep. Would be great if youn could sort that out. Anyway, why is the file
called Zend_Validate.php and not
Hi,
Thoughts?
Would it be possible to use the constants in the translation files
rather than the text messages? Instead of
Invalid type given. String, integer or float expected = ...
use
Zend\I18n\Validator\Alnum::INVALID = ...
So, when a text in the validator class is changed, then the
On Tue, Dec 11, 2012 at 9:07 AM, Ralf Eggert r.egg...@travello.de wrote:
Thoughts?
Would it be possible to use the constants in the translation files
rather than the text messages? Instead of
Invalid type given. String, integer or float expected = ...
use
Hello Ralf,
Would it be possible to use the constants in the translation files
rather than the text messages? Instead of
Invalid type given. String, integer or float expected = ...
use
Zend\I18n\Validator\Alnum::INVALID = ...
So, when a text in the validator class is changed, then
Hello Ralf,
I like this idea. Andreas?
I wouldn't mind doing this, since I'm the one who opened the issue.
Unfortunately, I can't tell by when I could accomplish this. Matthew, can you
give me some deadline by which it should be finished to make it into 2.1?
Before new year, I guess, when I
On Tue, Dec 11, 2012 at 9:15 AM, Andreas Möller a...@softe.is wrote:
I like this idea. Andreas?
I wouldn't mind doing this, since I'm the one who opened the issue.
Unfortunately, I can't tell by when I could accomplish this. Matthew, can you
give me some deadline by which it should be
Hello Matthew,
Yes -- the plan is to roll out 2.1 the first or second week of
January. As such, getting it in in the next two to three weeks would
be necessary if you want to hit that release.
I'll try my best!
Best regards,
Andreas
--
List: fw-general@lists.zend.com
Info:
We already had message keys as translator keys previously in ZF1.
It was changed to have full messages as keys but I don't know why this
was changes. Does anyone know more about ?
Greetings
Marc
On 11.12.2012 16:07, Ralf Eggert wrote:
Hi,
Thoughts?
Would it be possible to use the
Hello everyone,
I have added a bunch of full stops at the end of validation messages provided
by ZF2.
* https://github.com/zendframework/zf2/pull/2984
Matthew and folks on IRC #zftalk pointed out that it might be an issue for
those that are using the actual strings as message ids for their
Hi Andreas,
I personally have now problems with that full stop. But there is another
issue which makes the messages translations useless currently.
https://github.com/zendframework/zf2/issues/2536
For example look at this file at the text for Alpha::NOT_ALPHA:
22 matches
Mail list logo