| [ Index ] |
|
Code source de WebCalendar 1.0.5 |
[Code source] [Imprimer] [Statistiques]
Language translation functions. The idea is very much stolen from the GNU translate C library.
| Version: | $Id: translate.php,v 1.15 2005/03/08 14:24:51 umcesrjones Exp $ |
| Poids: | 199 lignes (5 kb) |
| Inclus ou requis: | 5 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| reset_language( $new_language ) X-Ref |
| Unloads translations so we can switch languages and translate into a different language. param: string $new_language New language file to load (just the base |
| load_translation_text() X-Ref |
| Loads all the language translation into an array for quick lookup. <b>Note:</b> There is no need to call this manually. It will be invoked by {@link translate()} the first time it is called. |
| translate( $str ) X-Ref |
| Translates a string from the default English usage to some other language. The first time that this is called, the translation file will be loaded (with {@link load_translation_text()}). param: string $str Text to translate return: string The translated text, if available. If no translation is |
| etranslate( $str ) X-Ref |
| Translates text and prints it. This is just an abbreviation for: <code>echo translate ( $str )</code> param: string $str Text to translate and print |
| tooltip( $str ) X-Ref |
| Translates and removes HTML from text, and returns it. This is useful for tooltips, which barf on HTML. <b>Note:</b> {@link etooltip()} will print the result rather than return the value. param: string $str Text to translate return: string The translated text with all HTML removed |
| etooltip( $str ) X-Ref |
| Translates and removes HTML from text, and prints it. This is useful for tooltips, which barf on HTML. <b>Note:</b> {@link tooltip()} will return the result rather than print the value. param: string $str Text to translate and print |
| Généré le : Fri Nov 30 19:09:19 2007 | par Balluche grâce à PHPXref 0.7 |
|