[Openupload-svn-update] SF.net SVN: openupload:[164] trunk/lib/general.inc.php
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-11-20 19:05:37
|
Revision: 164
http://openupload.svn.sourceforge.net/openupload/?rev=164&view=rev
Author: tsdogs
Date: 2008-11-20 19:05:32 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
Be sure translator is loaded before calling the translation
Modified Paths:
--------------
trunk/lib/general.inc.php
Modified: trunk/lib/general.inc.php
===================================================================
--- trunk/lib/general.inc.php 2008-11-20 18:39:47 UTC (rev 163)
+++ trunk/lib/general.inc.php 2008-11-20 19:05:32 UTC (rev 164)
@@ -59,7 +59,8 @@
function translate($txt,$domain,$args) {
/* now we retrieve the translated message */
- $txt = app()->tr->translate($txt,$domain);
+ if (is_object(app()->tr))
+ $txt = app()->tr->translate($txt,$domain);
/* if there are arguments replace them */
if (count($args)>0) {
$trargs = array();
@@ -77,7 +78,7 @@
* @name tr
* @param $txt
* @param ...
- * @description translates a string either from template or from code.
+ * @description translates a string from code string.
*
*/
function tr($txt) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|