[virt-tools-list] [libosinfo 3/5] Mark obvious strings in DB for translation
Michal Privoznik
mprivozn at redhat.com
Fri Oct 19 09:56:37 UTC 2012
On 19.10.2012 05:49, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
>
> ---
> data/oses/centos.xml.in | 12 +--
> data/oses/debian.xml.in | 72 +++++++-------
> data/oses/dos.xml.in | 6 +-
> data/oses/fedora.xml.in | 108 ++++++++++-----------
> data/oses/freebsd.xml.in | 240 +++++++++++++++++++++++-----------------------
> data/oses/gnome.xml.in | 6 +-
> data/oses/macos.xml.in | 48 +++++-----
> data/oses/mandrake.xml.in | 102 ++++++++++----------
> data/oses/mandriva.xml.in | 78 +++++++--------
> data/oses/netbsd.xml.in | 84 ++++++++--------
> data/oses/netware.xml.in | 18 ++--
> data/oses/openbsd.xml.in | 42 ++++----
> data/oses/opensuse.xml.in | 48 +++++-----
> data/oses/rhel.xml.in | 240 +++++++++++++++++++++++-----------------------
> data/oses/rhl.xml.in | 120 +++++++++++------------
> data/oses/solaris.xml.in | 18 ++--
> data/oses/suse.xml.in | 36 +++----
> data/oses/ubuntu.xml.in | 102 ++++++++++----------
> data/oses/windows.xml.in | 120 +++++++++++------------
> 19 files changed, 750 insertions(+), 750 deletions(-)
>
> diff --git a/data/oses/centos.xml.in b/data/oses/centos.xml.in
> index 1dfb1c7..a5b91dc 100644
> --- a/data/oses/centos.xml.in
> +++ b/data/oses/centos.xml.in
> @@ -2,9 +2,9 @@
>
> <os id="http://centos.org/centos/6.0">
> <short-id>centos6.0</short-id>
> - <name>CentOS 6.0</name>
> - <version>6.0</version>
> - <vendor>CentOS</vendor>
> + <_name>CentOS 6.0</_name>
> + <_version>6.0</_version>
> + <_vendor>CentOS</_vendor>
> <family>linux</family>
> <distro>centos</distro>
> <clones id="http://redhat.com/rhel/6.0"/>
I may be missing something here. Are you really trying to translate XML
element names? I don't think thats the good idea as it disallows any
XPATH over the XML. Or in terms of libosinfo: querying for OS attributes
is not doable, unless application using libosinfo does the same
translation. And I think forcing user applications to do so is just not
right.
Or, are you trying to allow translation of XML element values? Again,
translating CentOS is not a good idea. I cannot even imagine situation
where this is needed.
Or did I got something wrong?
BTW this is the right place to update POTFILES.in.
Michal
More information about the virt-tools-list
mailing list