Order of elements

Sean Wheller sean at inwords.co.za
Fri Apr 1 13:53:03 UTC 2005


On Friday 01 April 2005 15:51, Claude Paroz wrote:
> One of our translators asked us the following :
> In the quickguide, order of menu description is defined with alphabetic
> order, in English, of course.
> If we translate in other languages, the order will probably change (eg.
> Office is Bureautique in French). Do you think it should be possible to
> change order of elements in the translated xml Docbook, and keep with
> our translation process (po2xml or Rosetta)

Claude you make a good point.

Actually all menus should be coming from Entities and we have not made pot 
files for their translation. :-(

The correct method should be to make pot files for all menus and create an 
entity file for lang specific stuff such as menus. For example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
	"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "../libs/xinclude.mod">
%xinclude;
<!ENTITY % globalent SYSTEM "../libs/global.ent">
%globalent;
<!ENTITY % globallangent SYSTEM "../libs/global-fr.ent">
%globallangent;
]>

So all menus for fr will be defined in 
<!ENTITY % globallangent SYSTEM "../libs/global-fr.ent">
%globallangent;

Therefore 

<para>All the Open Office application components are available
                    under &open-office;.</para>

The entity &open-office; will not require a change and will automatically 
pickup the menu in the language specified by the 
<!ENTITY % globallangent SYSTEM "../libs/global-fr.ent">
%globallangent;


As for the order, it needs to make sense in the target language.

Does this make sense?

-- 
Sean Wheller
Technical Author
sean at inwords.co.za
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/20050401/cc701867/attachment.pgp>


More information about the ubuntu-doc mailing list