[SOLVED] renaming extra field fails

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

[SOLVED] renaming extra field fails

Post 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?
Last edited by rotezecke on Mon Sep 17, 2012 4:58 am, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: renaming extra field fails

Post 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.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: renaming extra field fails

Post by rotezecke »

Thanks for following this up. won't mark it as solved for the time being. cheers. mario
(yes, i meant /admin/...)
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: renaming extra field fails

Post by rotezecke »

Has this been fixed in 1.11? Still doesn't work for me on 1.11.1
has anyone tried this?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: renaming extra field fails

Post 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
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: renaming extra field fails

Post by rotezecke »

Acknowledged as bug (again).
http://forum.cmsmadesimple.org/viewtopi ... =8&t=62839

@wishbone - i cannot update tickets that i didn't create.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: renaming extra field fails

Post by Wishbone »

Interesting.. I've posted comments to many tickets that others have created.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: renaming extra field fails

Post by rotezecke »

comments are ok (and I left one), but couldn't update bug status.
Post Reply

Return to “CMSMS Core”