If you’re trying to break the language barrier between your customers and the service you are offering, localization will set you on the right path. However, that can be easier said than done when you need to translate your content to multiple languages. At Translation Exchange, we’ve come up with a way to make translation not only easy, but also fast and accurate.
TML SDK for Rails offers a number of ways for telling your Rails application about which language to use for rendering your views. You can use locale parameter, pre-path and pre-domain configurations and even provide custom domains for every language. This post will describe each approach and show you how to configure it in a Rails application using the TML for Rails gem.
Suppose we have a Rails application with a large data set that we need to translate to a few languages. It is important that we store the data in our own database to preserve its integrity and provide internal searching capabilities. So how can we do this without having to invest too much time into building our own translation management platform?
Let’s use a simple Famous Quotes application as an example. This application contains 36,000 famous quotes that we would like to translate to a few languages. Our goal is to store all the quotes and their translations in our database and use crowdsourcing approach – asking users to help us translate the quotes or vote on existing translations. We will use Translation Exchange as a platform that will handle most of the work for us. All we have to do is handle the translation storage.
There are many blogs out there that talk about the process for setting up and distributing a Java library to the Maven Central repository. There are also many tools that claim to be a one click solution for such distribution. But, unfortunately, we did not find a single blog that had the entire process described from start to finish. And before we jump to using 3rd party tools, it is always a good idea to understand the process and see what actually happens behind the scenes.