Forums / Setup & design / custom menu tab in admin area

custom menu tab in admin area

Author Message

Łukasz Serwatka

Sunday 23 January 2005 5:44:25 am

Hi,

This is from menu.ini file

# A list of the current navigation parts and their names
# Each entry consists of the identifier as key and the name
# as value.
# Note: If you wish to have the name translatable you will
#       need to create a dummy PHP file with the following in it
# ezi18n( 'kernel/navigationpart', 'Custom navigation', 'Navigation part' );
# This will cause the ezlupdate to include it in the .ts file.
[NavigationPart]
Part[ezcontentnavigationpart]=Content structure 

Where (folder?) i must create dummy PHP file? What should be name of this file? I would like to create new tab in top menu which is translatable.

Thanks for any tips

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Łukasz Serwatka

Monday 24 January 2005 12:30:55 am

*Bump*

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jan Borsodi

Monday 24 January 2005 12:42:08 am

The PHP file must be available to the ezlupdate program. The best way is to place a PHP file in your extension (if are you using one), then run ezlupdate with the <i>-e</i> option.
http://ez.no/ez_publish/documentation/development/extensions/translation

For example in <i>extension/myextension/classes/i18n.php</i>

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Łukasz Serwatka

Monday 24 January 2005 12:50:19 am

Hi Amos,

Thank you for your reply. I would like to add one or tabs which are using already existing phrases in trnaslation.ts file.

Tab "Templates" which is linked to visual/templatelist and already translated in /design/admin/parts/visual/menu.

What NavigationPart I should use or If I must use NavigationPart?
Part[????]=???

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jan Borsodi

Monday 24 January 2005 1:21:08 am

The INI entry is related to the display name for the navigation part (for a section) and not the top menu name.
The top menu entry itself cannot be translated at this time.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Łukasz Serwatka

Monday 24 January 2005 1:30:49 am

Hi,

Thanks Amos. This was what i realy need to known

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog