Re: [widgets] Span example

Hi Richard,

On Fri, Mar 26, 2010 at 9:32 PM, Richard Ishida <ishida@w3.org> wrote:

> The example looks rather baroque, but I think it does illustrate a number
> of points.  (I think that in real life it may be simpler to just use
> xml:lang="he" and dir="rtl" on the description tag in a localized config
> file like this.  The example does currently illustrate inheritance though.
>

Yeah, the example is convoluted on purpose to illustrate all the features
you mentioned.


>
> It also shows how to markup up the language while still marking default
> text for localization failures.  I hadn't realised that that was how you
> indicated the default for localization. FWIW I'd have preferred a special
> attribute for that, rather than overloading the xml:lang attribute, but I
> guess it's too late to change that now. An attribute like
> localizationdefault="yes" would reduce the need for the extra spans.
>

good point. We can add it to our list of things to add in the future.


> You need a 'using' between 'world' and 'GPS' at the end of the English
> description.
>

Fixed.


>
> Cheers,
> RI
>
> ============
> Richard Ishida
> Internationalization Lead
> W3C (World Wide Web Consortium)
>
> http://www.w3.org/International/
> http://rishida.net/
>
>
>
>
> > -----Original Message-----
> > From: marcosscaceres@gmail.com [mailto:marcosscaceres@gmail.com] On
> > Behalf Of Marcos Caceres
> > Sent: 17 March 2010 16:25
> > To: Richard Ishida
> > Cc: public-webapps; public-i18n-core@w3.org
> > Subject: Re: [widgets] Span example
> >
> > Hi Richard,
> >
> > On Tue, Mar 16, 2010 at 8:20 PM, Richard Ishida <ishida@w3.org> wrote:
> > > Argh.  Sorry Marcos.  The <span dir="rtl" should of course read <span
> > dir="ltr"
> > >
> >
> > I've made the following modifications to the example (to make it
> > compatible with our "element-based localization" model):
> >
> > [[
> > ==Example of Usage==
> >
> > This section is informative.
> >
> > This example shows span elements being used to indicate directionality
> > of text as well as language information. Note that the name element's
> > xml:lang attribute is set to an empty string to allow it to be used as
> > unlocalized content in the process of element-based localization:
> >
> >
> > <widget
> >  xmlns="http://www.w3.org/ns/widgets"
> >  xml:lang="he" dir="rtl">
> >  <name xml:lang="" dir="ltr"><span xml:lang="en">GPS
> > Weather!</span></name>
> >  <description>
> >   יישומון ה-<span dir="ltr" xml:lang="en">GPS Weather!</span> מאפשר לך
> > לבדוק את מזג האוויר בכל נקודת GPS ברחבי העולם.
> >  </description>
> >
> > <description xml:lang="" dir="ltr">
> >    <span xml:lang="en">The GPS Weather! widget lets you check the
> > weather at any point around the world GPS.</span>
> > </description>
> > </widget>
> >
> > ]]
> >
> >
> >
> >
> > --
> > Marcos Caceres
> > http://datadriven.com.au
> >
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com
> > Version: 9.0.791 / Virus Database: 271.1.1/2751 - Release Date: 03/16/10
> > 19:33:00
>
>
>


-- 
Marcos Caceres
http://datadriven.com.au

Received on Friday, 30 April 2010 15:17:53 UTC