When doing translations in phptal you can use any backend to load the
translation map (not just gettext) by extending the translationservice
class and pass this to setTranslator(); personally I would load single
translation files inside the useDomain() method and/or setLanguage()
object in JS itself by writing out the map (using json_encode) and one
translate() function inside the same object.
On 6/13/09, michal <hosema...@poczta.onet.pl> wrote:
> Kornel Lesinski <kor...@...> writes:
>> Well, it certainly wouldn't be faster, because access to variables
>> from PHPTAL object is quite slow (they are stored in this object).
>> And I really don't get it why do you want to use PHPTAL class for
>> managing translations, rather than some other class that's designed
>> for that purpose.
> If you can see other, better solution for my application ,some advices are
> PHPTAL mailing list
PHPTAL mailing list