Zbigniew Szalbot Posted May 12, 2011 Share Posted May 12, 2011 Hello,I am using Presta 1.4.1 and a few languages. I have noticed the following problem - even when I choose a different language to view the site in, the categories still sort according to their English names, not to the names that I have translated for that language. For example, [en] Albanian is [pl] albański, so no problem but [en] English is translated in [pl] as angielski. So when I change the site to Polish I would like the English category to appear at the top of the list (since angielski stars with a letter "a") but it is not sorted that way. Is there a way to change it? It seems a very basic necessity to sort categories depending on a language. Thank you!Zbigniew Szalbot Link to comment Share on other sites More sharing options...
Zbigniew Szalbot Posted May 13, 2011 Author Share Posted May 13, 2011 Hi,I am wondering what is the solution to this problem. It seems pretty basic. I am stuck because I need to translate categories into other languages and then in those languages they look as if they were randomly put together and not sorted alphabetically.Thank you! Link to comment Share on other sites More sharing options...
Zbigniew Szalbot Posted May 13, 2011 Author Share Posted May 13, 2011 Actually, I have modified an sql query inside modules/blockcategories/blockcategories.phpfrom ORDER BY `level_depth` ASC, c.`position` ASC') into ORDER BY `level_depth` ASC, cl.`name` ASC') Sorting is now correct but this does not solve the real problem. I hate touching sources as this means issues while updating. Any better fix, please? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now