You said that you "must" be able to select "tr_TR" but your user don't
select it.
Your user selects "tr" but this language is not available, so a notice is
thrown.
Note that a NOTICE is not a error and you can also disable it. Look into the
manual.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Elvin Şiriyev" <[email protected]>
To: <[email protected]>
Sent: Friday, May 08, 2009 1:35 PM
Subject: [fw-general] how handle Locale ?
hi,
my language files and Zend_Application Bootstrap resources config at blow.
With "tr,az;q=0.8,en-us;q=0.5,en;q=0.3" accepted languages I get some error.
How can i handle that? (it must select Locale as tr_TR and interface.tr_TR
with that accepted languages)
thanks.
*Errors*
-------------------------------------
Notice: The language 'tr' has to be added before it can be used. in
/usr/share/php/Zend/Translate/Adapter.php on line 317
Notice: No translation for the language 'tr' available. in
/usr/share/php/Zend/Translate/Adapter.php on line 330
*languages Folder*
------------------------------------
languages/interface.en_US
languages/interface.ar_AE
languages/interface.ru_RU
languages/interface.zh_CN
languages/interface.tr_TR
*application.ini*
-----------------------------------
resources.translate.adapter = ini
resources.translate.data = APPLICATION_PATH "/../languages"
resources.translate.options.scan = filename
--
Elvin Şiriyev
http://elvin.siriyev.net