Monday, June 28, 2010

Re: CSS Localization

AMAZING!

is that documented anywhere?   I saw no mention on the css section of the building user interfaces part of the docs.

On Mon, Jun 28, 2010 at 4:44 AM, Thomas Broyer <t.broyer@gmail.com> wrote:


On 28 juin, 03:53, Dan <ddum...@gmail.com> wrote:
> Is it possible to localize the css in a CssResource so that during the
> translation phase of product development, css tweaks can be made to
> adjust for language specific spacing and formatting issues?

Yes, you can have distinct MyStyle_en.css MyStyle_fr.css, etc. and
have them picked from a single @Source("MyStyle.css").

> if not, what's the current best practice to work around these issues?


If the changes are "localised" though, I'd rather use @if blocks:
@if locale en {
  ...
}
@elif locale fr {
  ...
}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment