Actually you can't translate something when there is no translation
available.
The exception describes this: "The given file could not be opened!"
As you see in the API doc you must give a string and not a null... the
second parameter is not optional it's demanded.
So eighter give a valid file, or use another adapter, or use directory
scanning.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "???? ???????????" <[email protected]>
To: <[email protected]>
Sent: Monday, May 11, 2009 3:20 PM
Subject: [fw-general] Zend_Translate for default language
Hi.
When making Zend_Translate instance
new Zend_Translate('gettext', $file), for default language, I don't have po
file, so, if I pass null for file, I get error "Zend_Translate_Exception:
Error opening translation file ''.
So, how can I prevent this?
Regards,
Saša Stamenković