summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-08-18 20:59:18 -0700
committerCraig Andrews <candrews@integralblue.com>2009-08-21 16:01:51 -0400
commit5c21a371d61b4cd3dd125f2c43aa80c52c9c316d (patch)
tree4681bcf98b597d3c8405ed7a418d009bf5ab03ef /lib/common.php
parent871903a319aab5704504991208d992fadb72fdf7 (diff)
Include php-gettext 1.0.7 into extlibs; loading it up if native gettext extension is not present.
This provides a pure PHP implementation of the gettext functions. This should help get laconica running on shared hosting environments where PHP's gettext module may not be installed. Also gets us one step closer to running on Mac OS X 10.5 with Apple's preinstalled PHP, which doesn't provide an easy way to add modules. Source: http://savannah.nongnu.org/projects/php-gettext Copyright (c) 2005 Steven Armstrong <sa at c-area dot ch> GPLv2 or later
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 6c4b856e0..72c093bf3 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -47,6 +47,9 @@ require_once('PEAR.php');
require_once('DB/DataObject.php');
require_once('DB/DataObject/Cast.php'); # for dates
+if (!function_exists('gettext')) {
+ require_once("php-gettext/gettext.inc");
+}
require_once(INSTALLDIR.'/lib/language.php');
// This gets included before the config file, so that admin code and plugins