Software engineering and personal development

Tag: translate

Translate texts from images using Google Translate

Img source: YouTube

Have you gone to a foreign country and all of a sudden there were no English translations,  but were written only in a language that you cannot understand? All the train station guidelines, food descriptions, and everything else that you need so much. You may also hesitate to ask so many people for everything that you do not understand. You simply feel embarrassed and not prefer to ask them anything, as you are not that much comfortable asking so many questions to people that you do not know. Luckily, Google Translate can tremendously help you out.

Continue reading

How to write complex queries using Globalize gem in Rails applications

Img source: railscarma.com

Globalize is one of the most famous gems that is used for translating dynamic content in Rails application. It is really easy to use, and brings a lot of conveniences immediately after you add it in your application. I recently had to do a more complex query using the table added by Globalize generator, and I could not find that much information about ways of doing joins for this newly added table with the one that it corresponds and that translates its attributes. In this article, you can see a short example on how to do that.

Continue reading

Add translations fields in RailsAdmin using rails_admin_globalize_field gem

Img source: Gem’s Github page

In the last post, we saw how we can translate a variety of dynamic contents that we may have in our Rails applications using globalize gem. There is another complementary gem to globalize that can be used to do these translations inside Rails Admin, which make it a lot easier and simpler to insert these translations inside RailsAdmin’s user friendly interface.

Continue reading

Translate dynamic content using Globalize gem

Img source: railscasts.com

We are in an interconnected world, where people across the planet can use the projects that we develop, and having the opportunity to offer them with additional international languages make them a lot better. We can obviously use locale for doing the translations of static strings like labels, or placeholder descriptions that appear across our applications, so we should also have something that can give us a way to translate the dynamic content.  There is a really great Ruby gem that makes the translation of model attributes a lot easier. This gem is called Globalize and is very easy to use.

Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑