![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 22 Pomógł: 0 Dołączył: 24.04.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Bawię się własnie Zend Frameworkiem i mam pewien problem z tłumaczeniami. Jak zrobić żeby komunikaty były po polsku? $validator = new Zend_Validate_EmailAddress(); if ($validator->isValid('testss')) { // email appears to be valid } else { // email is invalid; print the reasons foreach ($validator->getMessages() as $messageId => $message) { echo $message; } } i dostaje oczywiscie po angielsku mogę sobie z tym poradzić dziedzicząc z Zend_Validate_EmailAddress ale troche mi sie nie uśmiecha robić tego dla wszystkich Validatorów Czy są jeszcze jakieś inne sensowniejsze rozwiazania? class Foo_Validate_EmailAddress extends Zend_Validate_EmailAddress { public function getMessages() { return array("Zły adres"); } } Pozdrawiam |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 8.07.2025 - 01:05 |