Rev | Line | |
---|
[755] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * <strong>Agavi specific plugin</strong> |
---|
| 5 | * |
---|
| 6 | * uses AgaviTranslationManager to localize a string |
---|
| 7 | * |
---|
| 8 | * <pre> |
---|
| 9 | * * string : the string to localize |
---|
| 10 | * </pre> |
---|
| 11 | * |
---|
| 12 | * Examples: |
---|
| 13 | * <code> |
---|
| 14 | * {t "Hello"} |
---|
| 15 | * {t $header} |
---|
| 16 | * </code> |
---|
| 17 | * |
---|
| 18 | * This software is provided 'as-is', without any express or implied warranty. |
---|
| 19 | * In no event will the authors be held liable for any damages arising from the use of this software. |
---|
| 20 | * |
---|
| 21 | * @author Jordi Boggiano <j.boggiano@seld.be> |
---|
| 22 | * @copyright Copyright (c) 2008, Jordi Boggiano |
---|
| 23 | * @license http://dwoo.org/LICENSE Modified BSD License |
---|
| 24 | * @link http://dwoo.org/ |
---|
| 25 | * @version 1.0.0 |
---|
| 26 | * @date 2008-10-23 |
---|
| 27 | * @package Dwoo |
---|
| 28 | */ |
---|
| 29 | function Dwoo_Plugin_t_compile(Dwoo_Compiler $compiler, $string) |
---|
| 30 | { |
---|
| 31 | return '$this->data[\'tm\']->_('.$string.')'; |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.