hi all,
I am currently trying to fit symfony's i18n feature to my needs. alas
it is pretty hard to extend the already existing capabilities since
the use of sfI18N as the i18n class is hardcoded in sfContext. I
therefor propose the following change in order to be able to configure
a replacement i18n class extending sfI18N:
what do you think?
cheers
/christian
277 /**
278 * Retrieve the i18n instance
279 *
280 * @return sfI18N The current sfI18N implementation instance.
281 */
282 public function getI18N()
283 {
284 if (!$this->i18n && sfConfig::get('sf_i18n'))
285 {
NEW $class = sfConfig::get('sf_i18n_class', 'sfI18N');
286 $this->i18n = $class::getInstance();
287 $this->i18n->initialize($this);
288 }
289
290 return $this->i18n;
291 }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---