public class GettextModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
GettextModule() |
Modifier and Type | Method and Description |
---|---|
StringValue |
_(Env env,
StringValue message,
Value[] args)
Alias of gettext().
|
java.lang.String |
bind_textdomain_codeset(Env env,
java.lang.String domainName,
java.lang.String charset)
Sets charset of translated strings that are returned from this domain.
|
Value |
bindtextdomain(Env env,
java.lang.String domainName,
StringValue directory)
Changes root directory of domain.
|
StringValue |
dcgettext(Env env,
java.lang.String domainName,
StringValue message,
int category,
Value[] args)
Same as gettext, but allows overriding of domain and category.
|
StringValue |
dcngettext(Env env,
java.lang.String domainName,
StringValue msgid1,
StringValue msgid2,
int n,
int category,
Value[] args)
Same as ngettext, but allows overriding of domain and category.
|
StringValue |
dgettext(Env env,
java.lang.String domainName,
StringValue message,
Value[] args)
Same as gettext, but allows overriding of current domain.
|
StringValue |
dngettext(Env env,
java.lang.String domainName,
StringValue msgid1,
StringValue msgid2,
int n,
Value[] args)
Same as ngettext, but allows overriding of current domain.
|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions loaded by the module.
|
StringValue |
gettext(Env env,
StringValue message,
Value[] args)
Returns translated string from current domain and default category.
|
StringValue |
ngettext(Env env,
StringValue msgid1,
StringValue msgid2,
int n,
Value[] args)
Returns translated plural string form from current domain and default
category.
|
java.lang.String |
textdomain(Env env,
Value domain)
Changes the current domain.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
public java.lang.String[] getLoadedExtensions()
AbstractQuercusModule
getLoadedExtensions
in interface QuercusModule
getLoadedExtensions
in class AbstractQuercusModule
public java.lang.String bind_textdomain_codeset(Env env, java.lang.String domainName, java.lang.String charset)
env
- domain
- codeset
- public Value bindtextdomain(Env env, java.lang.String domainName, StringValue directory)
env
- domain
- directory
- public StringValue dcgettext(Env env, java.lang.String domainName, StringValue message, int category, Value[] args)
env
- domain
- message
- category
- public StringValue dcngettext(Env env, java.lang.String domainName, StringValue msgid1, StringValue msgid2, int n, int category, Value[] args)
env
- domain
- msgid1
- msgid2
- n
- category
- public StringValue dgettext(Env env, java.lang.String domainName, StringValue message, Value[] args)
env
- domain
- message
- public StringValue dngettext(Env env, java.lang.String domainName, StringValue msgid1, StringValue msgid2, int n, Value[] args)
env
- domain
- msgid1
- msgid2
- n
- public StringValue _(Env env, StringValue message, Value[] args)
env
- message
- public StringValue gettext(Env env, StringValue message, Value[] args)
env
- message
- public StringValue ngettext(Env env, StringValue msgid1, StringValue msgid2, int n, Value[] args)
env
- msgid1
- msgid2
- n
-