[sane-devel] Supported languages?
abel deuring
adeuring at gmx.net
Sun Oct 1 19:41:41 UTC 2017
Am 01.10.2017 um 19:04 schrieb Jeff Sadowski:
> I'm not sure I grasp it.
>
> So if I install ubuntu on a vm for each language I want to support would
> I be able to copy the output for each language?
No: The i18n concept for Sane is this:
- The backends return in every case the Endlish strings as they appear
in the source code.
- A frontend can/should use the PO files to replace the english strings
with the desired language.
The problem is that scanimage, the frontend, does not support i18n/l10n.
Perhaps one more reason to follow Jeff's advice not to call scanimage
but to write a Sane library for PHP ;)
> Or would it be better to do a google translate for the languages? I can
> add tables for translating the common options if need be.
Well, the translations are all there, in .po/.mo files -- just use them
;) But again, this is much easier to do if a PHP wrapper for Sane
backends directly passes the English strings to your application than to
search for these strings in the output from scanimage.
I am not at all familiar with PHP, but I'd bet that it supports gettext().
Abel
>
> On Sun, Oct 1, 2017 at 5:18 AM, Olaf Meeuwissen
> <paddy-hack at member.fsf.org <mailto:paddy-hack at member.fsf.org>> wrote:
>
> Hi Yury,
>
> Yury Tarasievich writes:
>
> > Does scanimage actually contain the l10n
> > functionality?
>
> Good question!
>
> While the backends have their messages translated to some 20 languages,
> it is the SANE frontend's responsibility to activate translation. I did
> a quick check of the scanimage source code and it doesn't seem to do so.
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27
> GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9
> Support Free Software https://my.fsf.org/donate
> Join the Free Software Foundation https://my.fsf.org/join
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> <mailto:sane-devel at lists.alioth.debian.org>
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel>
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
> <mailto:sane-devel-request at lists.alioth.debian.org>
>
>
>
>
More information about the sane-devel
mailing list