Translating the search page

Top  Previous  Next

You can modify the text that appears on the search page by editing the Zoom Language Files (.ZLANG files) from the Configuration window (under the “Languages” tab). Here you can edit or create new ZLANG files, or select one of the default language files to use.

lightbulb

Note: Before you start editing ZLANG files, you should first create your own language file (eg. “MyFrench.zlang”). This is because the default files that come with Zoom (English.zlang, French.zlang, etc.) will be overwritten when you re-install the software, or upgrade to a new version. If you do make all your changes in the default file, and you re-installed Zoom and find that your changes have been overwritten, you can find a backup of them in the “lang-backup” folder under your Zoom program directory.

The ZLANG file format is simply a line-by-line entry, beginning with a “STR_” key word (such as “STR_FORM_SEARCHFOR”), followed by an equals sign, and the actual text to be used. You must always leave the “STR_” part of the line intact, and only modify the text after the equals sign. The following is an example of a ZLANG file.

STR_FORM_SEARCHFOR=Search for:

STR_FORM_SUBMIT_BUTTON=Submit

STR_FORM_RESULTS_PER_PAGE=Results per page:

STR_FORM_CATEGORY=Category:

STR_FORM_CATEGORY_ALL=All

STR_FORM_MATCH=Match:

STR_FORM_ANY_SEARCH_WORDS=any search words

STR_FORM_ALL_SEARCH_WORDS=all search words

 

Note that an entry can not span multiple lines (so you should disable “Word Wrap” in Notepad). Also, the STR key words are predefined and can not be modified. Below is an extract of a ZLANG file.

Use the “English.zlang” default file as your reference for text which can be translated, and the overall format of the file.

lightbulb

Note: All ZLANG files must be in Unicode encoding. You can save a file in Unicode with Notepad, by clicking on the File menu, and selecting “Save As…”. Locate the ‘Encoding” dropdown menu at the bottom of the Save As file window. Select “Unicode” here, and save your file.