- Drupal 7 Multilingual Sites
- Kristen Pol
- 162字
- 2021-08-06 20:01:00
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "Drupal requires modules and themes to use the t()
function for text that will be displayed in the UI."
A block of code is set as follows:
$conf['locale_custom_strings_en'][''] = array( 'Taxonomy' => 'Categories', 'Taxonomy term' => 'Category term', );
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if (function_exists('i18n_string')) {
$name = i18n_string($key, $name);
}
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click on Save".