Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread Naftoli Gugenheim
Interesting. What would an example where two pages in the same locale should have different values for the same key used by the same snippet? - Hugo Palmahugo.m.pa...@gmail.com wrote: I think a simple inheritance concept would work just fine. We could have:

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread David Pollak
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

[Lift] Re: Support for page and snippet level localization

2010-02-10 Thread cody koeninger
On Feb 8, 5:07 pm, Timothy Perrett timo...@getintheloop.eu wrote: Generally I find that to be only of use when needed specific adjustments to templates. For instance, english vs german... the german language is significantly more verbose so requires different div heights etc sometimes. Its

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread Hugo Palma
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 ? If so, where do you keep the translated text at dev time ? Is it still on resource bundles ? On Wed, Feb 10,

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread Hugo Palma
On Wed, Feb 10, 2010 at 17:28, David Pollak feeder.of.the.be...@gmail.comwrote: 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

[Lift] Re: Support for page and snippet level localization

2010-02-10 Thread cody koeninger
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

[Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Hugo Palma
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

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread James Matlik
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

[Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
The analogy would be MVC controllers... the index method has an index page and an index resource bundle. Within Lift, we dont use controllers, so there is nothing stopping you calling a whole bunch of snippets on a single page - thus, there would be no single page resource bundle (that is, it

[Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
Come to think of it - if you really wanted to have a resource bundle for each page... you could do that using the resource bundle factories I listed earlier. Cheers, Tim On Feb 9, 5:38 pm, Timothy Perrett timo...@getintheloop.eu wrote: The analogy would be MVC controllers... the index method

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Hugo Palma
So what you're saying is that a page can include a bunch of snippets and that's why it doesn't be an advantage to have page resource bundles ? I'm sorry but i don't see why. I'm not sure how people are using resource bundles with Lift now but the way i would do it would be to create a resource

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
Appreciate where you are coming from, however, the defaults are working quite well so perhaps it would be frugal to break some other boxed configurations into lift-localization or something... Such as page related resource bundles. Needs some thinking, but its certainly possible. Lift is

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Hugo Palma
I understand, just trying to share some of my own experience and ideas. So, should i create an issue for further discussion or do we just let it be ? On Tue, Feb 9, 2010 at 18:43, Timothy Perrett timo...@getintheloop.euwrote: Appreciate where you are coming from, however, the defaults are

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Timothy Perrett
mm im not sure who would take this on, as I think i've been doing most of the localisation stuff and I don't have capacity to do anything about this for quite some time unless it becomes an urgent priority. Any discussion must take place on this list, not on (or in) tickets, review board or

Re: [Lift] Re: Support for page and snippet level localization

2010-02-09 Thread Naftoli Gugenheim
If the same snippet is used by two pages you would want two separate resource bundles to be used for the same snippet? - Hugo Palmahugo.m.pa...@gmail.com wrote: So what you're saying is that a page can include a bunch of snippets and that's why it doesn't be