orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

Translation of Mongo Data #208

Open zachariahtimothy opened 9 years ago

zachariahtimothy commented 9 years ago

I have been using Orion on a new project and am loving it. The translation works really well for admin and code but I was wondering if you have any tips for the right way to approach mongo data translation in Orion. I saw some interesting packages here: http://stackoverflow.com/questions/25983116/meteor-localization-i18n-libs-comparison but it is unclear to me how to integrate this in Orion JS. Is there any tips or examples from anyone that can help me out? Thanks!

gam-ragnar commented 9 years ago

Messageformat definitely. I think someone else is using it with Orion but no packages yet. Wanna make one ? On Jun 19, 2015 11:43 AM, "Zach Curtis" notifications@github.com wrote:

I have been using Orion on a new project and am loving it. The translation works really well for admin and code but I was wondering if you have any tips for the right way to approach mongo data translation in Orion. I saw some interesting packages here: http://stackoverflow.com/questions/25983116/meteor-localization-i18n-libs-comparison but it is unclear to me how to integrate this in Orion JS. Is there any tips or examples from anyone that can help me out? Thanks!

— Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/issues/208.

zachariahtimothy commented 9 years ago

So this looks great for storing language keys/values in mongo, but what about user generated content? My site is a CMS that allows users to add items/content and I would like to be able to translate those. I have used gettext before but never translated with a mongo/node based CMS. I really appreciate the help!


Zach Curtis P: 970.590.6383 E: zachariahtimothy@gmail.com T: @zachariahCurtis https://twitter.com/#!/@zachariahCurtis

On Fri, Jun 19, 2015 at 10:22 AM, Timothy notifications@github.com wrote:

Messageformat definitely. I think someone else is using it with Orion but no packages yet. Wanna make one ? On Jun 19, 2015 11:43 AM, "Zach Curtis" notifications@github.com wrote:

I have been using Orion on a new project and am loving it. The translation works really well for admin and code but I was wondering if you have any tips for the right way to approach mongo data translation in Orion. I saw some interesting packages here:

http://stackoverflow.com/questions/25983116/meteor-localization-i18n-libs-comparison but it is unclear to me how to integrate this in Orion JS. Is there any tips or examples from anyone that can help me out? Thanks!

— Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/issues/208.

— Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/issues/208#issuecomment-113563477.

gam-ragnar commented 9 years ago

MF is pretty documented and I think you will get better answers from https://github.com/gadicc/meteor-messageformat than here. It should work for usergenerated content too, except you are interested in machine translation on the fly, MF is best fit IMHO

zachariahtimothy commented 9 years ago

Thanks so much! I will at a minimum create a gist to show how to implement this for others. Googling around is yielding very little results.


Zach Curtis P: 970.590.6383 E: zachariahtimothy@gmail.com T: @zachariahCurtis https://twitter.com/#!/@zachariahCurtis

On Fri, Jun 19, 2015 at 11:23 AM, Timothy notifications@github.com wrote:

MF is pretty documented and I think you will get better answers from https://github.com/gadicc/meteor-messageformat than here. It should work for usergenerated content too, except you are interested in machine translation on the fly, MF is best fit IMHO

— Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/issues/208#issuecomment-113580969.

macrozone commented 8 years ago

I am not sure if messageformat is the only piece we need. For a cms you usually want the following behavior:

backend:

frontend:

By the way. Some cms like magnolia store translatable properties like this:

and so on.