# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /opt/apostrophe/1.3
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: apps/frontend/config/app.yml
--- apps/frontend/config/app.yml Base (BASE)
+++ apps/frontend/config/app.yml Locally Modified (Based On LOCAL)
@@ -1,6 +1,7 @@
 # default values
 all:
   a:
+    slugger_class:  aSluggifier
     # If true, there will be a language switcher next to the login/logout button
     i18n_switch: true
     i18n_languages: [en, fr, de, es]
Index: plugins/apostrophePlugin/lib/action/BaseaActions.class.php
--- plugins/apostrophePlugin/lib/action/BaseaActions.class.php Base (BASE)
+++ plugins/apostrophePlugin/lib/action/BaseaActions.class.php Locally Modified (Based On LOCAL)
@@ -201,8 +201,8 @@
     $title = trim($this->getRequestParameter('title'));
     $this->flunkUnless(strlen($title));
 
-    $pathComponent = $title;
-    $pathComponent = strtolower(preg_replace("/[\W]+/", "-", $title));
+    $slugger = sfConfig::get('app_a_slugger_class');
+	$pathComponent = $slugger::sluggify($title,aTools::getUserCulture());
 
     $base = $parent->getSlug();
     if ($base === '/')
Index: plugins/apostrophePlugin/lib/slugger/aSluggifier.class.php
--- plugins/apostrophePlugin/lib/slugger/aSluggifier.class.php Locally New
+++ plugins/apostrophePlugin/lib/slugger/aSluggifier.class.php Locally New
@@ -0,0 +1,7 @@
+class aSluggifier{
+	
+	public static function sluggify($text, $culture="en"){
+		return strtolower(preg_replace("/[\W]+/", "-", $title));
+	}
+
+}
\ No newline at end of file

