[solved] How to change the menu item name?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexHelp
Author Message
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: [solved] How to change the menu item name?
Posted: Fri Apr 24, 2009 9:08 pm
Reply with quote

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
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: How to change the menu item name?
Posted: Fri Apr 24, 2009 9:49 pm
Reply with quote

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
View user's profile Visit poster's website
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: Re: How to change the menu item name?
Posted: Fri May 08, 2009 7:12 pm
Reply with quote

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
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: How to change the menu item name?
Posted: Sat May 09, 2009 9:48 am
Reply with quote

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
View user's profile Visit poster's website
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: Re: How to change the menu item name?
Posted: Sat May 09, 2009 3:08 pm
Reply with quote

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
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: How to change the menu item name?
Posted: Sun May 10, 2009 1:19 am
Reply with quote

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
View user's profile Send e-mail Visit poster's website
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: Re: How to change the menu item name?
Posted: Sun May 10, 2009 5:24 am
Reply with quote

Not working for me Sad
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
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: How to change the menu item name?
Posted: Sun May 10, 2009 12:11 pm
Reply with quote

It works for all versions of DF.

You must edit each main.php file for english, turkish, russian etc (with translated meaning), then define each module you want changed like so:
define('_Module_NameLANG','Module Name');
For more examples, see this section in main.php
Code:
/* For Multilingual Modules Block  */

DF will pick up and use this name if you DO NOT use a Custom name in modules admin.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: How to change the menu item name?
Posted: Sun May 10, 2009 12:13 pm
Reply with quote

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
View user's profile Send e-mail Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: How to change the menu item name?
Posted: Sun May 10, 2009 12:28 pm
Reply with quote

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
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: How to change the menu item name?
Posted: Sun May 10, 2009 12:29 pm
Reply with quote

Sorry, I was typing it for a bit longer to check out the menu code, so your post didn't show up for me Smile

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
View user's profile Send e-mail Visit poster's website
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: Re: How to change the menu item name?
Posted: Mon May 11, 2009 5:03 pm
Reply with quote

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
View user's profile Visit poster's website
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: Re: How to change the menu item name?
Posted: Mon May 11, 2009 5:03 pm
Reply with quote

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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexHelp All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.4876 seconds with 19 DB Queries in 0.1722 seconds
Memory Usage: 2.99 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy