MindTouch Developer Center > Deki > FAQ > Visual Customization > How do I...Customize text in the user interface?

How do I...Customize text in the user interface?

Suppose you want to change some of the text in your wiki, such as the default new page content or the error displayed when the user attempts to access a restricted page.  To perform this type of customization:

Find the resource string 

1.  Navigate to the resources directory (Deki Wiki VM:  /var/www/deki-hayes/resources).  Open resources.txt and find the line containing the text you want to change.  For example, the following key (error-baduser) is associated with the error message for inputting a bad username. It is part of the sub-heading Admin.Bans.

[Admin.Bans]
	error-baduser=You input a non-existent username.

Save the resource string 

It is not recommend to make direct changes to resources.txt. When updating in the future, these changes can easily be lost, or cause your system to break (especially on a VM!). To safely override changes, you should instead edit resources.custom.txt (create it if it does not exist, in the same folder as resources.txt). 

Applying your change

Let's say you want to change two keys from the [Admin.Bans] group:

[Admin.Bans]
	error-baduser=You input a user which does not exist! Please check the username again
	tbl-expiry=Ban expiry

Be sure you include the group heading!

If you're localizing Deki Wiki into a new language, you may want check out our Languages page for information on how to save your file correctly.

Tag page
Viewing 1 of 1 comments: view all
How to enter {} in debian linux?
Posted 13:19, 23 Oct 2007
Viewing 1 of 1 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2