List for Users of Carlsbad Cubes' Technologies and Products
Tue, 13 Sep 2005 22:53:30 -0700
List for Users of Carlsbad Cubes' Technologies and Products
<Forum@carlsbadcubes.com> schrieb am 13.09.05 18:18:40:
>
> Hi,
>
> We have the same issue. We've got quite a big application so to keep
> it maintainable
> we split it in logical modules and we have one locale file per module like
> module1_en.properties, module2_en.properties ... etc.
> To make a reuse of common translations (like "ok", "cancel" ) we have
> common_en.properties.
> So what we tried to do with swixml was something like this
>
> <frame bundle="module1">
> <panel it="mainPanel">
> ...
> </panel>
> <panel it="okCancelPanel" bundle="common">
> ...
> </panel>
> </frame>
>
> But it didn't work.
> So I wonder if swixml supports this construction at all.
I looked into the Parser-class of swixml and this attribute is only supported
for the root-Element:
getSwing( processCustomAttributes( jdoc.getRootElement() ), container );
It is not that easy to change this because the localizer (responsible to
localize attributes) is a static one, which is not easy changable either.
So, to solve this, you may either write your own resourcebundle which more ore
less combines the separate resource bundles of your own (not very elegant) or
to combine your resource bundles through your build process (not very elegant
too). Vitali, you may only need to merge your commom properties into the
specific one, which resolves not the problem of nested containers, though...
Yours,
Frank
>
> Thanks,
> Vitali
>
> 2005/9/11, List for Users of Carlsbad Cubes' Technologies and Products
> <Forum@carlsbadcubes.com>:
> >
> >
> > List for Users of Carlsbad Cubes' Technologies and Products
> > <Forum@carlsbadcubes.com> schrieb am 09.09.05 19:31:37:
> > >
> > > Hi,
> > >
> > > > Do you want to split (e.g.) the german language property file
> > > > into more than one file?
> > >
> > > Yes, this is that i mean. It is maintainable und concise.
> >
> > Hm, I did not try that nor can I try this at the moment, but did you
> > specify different "bundle"-attributes in your panels/frames/...? Maybe this
> > leads to different problems, though...
> >
> >
> > >
> > > > How is your "I18N-File" named?
> > >
> > > My files ar name "mainFrame.properties", "mainFrame_de.properties" and
> > > "customerPanel.properties", "customerPanel_de.properties".
> >
> > Sounds ok.
> >
> > >
> > > I read the given url, but i have no idea how i can it use in
> > > swixml-files. It's an understanding problem for me.
> >
> > Maybe, but maybe it is also a problem with Swixml -- it is not meant to
> > have different resource bundles per locale. I'm not sure about the
> > maintanance -- either you have a lot of small property files with few
> > properties in them or you have few property files with a lot of properties
> > in them. For me, it is more convenient to have one property-file per
> > locale, because it allows re-use of properties as well.
> >
> >
> > Yours,
> >
> > Frank
> > > ________________________
> > > Björn Schulz
> > > -----------------------------------------------------------------
> > > _______________________________________________
> > > Forum mailing list
> > > Forum@carlsbadcubes.com
> > > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
> > >
> >
> >
> >
> > _______________________________________________
> > Forum mailing list
> > Forum@carlsbadcubes.com
> > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
> >
>
> _______________________________________________
> Forum mailing list
> Forum@carlsbadcubes.com
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com