[cas-dev] customize i18n bundles
Pascal Aubry
pascal.aubry at univ-rennes1.fr
Tue Jul 11 07:10:19 EDT 2006
Scott Battaglia wrote:
> Pascal,
>
> I was looking at the documentation for the Spring
> ResourceBundleMessageSource. In the current CAS distribution, we use
> the "basename" property. However, there is a "basenames" property we
> can use instead to specify multiple file names (and it even has the
> effect of over-riding previous values so one can update certain values
> and not touch others). If we were able to use this in combination with
> a localplugins/webapp folder I think that might solve the problem (well
> even in the short term, people could place the files in
> webapp/WEB-INF/classes and it would probably work).
>
> The only thing I'm not sure of is what happens if you specify two file
> names in the "basenames" and one doesn't exist (but we could work around
> that with dummy files).
>
All you propose just looks fine. I think an empty custom.properties
would do it.
PA
> Also, I opened a JIRA issue and fixed the spelling error you reported.
> Thanks!
>
> -Scott
>
>
> Pascal Aubry wrote:
>
>> Hello,
>> I am looking for a simple way for users to deal with i18n bundles. The
>> needs are:
>> 1. add a message (for instance error.authentication.backend.failure)
>> 2. replace an existing message
>> Of course, I would like this to be possible without modifying any
>> distribution file, in order to ease upgrades.
>> Any idea for this? Scott wrote something like adding a webapp to the
>> localPlugins folder, but this solution probably overrides existing files.
>> Thanks,
>> PA
>> BTW, I found a mistake in the French translation:
>> screen.logout.header=Déconnexion réussie (2 'n').
>>
>>
>>
> _______________________________________________
> cas-dev mailing list
> cas-dev at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
--
http://perso.univ-rennes1.fr/pascal.aubry
More information about the cas-dev
mailing list