Jump to content

Replacing german chars in page-name (url)


Philipp
 Share

Recommended Posts

A suggestion regarding the german "umlauts" ä ö ü .
 
When I create a page and the page name contains a Umlaut like ä, it becomes an "a" in the URL (example: "Jährlich werden" -> "jahrlich-werden"). I know a URL can't contain a ä but normally you just write them as ae instead of ä. The german Wikipedia explains this a little bit, the english not. But maybe some of my fellow german developers here can confirm this.

Example:

 
https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module#L18
 

	public static $defaultReplacements = array(
		'ä' => 'ae',  
		'ö' => 'oe',  
		'ü' => 'ue',  

 
 
And maybe we can add the "ß" to convert to "s" or "ss". It's used for example in "Straße" ( = Street).

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...