A problem with Pretty URLs and German Umlauts
PermalinkHowever, if the first letter of a page name is an Umlaut like in "Übung", it will be converted into ".../bung" instead of ".../uebung" as it should be.
Is this a bug, or do i have to tweak the .htaccess to achieve the correct behaviour?
Michael
cool, thank you for that information!
Now i just tried to copy an edited version of that file to the helpers directory at the root, believing it would simply override the one in the concrete/helpers directory, but unfortunately this leads to a
Fatal error: Cannot redeclare class TextHelper in /.../helpers/text.php on line 20
Obviously it's not enough to only copy text.php in the helpers directory, there must be more files/directories needed... Can you imagine which ones?
Thank you,
Michael
When adding a new page, ä, ö, ü (uppercase and lowercase) in page names are now transformed to a, o, u instead of ae, oe, ue, as it should be.
But that is not how it should be. For the German special characters it 'has to be' like that:
ä --> ae
ö --> oe
ü --> ue
ß --> ss
The only letter that's handled the right way is the "ß".
On the one hand it's disturbing for me as a native speaker and on the other hand I think I read some articles, that in therms of SEO it is important, that the "Umlaut" characters are converted the right way.
So, I'm going on hunt for finding the right lines in code, where to alter this. :)=
Cheers,
Sven
Modifying this file should be simple enough. Just remember to copy the file under your root libraries and you can modify the contents however you like :)
Just found me to that spot, but ...
... the correct are conversions set there. Unfortunately the "latin" conversion seems to take effect, not the german. How is that triggered?
Thanks in advance,
Sven
You can also use the multilingual addon. but you must provide the desired language somehow because transliteration rules can vary between languages.
and that "somehow" is how?
Is there any setting in the C5 dashboard or is a lang-attribute in the template's source enough?
Am just testing the "Internationalization"-Addon but still experiencing the issue, that is discussed in the reviews at the moment. But you're right, maybe that could help, because a language is set for a whole branch of a website.
Sven
http://www.concrete5.org/developers/translate/...
I would assume that this is only replacing lowercase characters, so your uppercase letter at the start gets missed and then removed later.
You could either add uppercase variants to this list, or add a strtolower() call in the Page::add() method, where it calls $txt->sanitizeFileSystem()...
Hope that helps,
Jon