I come from an Apache Tapestry background that has page and component
level localization and it proved very useful.
What do you guys think about this ?
Lift is *not* MVC.
Have you seen LiftRules.resourceBundleFactories ?
Cheers, Tim
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
-------------------------------------
Cheers, Tim
I would also be very interested in more detail on this topic. I've been toying with designs with a variety of technologies (a self-driven academic activity this far) to formulate how a massively multilingual site (upwards of 12 languages) could be implemented. I've not had much luck understanding the capabilities and limitations (perhaps a better word is boundaries) of lift's templating system for both language support and performance/resource usage for huge quantities of content.
A bit off topic but related... There has been talk before on the mailing list about creating a CMS. Has anything come of that?
Regards,
James
On Feb 9, 2010 9:47 AM, "Hugo Palma" <hugo.m...@gmail.com> wrote:
Sorry Tim but i don't quite understand what you mean by "page is
scoped to a single snippet" and that invalidates that you have a
resource bundle per page. Sorry is this is clear to everyone else but
i'm new with Lift so i'm still grasping basic concepts.
On Feb 8, 10:49 pm, Timothy Perrett <timo...@getintheloop.eu> wrote:
> That wouldn't work for Lift ...
> > For more options, visit this group athttp://groups.google.com/group/liftweb?hl=en.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post...
Cheers, Tim
On Feb 9, 5:29 pm, James Matlik <james.mat...@gmail.com> wrote:
> I would also be very interested in more detail on this topic. I've been
> toying with designs with a variety of technologies (a self-driven academic
> activity this far) to formulate how a massively multilingual site (upwards
> of 12 languages) could be implemented. I've not had much luck understanding
> the capabilities and limitations (perhaps a better word is boundaries) of
> lift's templating system for both language support and performance/resource
> usage for huge quantities of content.
>
> A bit off topic but related... There has been talk before on the mailing
> list about creating a CMS. Has anything come of that?
>
> Regards,
> James
>
Does that add some more clarity to my statement?
Cheers, Tim
Cheers, Tim
-------------------------------------
Hugo Palma<hugo.m...@gmail.com> wrote:
> liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> .
> > > > For more options, visit this group athttp://
> groups.google.com/group/liftweb?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> <liftweb%2Bunsu...@googlegroups.com<liftweb%252Buns...@googlegroups.com>
> >
> > .
> > > > > For more options, visit this group athttp://
> > groups.google.com/group/liftweb?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lif...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> <liftweb%2Bunsu...@googlegroups.com<liftweb%252Buns...@googlegroups.com>
We're using the built-in localized template lookup (index_fr.html) in
production, and I find it to be better than any alternative I've seen
across any web framework.
As you noted, most pages aren't actually different, so our build
process is scripted to translate index.html to index_fr.html in the
target directory. Our source tree isn't cluttered with _fr versions
of everything, our templates aren't filled with <loc> or <&|/l&> tags
everywhere . . . so far it seems like a win-win to me.
Only minor snag we've run into with lift localization was that S.?
isn't really parseable by xgettext, so we just used a wrapper function
with a different character.
To the OP, like David said, try what's there first, chances are it
will meet your needs.
--
I think this idea is weak.
Lift supports localized pages (e.g., index_en_US.html, index_it.html, etc.) Any page-level localization can be accomplished by writing a localized page. Any snippet-level localization can be achieved by passing localized XHTML as parameters to the snippet. Further, as Tim pointed out, there are ways to customize localization based on current state (which includes the current Req(uest)).
I'd suggest using Lift and using the existing facilities for localization. If they are lacking *after you use them* and you find that you are writing additional helpers, then we can see how your helpers integrate into Lift.
On Feb 10, 12:11 pm, Hugo Palma <hugo.m.pa...@gmail.com> wrote:
> I'm not sure i understand your solution, so your build process find an
> index.html and replaces all the text there to all the languages and creates
> the appropriate index_<lang>.html file ?
Yes
May seem like a hack, but on the other hand I honestly don't
understand how people deal with mostly textual websites that consist
of templates with nothing but e.g. <wicket:message key="foo"> all over
the place. Webapps with a limited amount of text, sure, but making up
new property keys for every paragraph. . .are you serious?
> If so, where do you keep the translated text at dev time ? Is it still on
> resource bundles ?
>
Yes, translated text is in resource bundles, used by the script that
does the xml translation
(well, we keep a .po version as well as the java properties file,
because of existing gettext toolchain, but that's incidental)