I work with RoR and I was wondering how can I translate Acts As Taggable into tags without having to manually insert them every time I use the tag again?
Example: I have a message (name and body in English), and I create it with the tags “shoes, dress, beauty”.
I have a header and body translated into Japanese into a text file, so I just need to copy / paste them (I use the Globalize2 plugin to manage translations).
Then I need to add Japanese tags, so I'm looking for a translation and add it.
Now I know how to write these three words in Japanese, but I do not want to translate them every time I use the same tag. The next time I create a message with the tag "shoes", I want the Japanese version to already have the translated term.
What are you offering? Abandon Acts As Taggable On and create a custom tag model with habtm relationships with Post? Subclass Acts as Taggable On Model?
Thanks in advance.
source
share