Postponed
Project:
himuesgallery
Version:
7.x-1.10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
29 Mar 2011 at 08:55 UTC
Updated:
30 Mar 2011 at 18:42 UTC
German "Umlaute" are explained in the README textfile.
How could I accomplish SWEDISH Umlaute like "Å" / "å" ???????
Comments
Comment #1
bavarian commentedinserting following code in himuesgallery.module did not do the trick for me ...
".aring.",
".Aring.",
".szlig.",
);
"å",
"Å",
"ß",
);
using either .aring. or .Aring. in the pictures filename leaves me with "Å" in both case allthough one of these should provide "å" and the other one "Å"
what could be wrong with my approach?
Comment #2
bavarian commentedbitte bitte bitte !!!!!
Comment #3
himue commentedI'm not at home until friday evenening, so i don't know if i've time to test intensive next days.
But 1 idea:
Don't write
".aring.",
".Aring.",
".szlig.",
);
"å",
"Å",
"ß",
);
in Himuesgallery.module.
Write
".aring.",
".Aring.",
".szlig.",
);
"å",
"Å",
"ß",
);
This works for me. If it don't work for you, you maybe have a "charset-problem" (e.g. maybe you have to use utf8 for your website).
All HTML-character-replacements can be found under http://de.selfhtml.org/html/referenz/zeichen.htm
I'l include all the replacements in next Version of the gallery.
Greetings from
Himue
Comment #4
himue commentedSorry,
in Himuesgallery.module.
Write
Comment #5
bavarian commentedthat's exactly what i did ...
in post#1 and post#3 it looks wrong
but in post#4 that's the way i did it
funny the "umlaute" that came with the module orignially work just fine, it's those 2 extra Umlaute "Å" and "å" that cause the problem
Comment #6
bavarian commentedwhen adding these extra lines ...
doing the adjustments in filename for "Å" and "å" give me both "Å"
Comment #7
himue commentedO.k., I've found it ;-)
Around line 530 in himuesgallery.module you'll find the following line:
$description = str_ireplace($search, $replace, $description);
Delete the "i" in str_ireplace so you have this kine:
$description = str_replace($search, $replace, $description);
But now, you have to write the other replacements exactly as they are defined in the module. E.g. ".green." starts green text but ".Green." (uppercase letter) dosn't.
I hope this works for you. I'll see if there is a way to fix this somewhat elegant.
Greetings from
Himue
Comment #8
bavarian commentedAt a first glance this seems to resolve my issue !
.red.THANK YOU !.-red.