Re: Templates & Languages
| From: | Sean Coates | Date: | Sat, 02 Oct 2004 02:10:32 +0000 |
| Subject: | Re: Templates & Languages | ||
| References: | 1 2 3 4 | Groups: | php.doc.web |
| Request: | Send a blank email to doc-web+get-345@lists.php.net to get a copy of this message | ||
It's been a week (almost), and we haven't really come up with any sort of decision on templates/languages.
Here's where it stands, IIRC:
- The code for display/output shouldn't be mixed with the "logic" (Sean).
- Proposal of a templating/dictionary engine. (Sean)
- We shouldn't allow a completely different LOOK for different languages (Vincent).
- Header/footer for each language/project is redundant (Vincent).
- Maybe a dictionary/gettext/locales type approach? (Curt)
- Using this approach (dictionary) is only a partial solution (and my engine makes use of this part), markup is fundamentally different in different languages.
- We should use my engine and make a rule about not allowing the "shared/common" items to be "translated" -- unless necessary for markup purposes. (Sean).
... Nuno mentioned something about phpdoc-lang dirs, but I didn't understand (care to elaborate, Nuno?). I'm not very familiar with livedocs internals.
I'd like to see Goba weigh in. Anyone else have comments?
I think the solution I proposed is still the best one, but I'm open to using another, so long as we can separate the display code from the logic (lib_general is a mess, right now, IMHO).
I hope we can get this resolved this week.
Thanks,
S