forked from GNUsocial/gnu-social
[i18n] Re-add gettext emulation
Removed by mistake with 9cc7df51d6#L50
This commit is contained in:
parent
b1e6b00545
commit
aa153f2ee7
@ -44,6 +44,11 @@ foreach ($LC_CATEGORIES as $key => $name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Emulate if not available.
|
||||||
|
if (!function_exists('gettext')) {
|
||||||
|
require_once('php-gettext/gettext.inc');
|
||||||
|
}
|
||||||
|
|
||||||
if (!function_exists('dpgettext')) {
|
if (!function_exists('dpgettext')) {
|
||||||
/**
|
/**
|
||||||
* Context-aware dgettext wrapper; use when messages in different contexts
|
* Context-aware dgettext wrapper; use when messages in different contexts
|
||||||
|
Loading…
Reference in New Issue
Block a user