Übersetzungen für Frontenduser-Plugins werden nicht geladen
Verfasst: Mo 2. Jan 2006, 14:39
Bin durch diesen Post:
http://www.contenido.org/forum/viewtopi ... 6618#66618
auf einen Bug gestoßen. Die Übersetzungsdateien für die Frontenduser-Plugins werden zurzeit gar nicht geladen. Beheben lässt sich das in der "include.frontend.user_edit.php" durch folgende Ersetzung ab Zeile 161 von:
in:
In der Datei "include.frontend.user_menu.php" muss analog ab Zeile 47 folgendes ersetzt werden:
durch:
http://www.contenido.org/forum/viewtopi ... 6618#66618
auf einen Bug gestoßen. Die Übersetzungsdateien für die Frontenduser-Plugins werden zurzeit gar nicht geladen. Beheben lässt sich das in der "include.frontend.user_edit.php" durch folgende Ersetzung ab Zeile 161 von:
Code: Alles auswählen
/* Check out if there are any plugins */
if (is_array($pluginOrder))
{
foreach ($pluginOrder as $plugin)
{
if (function_exists("frontendusers_".$plugin."_getTitle") &&
function_exists("frontendusers_".$plugin."_display"))
{
# check if user belongs to a specific group
# if true display frontenduser plugin
Code: Alles auswählen
/* Check out if there are any plugins */
if (is_array($pluginOrder))
{
foreach ($pluginOrder as $plugin)
{
i18nRegisterDomain ("frontendusers_".$plugin, $cfg['path']['contenido'].$cfg["path"]['plugins']."frontendusers/".$plugin."/locale/");
if (function_exists("frontendusers_".$plugin."_getTitle") &&
function_exists("frontendusers_".$plugin."_display"))
{
# check if user belongs to a specific group
# if true display frontenduser plugin
Code: Alles auswählen
if ($bUsePlugins == true)
{
if (is_array($cfg['plugins']['frontendusers']))
{
foreach ($cfg['plugins']['frontendusers'] as $plugin)
{
if (function_exists("frontendusers_".$plugin."_wantedVariables") && function_exists("frontendusers_".$plugin."_canonicalVariables"))
{
$aVariableNames = call_user_func("frontendusers_".$plugin."_canonicalVariables");
Code: Alles auswählen
if ($bUsePlugins == true)
{
if (is_array($cfg['plugins']['frontendusers']))
{
foreach ($cfg['plugins']['frontendusers'] as $plugin)
{
i18nRegisterDomain ("frontendusers_".$plugin, $cfg['path']['contenido'].$cfg["path"]['plugins']."frontendusers/".$plugin."/locale/");
if (function_exists("frontendusers_".$plugin."_wantedVariables") && function_exists("frontendusers_".$plugin."_canonicalVariables"))
{
$aVariableNames = call_user_func("frontendusers_".$plugin."_canonicalVariables");