public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Modifies cms_language to return the requested text if no translation is 
found.  
AddMe's are gone.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4106 
3d254a34-79dc-0310-9e5f-be208747d8a0
calguy1000 (author)
Sun Aug 26 20:46:37 -0700 2007
commit  4de5b7398237a3eaa0eea05f91094e39e2f455a5
tree    229cdd78cd45f9717d415daf4ae0a8903d26f750
parent  17e25ac419ad581907cc4bde09830a76063ebcdf
...
15
16
17
18
 
19
20
21
22
23
24
25
26
27
 
 
 
28
29
30
...
64
65
66
67
 
 
 
 
 
 
68
69
70
...
15
16
17
 
18
19
20
21
22
23
24
 
 
 
25
26
27
28
29
30
...
64
65
66
 
67
68
69
70
71
72
73
74
75
0
@@ -15,16 +15,16 @@
0
 #You should have received a copy of the GNU General Public License
0
 #along with this program; if not, write to the Free Software
0
 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0
-#$Id$
0
+#$Id: class.cms_language.php 3807 2007-03-05 03:05:39Z wishy $
0
 
0
 /**
0
  * Methods for handling language and translation functions.
0
  *
0
  * @author Ted Kulp
0
  * @since 2.0
0
- * @version $Revision$
0
- * @modifiedby $LastChangedBy$
0
- * @lastmodified $Date$
0
+ * @version $Revision: 3807 $
0
+ * @modifiedby $LastChangedBy: wishy $
0
+ * @lastmodified $Date: 2007-03-04 20:05:39 -0700 (Sun, 04 Mar 2007) $
0
  * @license GPL
0
  **/
0
 class CmsLanguage extends CmsObject
0
@@ -64,7 +64,12 @@ class CmsLanguage extends CmsObject
0
     else if ($default_language != $current_language && array_key_exists($name, self::$lang[$module][$default_language]))
0
       $result = self::$lang[$module][$default_language][$name];
0
     else
0
- $result = "--Add Me - $module - $name --";
0
+ {
0
+ //$result = "--Add Me - $module - $name --";
0
+ // calguy1000 - a move to the tr plugin
0
+ // just return the original text
0
+ return $name;
0
+ }
0
       
0
     if (count($params) > 0)
0
     {

Comments

    No one has commented yet.