sane-project-website/old-archive/1999-04/0022.html

103 wiersze
3.9 KiB
HTML

<!-- received="Fri Apr 2 14:22:12 1999 PST" -->
<!-- sent="Wed, 17 Mar 1999 14:24:20 +0100" -->
<!-- name="Andre Herms" -->
<!-- email="aherms@prinz-atm.CS.Uni-Magdeburg.De" -->
<!-- subject="Internationalized Sane" -->
<!-- id="99031714555500.12185@wh2-229" -->
<!-- inreplyto="" -->
<title>sane-devel: Internationalized Sane</title>
<h1>Internationalized Sane</h1>
<b>Andre Herms</b> (<a href="mailto:aherms@prinz-atm.CS.Uni-Magdeburg.De"><i>aherms@prinz-atm.CS.Uni-Magdeburg.De</i></a>)<br>
<i>Wed, 17 Mar 1999 14:24:20 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#22">[ date ]</a><a href="index.html#22">[ thread ]</a><a href="subject.html#22">[ subject ]</a><a href="author.html#22">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0023.html">Andre Herms: "Fwd: Internationalized Sane"</a>
<li> <b>Previous message:</b> <a href="0021.html">Bert Bakker: "Sane drivers"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0036.html">David Mosberger-Tang: "Re: Internationalized Sane"</a>
<li> <b>Reply:</b> <a href="0036.html">David Mosberger-Tang: "Re: Internationalized Sane"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
--Boundary-=_JiVswMdkqtBxIXMVTRRbljpTnsNF<br>
Content-Type: text/plain<br>
Content-Transfer-Encoding: 8bit<br>
<p>
<p>
Hello to everybody<br>
<p>
I had an idea and want some opinions about that:<br>
<p>
I think, it would be cool if sane could present the settings in different<br>
languages (i.e. German). My first idea to do this: change the saneopts.h like<br>
this<br>
<p>
<i>&gt;enum { SANE_LANG_ENGLISH = 0,</i><br>
<i>&gt; SANE_LANG_GERMAN,</i><br>
<i>&gt; ...,</i><br>
<i>&gt; SANE_NUM_LANGS};</i><br>
<i>&gt;</i><br>
<i>&gt;</i><br>
<i>&gt;int SANE_Language;</i><br>
<i>&gt;</i><br>
<i>&gt;char *sane_title_brightness [SANE_NUM_LANGS] = {</i><br>
<i>&gt; "brightness",</i><br>
<i>&gt; "Helligkeit",</i><br>
<i>&gt; ...};</i><br>
<i>&gt;#define SANE_TITLE_BRIGHTNESS sane_title_brightness[SANE_Language]</i><br>
<p>
this was my first idea, but this could never work with the backends. Most of<br>
them define the title of an option by preiniting a var. No chance as<br>
SANE_TITLE_BRIGHTNESS is no constant. It could help, if this would be done at<br>
runtime, but therefor all backends need to be changed not so good. <br>
<p>
So I have some little problems:<br>
<p>
1) How shall SANE_Language be changed. <br>
- it could be done by the frontend<br>
- it could be a new param to SANE_Init ?<br>
- it could be made an extra Option ( best compatible way for me)<br>
<p>
2) Where shall the Strings be stored<br>
- it could be put in a header-file. but the more strings, the bigger<br>
the resulting file gets and it uses RAM.<br>
- it could be stored to an extra text file. but than there must be some<br>
functions for reading. And where to store this file.<br>
<p>
<p>
I'd like to get some suggestions, whats the easiest way not to change all<br>
backends or the Sane-standard<br>
<p>
Thanx <br>
Andre<br>
<p>
--Boundary-=_JiVswMdkqtBxIXMVTRRbljpTnsNF<br>
Content-Type: application/pgp-keys;<br>
name="pgp key"<br>
Content-Disposition: attachment; filename=public_key.asc<br>
Content-Transfer-Encoding: base64<br>
<p>
<p>
<p>
--Boundary-=_JiVswMdkqtBxIXMVTRRbljpTnsNF--<br>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0023.html">Andre Herms: "Fwd: Internationalized Sane"</a>
<li> <b>Previous message:</b> <a href="0021.html">Bert Bakker: "Sane drivers"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0036.html">David Mosberger-Tang: "Re: Internationalized Sane"</a>
<li> <b>Reply:</b> <a href="0036.html">David Mosberger-Tang: "Re: Internationalized Sane"</a>
<!-- reply="end" -->
</ul>