Page 1 of 1

[SOLVED] renaming extra field fails

Posted: Thu Mar 01, 2012 4:41 am
by rotezecke
I run CMSMS 1.10.3 (English only install) and tried renaming the extra field following the instructions from the development cookbook. renaming fails on both local and remote install. it works fine on an older CMSMS
version (1.6.x) so I'm sure i got the syntax right.
created:

Code: Select all

/custom/lang/en_US/admin.inc.php
and added a line

Code: Select all

<?php
$lang['admin']['extra1'] = 'testing';
?>
but nothing happened (cleared cache, too).
on the other hand, i managed to rename fields for modules, following the cookbook's instructions. anyone encountered a similar problem?

Re: renaming extra field fails

Posted: Thu Mar 01, 2012 6:14 am
by Wishbone
Did you mean /admin/custom/lang/en_US/admin.inc.php?

Looks like a code bug.

In translation.function.php, the 'custom' lang load isn't processed. It tries to, but there is a line that says 'ignore if loaded twice', not realizing that it's a custom override to the admin lang already loaded.

I filed a bug report.

http://dev.cmsmadesimple.org/bug/view/7660


..as a workaround, you can edit /admin/lang/en_US/admin.inc.php, find the 'extra1' entry, and change that.. Not optimal, because if you upgrade, your change will be overwritten.

Re: renaming extra field fails

Posted: Thu Mar 01, 2012 9:35 pm
by rotezecke
Thanks for following this up. won't mark it as solved for the time being. cheers. mario
(yes, i meant /admin/...)

Re: renaming extra field fails

Posted: Sat Aug 18, 2012 8:37 am
by rotezecke
Has this been fixed in 1.11? Still doesn't work for me on 1.11.1
has anyone tried this?

Re: renaming extra field fails

Posted: Tue Aug 21, 2012 2:03 pm
by Wishbone
I got a mail saying that the ticket I filed was closed and included in 1.11. If there's an issue, you can update the ticket.

http://dev.cmsmadesimple.org/bug/view/7660

Re: renaming extra field fails

Posted: Sat Sep 08, 2012 10:46 am
by rotezecke
Acknowledged as bug (again).
http://forum.cmsmadesimple.org/viewtopi ... =8&t=62839

@wishbone - i cannot update tickets that i didn't create.

Re: renaming extra field fails

Posted: Mon Sep 10, 2012 4:35 pm
by Wishbone
Interesting.. I've posted comments to many tickets that others have created.

Re: renaming extra field fails

Posted: Mon Sep 10, 2012 7:44 pm
by rotezecke
comments are ok (and I left one), but couldn't update bug status.