The sequel to my Ubercart i18n adventures

It has been a while since I last wrote about Ubercart, but I'm still working on some multi-lingual stores for clients. I have opted for disabling the stock Catalog module and using Views instead since Views is so much more flexible and easier to theme. I have a very simple setup; some terms in a vocabulary that is localized per-term, and then a custom View that takes a term name as an argument and returns nodes belonging to that term and displays them in a nicely themed grid.

Recently, I ran into an irritating issue where the View would return results from the wrong language if two languages had the same term name. After hours of investigating (and learning all about how to implement View handlers and plugins), it seems that the stock taxonomy term argument validator for Views cannot differentiate between terms of the same name in different languages. So if multiple languages contain the term "Stewart Adam" for example, the view will just returns nodes for whichever term (and therefore language) comes first in the database query. To be fair, the i18n module adds the "language" column to the term_data table so it's not really View's fault... Nonetheless, I was surprised that the i18n module had not already corrected this issue.

I've just reported Drupal issue #832100, Taxonomy term argument validator should not validate terms defined in other languages that includes a fix to the problem by limiting query for term names to terms within the active language. It's not the greatest way to go about solving it since it essentially just copies the original validator and makes two tiny modifications in the SQL query, but it's better then modifying the View module directly.



Thanks for this wonderful article. Can i post your article in my blog with a link to this article original in exchange? Plz confirm . Thanks one more time.

Hi clealayjorres,

I do not mind if you would like to post about this code/tutorial on your blog, but I would appreciate it if you could reference my work (list my name & link to this page). If you'd like you may reply with the URL to your post :)


Hi Firewing1,
Many thanks for the great posts you wrote and put online. I used them extensivly.
Put quite a lot of it, and some more into a new module
Hope to get some comments or support from you so we can finally solve the whole Ubercart translation thing.

Many thanks

Hi Mark,

That is awesome! I took a look at some of the code today and saw that you've already started tackling many of the things I had on my todo list.

Until Drupal Commerce for 7.x comes out I will be sticking with Ubercart 2.x on Drupal 6 so I will be testing and adding functionality to the i18n code for a little while... Would you be interested having me become a co-maintainer for the module?


Hi Stewart,

Perfect! Just added you as a co-maintainer. Will write some problems in the issue queue fir things needing fixes for a stable release. Just got found that making nice pdf quotations for my site (Views PDF) took a bigger effort then expected and was planning on doing those later.

Not sure yet what I will do after I finish the 6.x upgrade of the site. One thing I currently like about Ubercart and dislike on commerce is the whole attribute handling. My products are customizable and so each product can have easily 20 or 30 different versions, or SKU's. Commerce so far wants me to create them one-by-one as complete products...

I will be off for the weekend, so have a nice time playing with the module!


I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. facebook

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. namlinhchi

This is the kind of data I've long been attempting to discover. Much thanks to you for composing this data. coupon

Much thanks to you such a great amount for sharing this incredible blog.Very motivating and accommodating too.Hope you keep on sharing a greater amount of your ideas.I will love to peruse. loft conversions london

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future... Plumbers bexleyheath

If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content.

I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. songs

I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You. Whatsapp Love Status

Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. things to add to smoothies for weight loss

I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. streaming vf

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. VicoVation Opia2 review

I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight.

Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work.

Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work.

You finished a couple fine focuses there. I did an inquiry on the subject and discovered about all persons will oblige with your online journal. this website

I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues. christmas presents for dad

Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!!

Hey, please work on it soon. I want to read the next part. I heard you were about to release it from uk rush my essay service, but I wasn't sure, are you?

I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content. best foot and calf massager

Much obliged to you again for all the information you distribute,Good post. I was extremely keen on the article, it's entirely motivating I ought to concede. I like going to you site since I generally go over fascinating articles like this one.Great Job, I enormously acknowledge that.Do Keep sharing! Respects, best web hosting company in bangladesh

Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. North Fork Wine Tours

This is very appealing, however , it is very important that will mouse click on the connection: How To Trigger a Man's Hero Instinct

Thanks for providing recent updates regarding the concern, I look forward to read more.

Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information.

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.FORWARD FOR ADDITIONAL UPDATES!

Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks Pet Transportation

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.FORWARD FOR ADDITIONAL UPDATES

I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always searching like this type blog post. I hope I will see again..

Best web hosting in Bangladesh

This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself.. Hero Instinct

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it,