You can not set an option within an instance which you have not initiated.
OOP does not allow this.

Why are you fixed on "setLocale" ???
It's not needed in your case.

You could for example set your preferred locale within the bootstap process and create a translation object within your modell using the locale from bootstap, or simply use Registry, Cache, or Session for this purpose.

Greetings
Thomas
I18N Team Leader


----- Original Message ----- From: "debussy007" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 11, 2008 6:43 PM
Subject: [fw-general] setLocale question



Hi,
I am used to use the following:

$translate = new Zend_Translate('gettext', './public/lang/services-en.mo',
'en');
$translate->setLocale("en");

But now I want to set the locale and only afterwards add translations.
How can I do this ?

Thank you.
--
View this message in context: http://www.nabble.com/setLocale-question-tp14761674s16154p14761674.html Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to