Closed vojtech-dobes closed 10 years ago
This is not a good solution, because the mechanism for detecting if the message was translated is also not reliable.
Maybe not good solution, but translator should not change string if it is not translated. We got into problem when we has string 'N.v.t' in selectbox - it displayed only 'v.t.' (took 'N' as domain) which is really wrong.
@vysinsky you can $control->setTranslator(NULL)
on the select (or on the entire form)
Unfortunatelly, this pullrequest doesn't solve anything, it only complicates the problem.
What would be your approach? What needs to be fixed first?
Ok, setting translator to NULL is possible solution. But I still think translator should NOT change strings which are not translated. It is quite wtf if you see 'user.login' in template and you have to search in 'messages' file, 'forms' file etc. - domain should stay in string as is passed to translate
method.
@vysinsky I completely agree.
@vojtech-dobes
MessageCatalogues
to return NULL if the message is not presented in the catalogue and if it has no fallback.if
the thing and finally, we'll be able to tell if the catalogue actually returned something or it just juggled with the messageThis would be great ASAP. Can I help somehow?
Closing in favour of #51
Fixes #19.