__(’You have %s unread messages’, $number);
Note: Check out the Internationalization & Localization section for more information.
__c(string $msg, integer $category, mixed $args = null)
Note that the category must be specified with a numeric value, instead of the constant name. The
values are:
•0 - LC_ALL
•1 - LC_COLLATE
•2 - LC_CTYPE
•3 - LC_MONETARY
•4 - LC_NUMERIC
•5 - LC_TIME
•6 - LC_MESSAGES
__d(string $domain, string $msg, mixed $args = null)
Allows you to override the current domain for a single message lookup.
Useful when internationalizing a plugin: echo __d(’PluginName’, ’This is my
plugin’);
__dc(string $domain, string $msg, integer $category, mixed $args = null)
Allows you to override the current domain for a single message lookup. It also allows you to specify
a category.
Note that the category must be specified with a numeric value, instead of the constant name. The
values are:
•0 - LC_ALL
•1 - LC_COLLATE
•2 - LC_CTYPE
•3 - LC_MONETARY
•4 - LC_NUMERIC
•5 - LC_TIME
•6 - LC_MESSAGES
__dcn(string $domain, string $singular, string $plural, integer $count, integer $category, mixed
$args = null)
Allows you to override the current domain for a single plural message lookup. It also allows you to
specify a category. Returns correct plural form of message identified by $singular and $plural for
count $count from do