sane-project-website/old-archive/2001-01/0041.html

150 wiersze
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: SANE + i18n (?)</TITLE>
<META NAME="Author" CONTENT="mh (crapsite@gmx.net)">
<META NAME="Subject" CONTENT="Re: SANE + i18n (?)">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: SANE + i18n (?)</H1>
<!-- received="Thu, 4 Jan 2001 17:54:03 +0100" -->
<!-- isoreceived="20010104165403" -->
<!-- sent="Thu, 4 Jan 2001 17:54:03 +0100" -->
<!-- isosent="20010104165403" -->
<!-- name="mh" -->
<!-- email="crapsite@gmx.net" -->
<!-- subject="Re: SANE + i18n (?)" -->
<!-- id="01010418411800.03653@slowcrap" -->
<!-- inreplyto="3A549347.7AD4C6B4@wolfsburg.de" -->
<STRONG>From:</STRONG> mh (<A HREF="mailto:crapsite@gmx.net?Subject=Re:%20SANE%20%2B%20i18n%20(?)&In-Reply-To=&lt;01010418411800.03653@slowcrap&gt;"><EM>crapsite@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Jan 04 2001 - 08:54:03 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0042.html">Laurent Duperval: "Announcement list"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0040.html">Oliver Rauch: "Re: SANE + i18n (?)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0040.html">Oliver Rauch: "Re: SANE + i18n (?)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0045.html">Ralph Angenendt: "Re: SANE + i18n (?)"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0045.html">Ralph Angenendt: "Re: SANE + i18n (?)"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#41">[ date ]</A>
<A HREF="index.html#41">[ thread ]</A>
<A HREF="subject.html#41">[ subject ]</A>
<A HREF="author.html#41">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Oliver Rauch, Don, 04 Jan 2001 :
<BR>
<EM>&gt; mh wrote:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; Hi,
</EM><BR>
<EM>&gt; &gt; can someone tell me, whether there's anything planned to
</EM><BR>
<EM>&gt; &gt; improve internationalization in SANE?
</EM><BR>
[...]
<BR>
<EM>&gt; I already tried the same thing one year ago but did not get any
</EM><BR>
<EM>&gt; resonse to it.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; saneopts.h shall only include texts that are used by several backends.
</EM><BR>
<EM>&gt; Additional texts have to be made public by the Backend maintainer.
</EM><BR>
<EM>&gt; There are some files in xsane-0.*/backend-po including a german translation for the
</EM><BR>
<EM>&gt; umax backend.
</EM><BR>
<P>Hi Oliver/all,
<BR>
that's sad :-(
<BR>
I already noticed your efforts to supply translations for the backends.
<BR>
<P>What do you think about the following way (maybe for the next SANE release)?
<BR>
It could be done like in Qt:
<BR>
<P>1.
<BR>
Define a macro that actually does nothing (but marks the user visible strings).
<BR>
<P>From Qt2.2.3/src/kernel/qobject.h:
<BR>
#define QT_TR_NOOP(x) (x)
<BR>
<P>If you don't like this, call it SANE_TR_NOOP.
<BR>
<P>2.
<BR>
Add the following to the SANE standard:
<BR>
<P>&quot;If a backend uses strings which are not defined in saneopts.h and which
<BR>
are visible to the user, the SANE_TR_NOOP macro must be used.
<BR>
Example: SANE_TR_NOOP(&quot;Your Text&quot;) &quot;
<BR>
(Someone should translate this to real english :)
<BR>
<P>3. If this is done, one can simply extract the strings from the backend
<BR>
sourcefiles by searching for SANE_TR_NOOP with a small c or perl program.
<BR>
(I think, if you call it QT_TR_NOOP one could use lupdate and linguist
<BR>
without further efforts)
<BR>
I don't know, whether this makes sense for GTK apps (the .ts files generated
<BR>
by lupdate are in XML format).
<BR>
<P>Just an untested thought, comments welcome...
<BR>
<P>Michael
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20SANE%20%2B%20i18n%20(?)&In-Reply-To=&lt;01010418411800.03653@slowcrap&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0042.html">Laurent Duperval: "Announcement list"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0040.html">Oliver Rauch: "Re: SANE + i18n (?)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0040.html">Oliver Rauch: "Re: SANE + i18n (?)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0045.html">Ralph Angenendt: "Re: SANE + i18n (?)"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0045.html">Ralph Angenendt: "Re: SANE + i18n (?)"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#41">[ date ]</A>
<A HREF="index.html#41">[ thread ]</A>
<A HREF="subject.html#41">[ subject ]</A>
<A HREF="author.html#41">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Thu Jan 04 2001 - 09:31:33 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>