6 // load string translation table for alternate language
8 if(! function_exists('load_translation_table')) {
9 function load_translation_table($lang) {
12 if(file_exists("view/$lang/strings.php"))
13 include("view/$lang/strings.php");
16 // translate string if translation exists
18 if(! function_exists('t')) {
23 if(x($a->strings,$s)) {
25 return is_array($t)?$t[0]:$t;
30 if(! function_exists('tt')){
31 function tt($singular, $plural, $count){
35 if(x($a->strings,$singular)) {
36 $t = $a->strings[$singular];
37 $k = string_plural_select($count);
38 return is_array($t)?$t[$k]:$t;