[mythtv] [patch] MythWeb translation method

Ed Wildgoose lists at wildgooses.com
Wed Feb 18 17:06:19 EST 2004


Chris Petersen wrote:

>>Chris, I wonder if it's about time to consider one of the templating 
>>tools?  There is quite a lot of code mixed into the theme output files 
>>now, being able to have a seperate content and code would make it much 
>>easier to maintain and update I think?
>>    
>>
>
>I'm open to suggestions.  Unfortunately, I don't know what difference
>templating will do.  It just gets to a point where you need code in the
>display stuff to make it do what you need it to do.  I don't think any
>code NOT specific to display (for loops, etc) has made it into the theme
>templates, though (and if it has, it should get moved out).
>
>  
>

My point was that it would be nice to go one stage further.  For example 
remove the formatting code as well.  This leaves you with just the text 
(which can then be translated), and the formatting code, as two seperate 
items.

Have a look at "Smarty" for example. 

Ed W


More information about the mythtv-dev mailing list