On Sun, Feb 20, 2011 at 10:47 PM, Douglas Hubler <[email protected]> wrote:
> I cannot seem to get localization files in WEB-INF/ to be loaded from
> external jars.  This may be why most localization files are in
> sipXconfig project directly. These localization files are much of the
> admin or user interface.  It makes sense files would not be loaded
> from external jars because ./WEB-INF is not on the classpath, it's a
> special directory apps like tapestry read from.
>

Just tried this: builded a jar file containing WEB-INF and put
properties here (e.g. LoginPage_ro.properties). Then copied the jar in
sipXconfig classpath and when changed browser language to Romanian it
correctly displayed the labels. Have you tried to place the properties
in jar file inside a WEB-INF directory?

> So what I want is German language project for example to be able to
> install language files into WEB-INF cleanly (w/o expanding war).
> Obvious plan is to not create a war file in the first place.  I cannot
> think of a good advantage to keeping the war, we only expand it
> automatically into a tmp directory before starting anyway so it should
> only decrease startup time.
>
> As an extra advantage, this will also allow direct file access to the
> web application files post-install, in case there is a fix that needs
> to be made and expanding/rebuilding jar it messy.
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to