PHP Classes

File: engine/modules/core/localization/localization.module

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/core/localization/localization.module   Download  
File: engine/modules/core/localization/localization.module
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 5 years ago
Size: 413 bytes
 

Contents

Class file image Download
<?php require_once("Localization.class.inc"); /** * Returns a translated version of a string. * * @param $string * The translatable string. * * @return mixed * The translated string. */ function t($string, $replace = array()) { // TODO: multilanguage strings implementation. foreach ($replace as $k => $replacement) { $string = str_replace($k, $replacement, $string); } return $string; }