CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#7660] Lang() /admin/custom overrides not working.

avatar
Created By: Wayne ONeil (wishbone)
Date Submitted: Thu Mar 01 01:11:32 -0500 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.10.2
CMSMS Version: 1.10.2
Severity: Trivial
Resolution: Fixed
State: Closed
Summary:
Lang() /admin/custom overrides not working.
Detailed Description:
See http://forum.cmsmadesimple.org/viewtopic.php?f=8&t=59929

lib/translation.function.php:

line 488

cms_load_lang_realm('admin',$dir,'admin.inc.php',1,1);
cms_load_lang_realm('admin',$customdir,'admin.inc.php',1,1,1);

note that the last parameter '1' is $is_custom

cms_load_lang_realm(), line 283:

if( isset($all_langs[$cur_lang][$realm]) ) return; // already loaded.

When 'custom' is loaded, it returns, because the admin realm was already loaded,
ignoring $is_custom, and returns.. The check for $is_custom is later.

Wayne


History

Comments
avatar
Date: 2012-03-01 03:01
Posted By: Ronny Krijt (ronnyk)

Confirmed in 1.11SVN as well..
      
avatar
Date: 2012-04-14 23:50
Posted By: Robert Campbell (calguy1000)

Fixed for CMSMS 1.11
      
avatar
Date: 2012-08-02 07:31
Posted By: Rolf (rolf1)

CMSMS 1.11 is released
      
avatar
Date: 2012-08-19 11:28
Posted By: Victor Avgust (Vavgust)

CMS Made Simple™ 1.11.1 “Baltra. Don't work renaming with file
/admin/custom/lang/en_US/admin.inc.php
      
avatar
Date: 2012-08-20 04:04
Posted By: Mario S (rotezecke) (rotezecke)

Still not working for me in CMSMS 1.11.1
      
Updates

Updated: 2012-08-02 07:31
state: Open => Closed

Updated: 2012-04-14 23:50
resolution_id: 10 => 7

Updated: 2012-04-13 11:47
resolution_id: 6 => 10

Updated: 2012-03-01 03:01
resolution_id: => 6