Durango Posted July 8, 2015 Posted July 8, 2015 Hello,We have a forum in french, and like in spanish or other latin languages we have accents in forum titles like : "Réseaux sociaux" which gives a weird url :/communaute/forum/67-r%C3%A9seaux-sociauxWhat we would like to have is :/communaute/forum/67-reseaux-sociauxHow could we get that ? as it is much better to share the second url than the first one aboveTx for your help !
ABGenc Posted July 8, 2015 Posted July 8, 2015 I am using the following mod . If the characters are not within mod I believe @Ilya Hoilik may help.
Ilya Hoilik Posted July 8, 2015 Posted July 8, 2015 Yes, I can include support for any languages. I need a list of letters (which differ from letters in English) in your language and relevant English letters for doing this.For example, for Russian it is:А - a Б - b В - v Г - g Д - d ... Ш - sh Щ - shh
Durango Posted July 8, 2015 Author Posted July 8, 2015 Hi Ilya ! wow congrats for your plugin ! so basically in french two letters with accents are very common : à and é but just in case here is a good list : à - a â - a ç - c é - e è - e ê - e ï - i î - i ô - o û - u and the same but in capital letters EDIT : i just found a nice code, maybe using this would be easier for you : function removeaccents($string) { $string= strtr($string, "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ", "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn"); return $string; } this has the advantage to work for the following languages : French, Italian, Spanish tell me if you need any other information, tx a lot
Durango Posted July 14, 2015 Author Posted July 14, 2015 Tx a lot nice job i have replied on the plugin page
Recommended Posts
Archived
This topic is now archived and is closed to further replies.