Jump to content
TNG Community

Change menu names


kseeker

Recommended Posts

Hi everyone we require a little bit of help with changing the left side menu buttons in template 9. We would like the Histories button to read Biographies but cant work out where we have to change it, we tried changing it in the index.php file but that just made the histories label vanish and left the button blank.

Also with the His side Her side buttons we would like to change it to the surnames of the corresponding sides. Any help would be greatly appreciated.

Thanks

Peter & Susan

Link to comment
Share on other sites

Hi Peter & Susan

Let's deal with your first request ...

Hi everyone we require a little bit of help with changing the left side menu buttons in template 9. We would like the Histories button to read Biographies but cant work out where we have to change it, we tried changing it in the index.php file but that just made the histories label vanish and left the button blank.

TNG is designed to support multiple languages so changing the wording of most things is possible, if you know where to look.

* Firstly check what language you are using. Admin -> Setup -> General -> Language

* Note the "Language Folder". For this example, let's assume it is English-UTF8.

* On your web server, using your FTP tool, go into the TNG folder then Languages, and into the folder of the same name as above. In my case English-UTF8

* Now look for a file cust_text.php

* Download this file to your computer

* Edit it in a text editor (such as Notepad) (Not Word or any other word processor)

* The file is probably only 4 lines long

* Create a blank line directly ABOVE the the line with ?>

* Add the following...

$text['mnuhistories'] = "Biographies";

Note the ; at the end

* Save the file and upload it to the same place on the web server, overwriting the current file.

Now when you visit the site the Histories menu should now show the word Biographies

Link to comment
Share on other sites

* Note the "Language Folder". For this example, let's assume it is English-UTF8.

* On your web server, using your FTP tool, go into the TNG folder then Languages, and into the folder of the same name as above. In my case English-UTF8

* Now look for a file cust_text.php

* Download this file to your computer

* Edit it in a text editor (such as Notepad) (Not Word or any other word processor)

Note that if you are using UTF-8, you should NOT use Microsoft Notepad to edit the file, since it will add the infamous Byte Order Mark (BOM) in front of the <?php for the cust_text.php file and your site will then display a blank page only.

You should use Notepad++ instead.

Link to comment
Share on other sites

You should use Notepad++ instead.

As a newbie I've often resorted to using Notepad++ to search on a term or phrase in order to locate where it is in what file(s). Use:

Search

Find in files

Find what

Replace with [be sure to leave blank unless you you intend to replace what you have in Find in files]

Directory: [tell Notepad++ where to search]

It'll return hits in a separate window.

Works great!

Link to comment
Share on other sites

Thanks daj that worked well :) any ideas on how to change it once you click the button and it goes into the next screen its still showing up as histories there?

And thanks Ken for the info, I read another post on here about Notepad++ and downloaded it, it works great.

Link to comment
Share on other sites

  • 2 years later...

Hi,

I want to change the page-name from Documenten (documents) to Familiewapens (weapons). I have tried a similar thing as described above but nothing happens. My language settings is set to Dutch-UTF8 so I added $text['mnudocumenten'] = "Familiewapens"; to the file cust_text.php.

I have tried several things but with no luck. I also noticed when I change the language settings from Dutch-UTF8 to English-UTF8 nothing happens either (the language on the site does not change, not that I want that )? Could you please let me know how I can change the pagename?

My website is http://vanhovell.com/

Many thanks in advance,

Martijn

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...