i18n: infrustructure [long]

Sean Wheller sean at inwords.co.za
Sat Apr 16 06:42:55 UTC 2005


On Friday 15 April 2005 19:14, Sean Wheller wrote:
Technical update to this message. I made a mistake and told people to use a 
parametized entity instead of a plain entity reference. The change is 
explained by updating my text below.

>
> Back to our entities. By setting the value of language to an entity
> reference we have a single parameter by which to control the value of any
> parametized entity references to 'language' throughout an XML-instance.
> Since the 'language' entity is not declared we can use a parameter entity
> to at any point in the body of a document to substitue the value of
> language with the value of the entity reference defined as its value.
>
> For example:
>
> <article id="art-about-ubuntu" status="complete" lang="%language;">
<article id="art-about-ubuntu" status="complete" lang="&language;">
> <title>....</title>
> <para> ...... The language is %language;</para>
<para> ...... The language is &language;</para>
> <mediaobject>
>  <imageobject>
>  <imagedata fileref="../../images/%language;/IconUbuntu.png" format="PNG"/>
<imagedata fileref="../../images/&language;/IconUbuntu.png" format="PNG"/>
>  </imageobject>
> </mediaobject>
>  ....
> </article>


-- 
Sean Wheller
Technical Author
sean at inwords.co.za
084-854-9408
http://www.inwords.co.za
Registered Linux User #375355
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20050416/f2bbf1a7/attachment.pgp>


More information about the ubuntu-doc mailing list