public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Changed to use the full function name instead of _ shorthand for gettext.
Arttu Manninen (author)
Thu Apr 10 08:59:21 -0700 2008
commit  01caece264057aa0011734b25b6fc3face5593f8
tree    3d7e85afcb075bceb6bdd262ae30642e43e9677a
parent  8139a846b69e871e1263764ef2afbb76a3c760bf
...
31
32
33
34
 
 
 
 
 
 
 
35
36
37
38
...
31
32
33
 
34
35
36
37
38
39
40
41
42
43
44
0
@@ -31,7 +31,13 @@ class midcom_core_services_l10n_gettext implements midcom_core_services_l10n
0
      */
0
     public function get($string)
0
     {
0
- return _($string);
0
+ // Return the inputted string, if gettext is not available
0
+ if (!function_exists('gettext'))
0
+ {
0
+ return $string;
0
+ }
0
+
0
+ return gettext($string);
0
     }
0
 }
0
 ?>
0
\ No newline at end of file

Comments

    No one has commented yet.