Problems with Clean URLs an German Umlauts

fhelmschrott - May 23, 2008 - 07:44
Project:Drigg
Version:5.x-1.32
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Hi,

i guess this problem also translates into other languages special characters. It looks like with Category- and Scoop-URL i18n-ascii.txt-Translation of german umlauts doesn't work at all and with tags they're not even running to the drigg_pathauto_cleanstring() function.

Is there any way around this and therefore any way to make the Clean-URL stuff working with special characters? I totally switch of and uninstalled pathauto and deleted all aliases to make sure nothing conflicts.

Any idea how this could be made running?

+P.s.: Sorry for double posting in the forums over at drigg-code.org.

#1

mercmobily - May 23, 2008 - 10:31

Hi,

I am not very good with multi-lingual sites and foreign languages.
I will need a lot more information from you (see: a *lot*).
Specifically, I need to be able to reproduce the problem *exactly*, with a step by step, dumb-proof list of things to do and write.
Also, please specify EXACTLY what the problem is (believe it or not, people often forget that or expect me to work that out!)

Even then, I might have trouble understanding the problem and dealing with it... but I can try!

Let's keep it here - please put a link to this issue in a comment in the forums.

Bye,

Merc.

#2

fhelmschrott - May 24, 2008 - 04:30

The link in the forums is already there.

To reproduce the problem do a standard installation and rename the i18n-ascii.example.txt in modules/drigg to i18n-ascii.txt.

In my understanding this should replace special characters from different languages by the "standard character replacements" like defined in the file. The German Umlauts are there ( i validatet that ) and they are like ä = ae, ü = ue, ö = oe (and so on).

So Category names, Scoop Names and Tags should be replaced to work in the url. So the Link to the "Persönlich"-Category should go to /Persoenlich. Unfortunately it doesn't. It goes to /Pers_nlich.

I reviewed drigg/helper.inc and found the function drigg_pauthauto_cleanstring() which is 'stolen' from pathauto (which works well on all my servers btw.). On the first line of the function the i18n-ascii.txt get's loaded and the strtr() function should replace the characters in my understanding. Unfortunately i'm not a php coder at all which makes me unable to debug this. The cleaning stuff after that seems to work fine which makes the Persönlich go to Pers_nlich as it replaces everything which isn't A-Z character with a separator. It's just that translation-Stuff that doesn't work.

Sidenote: For the tags the cleanstring-function isn't even called (as it looks like). There Tags with Umlauts get completely weird. "Tätowierung" (which meens Tattoo) leads to tag/t%25C3%25A4towierung (just url encoded by the browser.

I hope now everything looks a bit clearer.

#3

mercmobily - May 24, 2008 - 06:31

Hi,

I am going to go travelling. I will be away for 3 days. When I get back, I would like to find what I asked for:

"Specifically, I need to be able to reproduce the problem *exactly*, with a step by step, dumb-proof list of things to do and write. <---- KEY SENTENCE
Also, please specify EXACTLY what the problem is (believe it or not, people often forget that or expect me to work that out!)"

A point list of steps would be much appreciated. Then, I will be able to look at the bug.

Merc.

#4

mercmobily - May 27, 2008 - 06:34
Priority:critical» normal
Status:active» won't fix

Hi,

I am back, and there is no sign of what I requested.
I don't mean to be picky, but I really need to be given adequate information.
Please don't add to this issue. If you are keen on getting t fixes, open a new one with the instructions I requested.

Merc.

 
 

Drupal is a registered trademark of Dries Buytaert.