Plogger Support Forum - plog_tr with intergration with wordpress Thu, 28 Mar 2024 22:02:00 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 plog_tr with intergration with wordpress http://www.plogger.org/forum/comments.php?DiscussionID=3441&Focus=13479#Comment_13479 http://www.plogger.org/forum/comments.php?DiscussionID=3441&Focus=13479#Comment_13479 Wed, 17 Nov 2010 10:17:03 +0000 2cool4school
I've successfully intergrated plogger into wordpress, <b>not using Version 1.0 RC1</b> but the older version. The gallery works fine but the problem i've got is in the /admin area. In order to get the galler working I had to deleted the following part from plogger-globals.php

<code>
// If the mo file does not exist or is not readable, or if the locale is
// en_US, do not load the mo.
if ( is_readable($mofile) && ($locale != 'en_US') ) {
$input = new FileReader($mofile);
} else {
$input = false;
}

$l10n = new gettext_reader($input);

// Return a translated string.
function plog_tr($text) {
global $l10n;
return $l10n->translate($text);
}
</code>

Otherwise the gallery would just bug out. With this deleted the /admin area returns Fatal error: Call to undefined function plog_tr() in ...... Thats pretty logic because ive deleted the function. So how do I solve this? One way would be to manually delete plog_tr from every file, but i've doubt that is the best soulotion. Any tips on how i can remove the plog_tr function so the admin area works?]]>
plog_tr with intergration with wordpress http://www.plogger.org/forum/comments.php?DiscussionID=3441&Focus=13484#Comment_13484 http://www.plogger.org/forum/comments.php?DiscussionID=3441&Focus=13484#Comment_13484 Thu, 18 Nov 2010 18:58:51 +0000 2cool4school