forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgettext.php
154 lines (142 loc) · 3.64 KB
/
gettext.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
// Start of gettext v.
/**
* Sets the default domain
* @link https://php.net/manual/en/function.textdomain.php
* @param string $text_domain <p>
* The new message domain, or <b>NULL</b> to get the current setting without
* changing it
* </p>
* @return string If successful, this function returns the current message
* domain, after possibly changing it.
* @since 4.0
* @since 5.0
*/
function textdomain ($text_domain) {}
/**
* Lookup a message in the current domain
* @link https://php.net/manual/en/function.gettext.php
* @param string $message <p>
* The message being translated.
* </p>
* @return string a translated string if one is found in the
* translation table, or the submitted message if not found.
* @since 4.0
* @since 5.0
*/
function gettext ($message) {}
/**
* Lookup a message in the current domain
* @link https://php.net/manual/en/function.gettext.php
* @param string $message <p>
* The message being translated.
* </p>
* @return string a translated string if one is found in the
* translation table, or the submitted message if not found.
* @since 4.0
* @since 5.0
*/
function _ ($message) {}
/**
* Override the current domain
* @link https://php.net/manual/en/function.dgettext.php
* @param string $domain <p>
* The domain
* </p>
* @param string $message <p>
* The message
* </p>
* @return string A string on success.
* @since 4.0
* @since 5.0
*/
function dgettext ($domain, $message) {}
/**
* Overrides the domain for a single lookup
* @link https://php.net/manual/en/function.dcgettext.php
* @param string $domain <p>
* The domain
* </p>
* @param string $message <p>
* The message
* </p>
* @param int $category <p>
* The category
* </p>
* @return string A string on success.
* @since 4.0
* @since 5.0
*/
function dcgettext ($domain, $message, $category) {}
/**
* Sets the path for a domain
* @link https://php.net/manual/en/function.bindtextdomain.php
* @param string $domain <p>
* The domain
* </p>
* @param string $directory <p>
* The directory path
* </p>
* @return string The full pathname for the <i>domain</i> currently being set.
* @since 4.0
* @since 5.0
*/
function bindtextdomain ($domain, $directory) {}
/**
* Plural version of gettext
* @link https://php.net/manual/en/function.ngettext.php
* @param string $msgid1
* @param string $msgid2
* @param int $n
* @return string correct plural form of message identified by
* <i>msgid1</i> and <i>msgid2</i>
* for count <i>n</i>.
* @since 4.2.0
* @since 5.0
*/
function ngettext ($msgid1, $msgid2, $n) {}
/**
* Plural version of dgettext
* @link https://php.net/manual/en/function.dngettext.php
* @param string $domain <p>
* The domain
* </p>
* @param string $msgid1
* @param string $msgid2
* @param int $n
* @return string A string on success.
* @since 4.2.0
* @since 5.0
*/
function dngettext ($domain, $msgid1, $msgid2, $n) {}
/**
* Plural version of dcgettext
* @link https://php.net/manual/en/function.dcngettext.php
* @param string $domain <p>
* The domain
* </p>
* @param string $msgid1
* @param string $msgid2
* @param int $n
* @param int $category
* @return string A string on success.
* @since 4.2.0
* @since 5.0
*/
function dcngettext ($domain, $msgid1, $msgid2, $n, $category) {}
/**
* Specify the character encoding in which the messages from the DOMAIN message catalog will be returned
* @link https://php.net/manual/en/function.bind-textdomain-codeset.php
* @param string $domain <p>
* The domain
* </p>
* @param string $codeset <p>
* The code set
* </p>
* @return string A string on success.
* @since 4.2.0
* @since 5.0
*/
function bind_textdomain_codeset ($domain, $codeset) {}
// End of gettext v.
?>