Jump to content

hebrew url friendly not working


meytalm

Recommended Posts

  • 1 month later...

The internal function that does so is Tools::replaceAccentedChars($str).

 

This function applies a list of mapping from utf8 characters to some ascii equivalent, ascii been only supported in url for good indexing.

If you want this function to be able to handle hebrew language you should provide the mapping for the team to inject that in the code - mapping is a pair of utf8 value to ascii value.

 

It could also be related to missing mb_strtolower from your PHP core, or missing locales in your server.

 

You can still any time override the simplified url generated by prestashop. This value should still be valid ascii only.

 

Best,

(d)oekia

Link to comment
Share on other sites

mapping... I don't know nothing about hebrew so let's try explain with another language.

 

In French we write "café" and this can be under circonstances be written "cafe" - that is not real french but french people can understand it however.

In German "groß" can be written "gross" - by the way both spelling officialy exists - german never break rules they create a new one :D

 

So mapping will be é => e, ß => ss

Of course in PS there is not only thoses 2 characters they are tons.

So if you have some hebrew characters that officialy or semi-officialy have transposition in plain ASCII, build the list and submit that to the team, they'll certainly be happy to integrate most if not all. They don't get so much people with hebrew knowlege.

 

best,

(d)oekia

Link to comment
Share on other sites

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
×
×
  • Create New...