HTML Tidy  5.9.15
The HTACG Tidy HTML Project
language_zh_cn.h File Reference

Go to the source code of this file.

Functions

static uint whichPluralForm_zh_cn (uint n)
 This language-specific function returns the correct pluralForm to use given n items, and is used as a member of each language definition. More...
 

Variables

static languageDefinition language_zh_cn
 This structure specifies all of the strings needed by Tidy for a single language. More...
 

Function Documentation

◆ whichPluralForm_zh_cn()

static uint whichPluralForm_zh_cn ( uint  n)
static

This language-specific function returns the correct pluralForm to use given n items, and is used as a member of each language definition.

Variable Documentation

◆ language_zh_cn

languageDefinition language_zh_cn
static
Initial value:
{
TIDY_LANGUAGE, 0, "zh_cn"
},
{ LINE_COLUMN_STRING, 0, "行 %d 列 %d - " },
{ STRING_CONTENT_LOOKS, 0, "文档内容看起来像 %s" },
{ FILE_CANT_OPEN, 0, "无法打开”%s”\n" },
{ TC_STRING_VERS_A, 0, "HTML Tidy 用于 %s 版本 %s" },
{ TC_STRING_VERS_B, 0, "HTML Tidy 版本 %s" },
{
}
}}
@ FILE_CANT_OPEN
Definition: tidyenum.h:1460
@ TC_STRING_VERS_B
Definition: tidyenum.h:1462
@ TC_STRING_VERS_A
Definition: tidyenum.h:1462
@ STRING_CONTENT_LOOKS
Definition: tidyenum.h:1460
@ LINE_COLUMN_STRING
line d column d
Definition: tidyenum.h:1458
@ TIDY_LANGUAGE
Definition: language.h:31
@ TIDY_MESSAGE_TYPE_LAST
Definition: language.h:34
static uint whichPluralForm_zh_cn(uint n)
This language-specific function returns the correct pluralForm to use given n items,...
Definition: language_zh_cn.h:44

This structure specifies all of the strings needed by Tidy for a single language.

Static definition in a header file makes it easy to include and exclude languages without tinkering with the build system.