| Author |
Message |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: [solved] How to change the menu item name? Posted: Fri Apr 24, 2009 9:08 pm |
|
How to change the menu item name from "ForumsPro" or "ModuleName" to another text described in the language file like "Forums".
I need to change this in the url path, i can do this?
sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1) |
|
| Back to top |
|
 |
layingback


Joined: Apr 19, 2004 Posts: 953
|
Post subject: Re: How to change the menu item name? Posted: Fri Apr 24, 2009 9:49 pm |
|
If you can't change the name in the cpgmm menu entry, try entering the name in Modules.
_________________ Pro_News: The complete module for Dragonfly - now available as version 3.3
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1 |
|
| Back to top |
|
 |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: Re: How to change the menu item name? Posted: Fri May 08, 2009 7:12 pm |
|
I mean, how i change the name from menu when i change the language.
Example: Forums(English),Форумы(russian).
I need to change the name for most modules on my site.
Anybody can help me?
sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1) |
|
| Back to top |
|
 |
layingback


Joined: Apr 19, 2004 Posts: 953
|
Post subject: Re: How to change the menu item name? Posted: Sat May 09, 2009 9:48 am |
|
Go into Admin > Modules and type a new name in the first field.
_________________ Pro_News: The complete module for Dragonfly - now available as version 3.3
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1 |
|
| Back to top |
|
 |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: Re: How to change the menu item name? Posted: Sat May 09, 2009 3:08 pm |
|
yep, but i MEAN :
In english - one
In turkish - other
In Russian - other
Not one word for all language.
sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1) |
|
| Back to top |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: How to change the menu item name? Posted: Sun May 10, 2009 1:19 am |
|
Use something like
_SOMEWORD
and then in language/yourlanguage/main.php
add definition for that.
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1 |
|
| Back to top |
|
 |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: Re: How to change the menu item name? Posted: Sun May 10, 2009 5:24 am |
|
Not working for me 
Maybe not work for v10?
sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1) |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
|
| Back to top |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: How to change the menu item name? Posted: Sun May 10, 2009 12:13 pm |
|
Oh yes, you're right, it's not built in for normal menu.
However, for modules you can still use this method:
for example for ForumsPro just add to the languages/your_language/main.php definition for that using the for letters LANG in the end, like this:
PHP:
define('_ForumsProLANG','Forum');
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: How to change the menu item name? Posted: Sun May 10, 2009 12:28 pm |
|
Isn't that what I just indicated?
This method is coded into both Modules and Main Menu - they both look for that definition.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: How to change the menu item name? Posted: Sun May 10, 2009 12:29 pm |
|
Sorry, I was typing it for a bit longer to check out the menu code, so your post didn't show up for me
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1 |
|
| Back to top |
|
 |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: Re: How to change the menu item name? Posted: Mon May 11, 2009 5:03 pm |
|
Thanks for help, it's work.
sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1) |
|
| Back to top |
|
 |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: Re: How to change the menu item name? Posted: Mon May 11, 2009 5:03 pm |
|
Please close this topic.
sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1) |
|
| Back to top |
|
 |