Page 1 of 1

News module - change name in the admin menu?

Posted: Thu Jun 15, 2006 3:04 pm
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

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

Posted: Thu Jun 15, 2006 8:07 pm
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) ;).

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

Posted: Thu Jun 15, 2006 10:33 pm
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.

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

Posted: Fri Jun 16, 2006 4:38 am
by cyberman
calguy1000 wrote: modules_custom/News/lang/en_US.php 
Is this a new feature to support this folder?

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

Posted: Fri Jun 16, 2006 6:24 am
by volcanoboy
Perfect! Cheers!  ;D

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

Posted: Fri Jun 16, 2006 1:02 pm
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?

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

Posted: Fri Jun 16, 2006 1:12 pm
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!

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

Posted: Fri Jun 16, 2006 2:12 pm
by cyberman
It work's not in v0.13 with an external language :-\ ...