/karibou2/class/smarty/t.block.php

Description

block.t.php - Smarty gettext block plugin

------------------------------------------------------------------------- * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ------------------------------------------------------------------------- *

Installation: simply copy this file to the smarty plugins directory.

Functions
smarty_block_t (line 73)

Smarty block function, provides gettext support for smarty.

The block content is the text that should be translated.

Any parameter that is sent to the function will be represented as %n in the translation text, where n is 1 for the first parameter. The following parameters are reserved:

    • 'html' for HTML escaping, this is the default.
    • 'js' for javascript escaping.
    • 'url' for url escaping.
    • plural - The plural version of the text (2nd parameter of ngettext())
    • count - The item count for plural mode (3rd parameter of ngettext())

    void smarty_block_t (mixed $params, mixed $text, mixed &$smarty)
    smarty_gettext_strarg (line 38)

    Replaces arguments in a string with their values.

    Arguments are represented by % followed by their number.

    • return: Modified string
    string smarty_gettext_strarg (string $str, mixed 1)
    • mixed 1: Arguments, can be passed in an array or through single variables.
    • string $str: Source string

    Documentation generated on Sat, 17 Feb 2007 02:55:19 +0100 by phpDocumentor 1.3.0RC3