News module - change name in the admin menu?

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.
Locked
volcanoboy

News module - change name in the admin menu?

Post by volcanoboy »

Is there a way to change the news module name to something else in the dropdown menus and other places it is shown as "News".
I'm using it for something slightly different and want to change it to something that will make more sense to my client.

Thanks

Jon
cyberman

Re: News module - change name in the admin menu?

Post by cyberman »

It's very simple too - please look at modules language file (e.g. modules/news/lang/en_US.php), open it with your favourite editor and search for string 'news' and change it to whatever you want (1 or 2 times) ;).
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News module - change name in the admin menu?

Post by calguy1000 »

actually, you should be able to create a file called
(modules_custom/News/lang/en_US.php  )
CORRECTED: /module_custom/News/lang/en_US.php


and just add the strings that you want to change.  like for example:
$lang['friendlyname'] = 'myNews';

this way, when the news module is updated, your changes won't be lost.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cyberman

Re: News module - change name in the admin menu?

Post by cyberman »

calguy1000 wrote: modules_custom/News/lang/en_US.php 
Is this a new feature to support this folder?
volcanoboy

Re: News module - change name in the admin menu?

Post by volcanoboy »

Perfect! Cheers!  ;D
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News module - change name in the admin menu?

Post by calguy1000 »

No, it's been in since the 0.11 days I think.  I placed it in for this purpose, so you could override individual strings, etc. without having to worry about losing your changes on the next upgrade.
cyberman wrote:
calguy1000 wrote: modules_custom/News/lang/en_US.php 
(modules_custom/News/lang/en_US.php )
CORRECTED: /module_custom/News/lang/en_US.php


Is this a new feature to support this folder?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cyberman

Re: News module - change name in the admin menu?

Post by cyberman »

calguy1000 wrote: No, it's been in since the 0.11 days I think.  I placed it in for this purpose, so you could override individual strings, etc. without having to worry about losing your changes on the next upgrade.
Hmm, great ... but never read yet somewhere in docu / forum or so other ::) .

Thx!
cyberman

Re: News module - change name in the admin menu?

Post by cyberman »

It work's not in v0.13 with an external language :-\ ...
Locked

Return to “CMSMS Core”