On 20.12.2008 17:05, Jeffrey Ratcliffe wrote: > 2008/12/20 m. allan noah <kitno455 at gmail.com>: >>> Having written Perl bindings for SANE, I will be able to do a more >>> general interface, but please file the bug on Sourceforge or against >>> the Debian package in the mean time. > > Now I remember the other problem with a general interface - > internationalisation. scanimage, for instance, doesn't seem to have > been translated: > > LANGUAGE=de scanimage --help > > produces English output. > > If I look in saneopts.h, the macro SANE_I18N is used for all the > titles, but how do I get at the translations?
Just open sane's .mo file with gettext :) (OK, I'm more involved with the "competition" -- Python --, so I don't know if a gettext implementation for Perl exists, but I would be really suprised if it doesn't.) Abel