| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4703|Reply: 0
Collapse the left

How to translate custom navigation in main menu

[Copy link]

 Russia

Post time: 2011-12-27 08:25
| Show all posts |Read mode
How to customize main menu for different languages?

This is a temporary solution.
(For the future I want to ingrate this into Admin CP)

1) Go to PhpMyAdmin.

2) Open pre_common_navs table.

FOR EACH MENU LINK:

3) Find your navigation row

4) Add/Edit the 'identifier' field, i.e. set it to "my_cool_nav01"

5) Open for edit the source/language/XX/lang_template.php

6) Add a new line for your navigation link:
   'nav_my_cool_nav01'   => 'My Cool Link',

7) Go to 3) for the next navigation link

8) After finishing just clean the cache from Admin CP.


P.S.
Starting from Revision #297 you can edit the navigation link identifier in AdminCP.
Go to AdminCP -> Styles - > Navigation -> ...



This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-05-03 15:37 GMT+3 , Processed in 0.017731 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list