merktnichts
07-28-2007, 07:34 AM
I'm referring to this post (http://forums.opengarden.org/showpost.php?p=1510&postcount=64). Sorry for opening a new thread, but as it's not beta related anymore, the old thread would be the wrong place.
On 07-21-2007 I posted a fix for Hayes Beta to display foreign charachters in breadcrumbs properly. Unfortunately this fix seemed to be necessary for the betas only, I just downloaded 1.8.1c and just noticed that it's that fix which seems to break the stuff in the final versions again, just the opposite happens. Now there's too much conversion. The root of the problem was solved somewhere else in the meantime (after 1.8.1a, I guess), as it seems.
Now it displays: "Anfasstüte...e für Deki". It properly displays "Anfasstüte...e für Deki" if I remove the "fix" in 1.8.1c like this (just a revert to the "old" code):
function wfTruncateFilename($filename = '', $length = 16) {
if (strlen($filename) < $length) {
return $filename;
}
$fragmentLength = floor(($length - 3)/2);
$beginFragment = substr($filename, 0, $fragmentLength);
$endFragment = substr($filename, $fragmentLength * -1);
return $beginFragment.'...'.$endFragment;
}
So please trash the fix I posted, cause it seemed to be necessary for the betas only. To test it, just create a page called e.g. "Anfasstütentestseite für Deki" (don't think about the meaning of that page title, it doesn't make sense, but has two umlauts in it) and see how the breadcrumbs get displayed.
Sorry for confusion, I just noticed it today with 1.8.1c, no idea if it broke 1.8.1b as well. IIRC the fix worked ok in 1.8.1 & 1.8.1a. (It wasn't included there.)
On 07-21-2007 I posted a fix for Hayes Beta to display foreign charachters in breadcrumbs properly. Unfortunately this fix seemed to be necessary for the betas only, I just downloaded 1.8.1c and just noticed that it's that fix which seems to break the stuff in the final versions again, just the opposite happens. Now there's too much conversion. The root of the problem was solved somewhere else in the meantime (after 1.8.1a, I guess), as it seems.
Now it displays: "Anfasstüte...e für Deki". It properly displays "Anfasstüte...e für Deki" if I remove the "fix" in 1.8.1c like this (just a revert to the "old" code):
function wfTruncateFilename($filename = '', $length = 16) {
if (strlen($filename) < $length) {
return $filename;
}
$fragmentLength = floor(($length - 3)/2);
$beginFragment = substr($filename, 0, $fragmentLength);
$endFragment = substr($filename, $fragmentLength * -1);
return $beginFragment.'...'.$endFragment;
}
So please trash the fix I posted, cause it seemed to be necessary for the betas only. To test it, just create a page called e.g. "Anfasstütentestseite für Deki" (don't think about the meaning of that page title, it doesn't make sense, but has two umlauts in it) and see how the breadcrumbs get displayed.
Sorry for confusion, I just noticed it today with 1.8.1c, no idea if it broke 1.8.1b as well. IIRC the fix worked ok in 1.8.1 & 1.8.1a. (It wasn't included there.)