__ngettext

函式
__ngettext ( $args )
相關
  • _n()
定義位置
相關方法
__ngettext_noopwp_get_httpget_the_excerptget_termget_site
引入
1.2.0
棄用
2.8.0

__ngettext: 這是一個用於翻譯複數字符串的函式。它接收一個單數和複數的字串,以及一個數字。如果數字是1,它返回單數字符串,如果數字是其他,它返回複數字符串。

根據金額檢索複數或單數形式。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
_deprecated_function( __FUNCTION__, '2.8.0', '_n()' );
return _n( ...$args );
}
function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore _deprecated_function( __FUNCTION__, '2.8.0', '_n()' ); return _n( ...$args ); }
function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
	_deprecated_function( __FUNCTION__, '2.8.0', '_n()' );
	return _n( ...$args );
}

常見問題

FAQs
檢視更多 >