Loading...
 
Features / Usability

Features / Usability


Re: How do I change the name "Categories" to something more appropriate for my website?

posts: 4656 Japan

Probably the easiest way to do this is to use a custom language file. Since all of TikiWiki's interface terms are (or can be) translated, you can specify what you want the English translations of "Categories" and "Show categories" to be at your site. The same method can be used for any of the supported languages, of course.

If you look at this file: lang/fr/custom.php_example, you can see how a Tiki language file looks. Note that each line of terms contains two sets of terms in quotation marks. The first is the term to be translated, the second is the translation that you want to appear, and they're seperated by the equal sign and greater-than character, and followed by a comma.

Lines beginning with double slashes in the example file actually won't be used; start your lines with no slashes in order for your terms to be used. (Sorry, but I don't know what your knowledge of code is.)

So copy the example file or make a new file with the same content and save it as custom.php. It needs to be placed in the lang/en/ directory, to be used for English. (Its path will be lang/en/custom.php.)

In the place of, or just following, the double-slash lines in the example file, your new lines will be:

"Categories"=>"Term X",
"Show categories"=>"Phrase Y",

where Term X and Phrase Y are the terms that you want to be used at your site. Be sure to use a text editor that will save the file with utf-8 encoding. If other character encoding is used, it may cause a fatal error at your site. Well, if this happens by any chance, just remove or rename your custom.php and things will be back to normal.

-- Gary

There are no comments at this time.