| От | Alexey Borzov |
|---|---|
| Тема | Re: Todo for 'portal', programmers perspective |
| Дата | |
| Msg-id | 4006C64F.9060703@cs.msu.su обсуждение исходный текст |
| Ответ на | Re: Todo for 'portal', programmers perspective ("Andreas Grabmüller" <webmaster@letzplay.de>) |
| Список | pgsql-www |
Hi!
Andreas Grabmüller wrote:
> However. I personally like template systems. But how do you want to handle the translations with it? I don't think
havingdifferent templates for different languages is a good idea as this would destroy all benefits of templates (we
wouldhave to manage the same layout multiple times).
The one I originally proposed allows callback functions to be defined.
I.e. instead of
<a href="..."><?php translate('Download'); ?></a>
you write
<a href="...">func_translate(Download)</a>
within a template, this is quite viewable and editable and the string
translations can still be kept in a central place.
В списке pgsql-www по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера