Page tree

This page describes the interface language file.

Overview

The interface language file is a .php file, so it must follow the syntax rules of the PHP programming language. The language file is a sequence of array element definitions.

Each definition contains two parts. The text that should be translated is the text on the right side of the equal sign (=) and enclosed in single quotes (').

Example of an element definition:

$msg_arr['btn_help'] = 'Help';

Where btn_help is called a keyword and Help is the text that must be translated.

Interface language file structure

The content of a language file is structured in several sections. Each section corresponds to a type of element of the DNS Manager interface. Here is an alphabetical list of these sections:

//button names
//context help messages
//HTML alert titles and bodies
//JavaScript messages
//left frame section
//legend section
//soap
//tab titles
//table headers
//text labels
//warning and error messages

Header section

The header section is required in all language files.

Each language file should contain a header with the following information:

  • The language of the translation.
  • The person responsible for the translation of the file.
  • The email address of the person responsible for the translation.
  • The DNS Manager version number for which the language file was created.

Here is an example of a header for an interface language file in English:

// Local file for English language
// Maintained by 4PSA
// docs@4psa.com
// DNS Manager x.x.x

Context help messages section

This section contains the help messages displayed in the Help area located in the left frame of every DNS Manager interface. The array keys for the entries in this section begin with different keywords, as described below:

  • b_ for entries containing the help message displayed when the mouse pointer moves over a button;
  • i_ for entries containing the help message displayed when the mouse pointer moves over an icon;
  • l_ for entries containing the help message displayed when the mouse pointer moves over a link;

HTML alert titles and bodies section

This section contains the text displayed in HTML alerts. A HTML alert is a error or warning message displayed at the top of the page. The array keys for alert titles begin with the keyword mt_. The array keys for alert titles begin with the keyword mb_.

The JavaScript Messages Section This section contains the text related to the Javascript sections of the DNS Manager. The array keys for the entries in this section begin with the keyword java_, followed by the message description.

Left frame section

This section contains the entries in the left frame area of the DNS Manager. The array keys for the entries in this section begin with the keyword lf_, followed by the message description.

Legend section

This section contains the text displayed in the text areas surrounded by a border in the main area of the DNS Manager interface. The array keys for the entries in this section begin with the keyword lg_, followed by the message description.

SOAP section

This section contains the text used in SOAP API messages. The array keys for the entries in this section begin with the keyword soap_.

Tab titles Section

This section contains the titles of tabs in a multi-tab page. The array keys for the entries in this section begin with the keyword tab_.

Table headers section

This section contains the text displayed in the header of any table that appears in the DNS Manager interface. The array keys for the entries in this section begin with the keyword header_, followed by the message description.

Text labels section

This section contains the text displayed in the main area of the DNS Manager interface. This text is not included in any other section of the language file (independent text). The array keys for the entries in this section contain a short description of the text that will be displayed.

Warning and error messages section

This section contains warning and error messages displayed in the main area of the DNS Manager interface. The array keys for the entries in this section contain a short description of the error that was encountered.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.