Hello,

I have recently hacked around on the I18N classes in symfony to realize 
the following features:
http://pooteeweet.org/blog/595

During my work I stumbled over a few points.

====

1) sfMessageFormat.class.php

a) in the getFormattedString()

247               if (empty($target))
248               {
249                 return $this->postscript[0].$this->replaceArgs($string, 
$args).$this->postscript[1];
250               }
251               else
252               {
253                 return $this->replaceArgs($target, $args);
254               }

Why does line 249 not return false?

b) require_once(dirname(__FILE__).'/util.php');

This line seems a bit unusual for symfony. I presume its due to the 
adaptation of the code from Prado? Anyways it seems unclean and meant 
that when I changed the code for 1a) I not only had to copy 
sfMessageFormat.class.php but also util.php into my libs dir.

====

2) sfI18N.class.php

There does not seem to be a way to configure the class to use for I18N, 
as a result one cannot extend sfI18N. The only solution I found was to 
copy the entire class into my lib's dir and modify the class itself.

====

Thanks for any hints.

regards,
Lukas

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to