Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Translate a Smarty Template Using Google

 
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
tacman1123
Smarty Rookie


Joined: 11 Mar 2004
Posts: 8
Location: Washington, DC

PostPosted: Fri Apr 08, 2011 9:52 am    Post subject: Translate a Smarty Template Using Google Reply with quote

The Google Translate API is a great tool to provide basic translations dynamically. It would be nice to also use it to do a rough translation of a Smarty template, which could then later be cleaned up.

I haven't been able to figure out how to tell the Google Translate API to simply pass-thru any text inside brackets. So it seems like it might need to be something deep in the Smarty Internals to do that.

There are several approaches to this, template to template translation, so that a Smarty template was returned (instead of an executed template), or simply translating part of the template results.

In the short term, a plugin might work. Is there a repository for Smarty plugins, I may do this one and I have several others that I find worthwhile that I'd be happy to share.

Tac
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP