/** * Convert a string to the current locale equivalent. * * You might pass variadic parameters to this function. ie. <samp>s('Loading %d bytes...', 500)</samp> * * @param string * @return string */ function s($str) { if (func_num_args() > 1) { $a = func_get_args(); array_shift($a); return vsprintf(I18n::string($str), $a); } return I18n::string($str); }