MessageSource

23 views
Skip to first unread message

Tamer Shahin

unread,
Jul 29, 2014, 7:20:57 PM7/29/14
to grails-de...@googlegroups.com
Hi All!

I would like to create a plugin to better utilize the potentiality of phraseapp.com
Our application needs thousands of translations in several languages and I would like to have right away from phraseapp. some of the key features i want to implement right now are:
with hotswap after a translator amend a translation, 
backup handling,
removing duplications, incongruence between code-base and phraseapp and so on..
long story short.. i think it worth give it a try.

the problem that i'm a little bit lost into the hierarchy of all messageSource classes and i don't understand which is used and which i shall extend to achieve my goal (because i think i just need to feed the existing one with phrasepp data). 
i guess that it should be ReloadableResourceBundleMessageSource, but not sure.

other problems: 
-where is ReloadableResourceBundleMessageSource initialized?
-where it receives the list of property files to deal with?
-how does it monitor the changes?

is it clear? does it makes sense? any advice?

cheers
T

Sergio Michels

unread,
Jul 31, 2014, 9:17:45 PM7/31/14
to grails-de...@googlegroups.com
ReloadableResourceBundleMessageSource is the implementation that Grails use, this is initilized in the i18n plugin: I18nGrailsPlugin. In the doWithSpring closure the plugin will set the list of files to look at.

If you don't want to use the i18n files, just implement MessageSource and declare the bean with the name messageSource.

--
Sérgio Michels


--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/ae7f9687-d078-4083-a0e5-c6e8496d480d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tamer Shahin

unread,
Aug 3, 2014, 7:06:25 AM8/3/14
to grails-de...@googlegroups.com
Thank you Sergio!
That's all i need.. i didn't saw the I18nGrailsPlugin before and i was wondering where all the magic was happinig! ;)
Now everything is much more clear, i hope to realize something soon!

Cheers


Il giorno venerdì 1 agosto 2014 02:17:45 UTC+1, Sergio Michels ha scritto:
ReloadableResourceBundleMessageSource is the implementation that Grails use, this is initilized in the i18n plugin: I18nGrailsPlugin. In the doWithSpring closure the plugin will set the list of files to look at.

If you don't want to use the i18n files, just implement MessageSource and declare the bean with the name messageSource.

--
Sérgio Michels


On Tue, Jul 29, 2014 at 8:20 PM, Tamer Shahin <tamer....@gmail.com> wrote:
Hi All!

I would like to create a plugin to better utilize the potentiality of phraseapp.com
Our application needs thousands of translations in several languages and I would like to have right away from phraseapp. some of the key features i want to implement right now are:
with hotswap after a translator amend a translation, 
backup handling,
removing duplications, incongruence between code-base and phraseapp and so on..
long story short.. i think it worth give it a try.

the problem that i'm a little bit lost into the hierarchy of all messageSource classes and i don't understand which is used and which i shall extend to achieve my goal (because i think i just need to feed the existing one with phrasepp data). 
i guess that it should be ReloadableResourceBundleMessageSource, but not sure.

other problems: 
-where is ReloadableResourceBundleMessageSource initialized?
-where it receives the list of property files to deal with?
-how does it monitor the changes?

is it clear? does it makes sense? any advice?

cheers
T

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages