For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2006 > Re: [SMARTY] smarty and GNU gettext









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] smarty and GNU gettext
Vicente Werner

2006-05-30, 8:06 am

On 5/30/06, Marcus Bointon <marcus@synchromedia.co.uk> wrote:
>
> On 30 May 2006, at 14:22, Vicente Werner wrote:
>
> Personally I think gettext is a clunky way of working anyway! I'm
> using a DB-based one at present - it's nice to have a separate web
> interface for translators to use independent of web apps.



There're other issues I considered, as the need to reboot apache when you
change the .po files so they're loaded and the hit just for initilizing the
system.

I've done it as both block and function - I find functions are tidier
> for small things like field titles. I've yet to come up with a nice
> way of handling embedded variables like gettext does, especially with
> numbered params. Any ideas on that?




What I did was a modification of the block function so it could get a list
of vars that were substitued on the string.


Marcus
> --
> Marcus Bointon
> Synchromedia Limited: Putting you in the picture
> marcus@synchromedia.co.uk | http://www.synchromedia.co.uk
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Vicente Werner y Sánchez
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com