Bug in "sanitizeFileSystem"? - ß / ss / sz
Permalink
I am talking about the function "sanitizeFileSystem" in the "TextHelper" class (/concrete/helpers/text.php).
Currently the function translates "ß" in "sz".
In Germany we write "ss", if a "ß" is not avaible. I think this should be changed.
Read more about "ß" here:http://en.wikipedia.org/wiki/ß...
Currently the function translates "ß" in "sz".
In Germany we write "ss", if a "ß" is not avaible. I think this should be changed.
Read more about "ß" here:http://en.wikipedia.org/wiki/ß...
maybe it would be an idea to check the LOCALE constant and react in the correct way?
if LOCALE is "de_DE" we change "ß" to "ss".
For "sv_SE" we change ä (etc.) to a ...
etc. etc.
What do you think about that?
if LOCALE is "de_DE" we change "ß" to "ss".
For "sv_SE" we change ä (etc.) to a ...
etc. etc.
What do you think about that?
Next problem... "&" is translated to "and"... in German it would be "und" ... in Swedish "och"... etc.
How can we solve this?
How can we solve this?
I agree about the ß character - I've changed in the SVN
BTW - posting with a separate account to test monitoring.
BTW - posting with a separate account to test monitoring.
Hello andrew!
What do you think about the idea to decide which version of "and", "und", "och" etc. is used by checking the LOCALE constant?
The same with "ä, ö, ü etc."?
Best wishes,
Marc
What do you think about the idea to decide which version of "and", "und", "och" etc. is used by checking the LOCALE constant?
The same with "ä, ö, ü etc."?
Best wishes,
Marc
Yeah a custom handling of the sanitize function would be great!
Maybe the easies way would be as an array in the config/site-file as a CONSTANT?
Then its up to the developer to make it look right. Shouldn't take to much time to implement ether.
Maybe the easies way would be as an array in the config/site-file as a CONSTANT?
Then its up to the developer to make it look right. Shouldn't take to much time to implement ether.
That would make sense. Obviously I'm a little out of my element here so it'd be great if the community had some thoughts about the way those ought to ideally be displayed for the different locale.
Easy to change though. Just extend the helper and change the javascript functions used when a new page is created.