I was thinking about the best way to combine templates and language files.
Shall i keep the text/sentences/expressions inside each template or keep it separate?
- If i keep the template with the text i need to set 1 template version for each language (if you change tamplate A structure for 1 language you need to change it to all the other languages).
PHP Code:
[english] $template = '<div> <span class="little">This is Text</span> </div>'; [spanish] $template = '<div> <span class="little">Esto eres texto</span> </div>'; .. ..
- If i keep it separate its more efficient yet its very user unfriendly because people will see only references to the texts and it might become confusing.
PHP Code:
$template = '<div> <span class="little">'.$text['342'].'</span> </div>';
A dilemma 
Last edited by Elenis : 06-16-2008 at 08:12 PM.
|