mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
2010-10-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: added hook for "user translation" in function "__". Pending task: #3057674 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3423 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c5d7120674
commit
ace84dc4b0
@ -1,3 +1,10 @@
|
|||||||
|
2010-10-19 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_db.php: added hook for "user translation" in function
|
||||||
|
"__".
|
||||||
|
|
||||||
|
Pending task: #3057674
|
||||||
|
|
||||||
2010-10-19 Sergio Martin <sergio.martin@artica.es>
|
2010-10-19 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* godmode/massive/massive_edit_modules.php: Fixed a jquery typo
|
* godmode/massive/massive_edit_modules.php: Fixed a jquery typo
|
||||||
|
@ -2977,6 +2977,24 @@ echo __('Hello, %s!', $user);
|
|||||||
function __ ($string /*, variable arguments */) {
|
function __ ($string /*, variable arguments */) {
|
||||||
global $l10n;
|
global $l10n;
|
||||||
|
|
||||||
|
$extensions = get_extensions();
|
||||||
|
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
if ($config['enterprise_installed']) {
|
||||||
|
if (isset($config['translate_string_extension_installed']) && $config['translate_string_extension_installed'] == 1) {
|
||||||
|
if (array_key_exists('translate_string.php', $extensions)) {
|
||||||
|
enterprise_include_once('extensions/translate_string/functions.php');
|
||||||
|
|
||||||
|
$tranlateString = get_defined_translation($string);
|
||||||
|
|
||||||
|
if ($tranlateString !== false) {
|
||||||
|
return $tranlateString;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($string == '') {
|
if ($string == '') {
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user