sane-project-backends/po
Henning Geinitz 61a9534ac0 Minor spelling and translation fixes. 2002-12-05 09:17:19 +00:00
..
Makefile.in Added autoconf comment, removed MSGCAT variable. 2002-12-04 18:27:29 +00:00
README Use only one file of translated messages per language. Merged all backend 2002-12-02 21:04:26 +00:00
artec_eplus48u.de.po Fixed header in artec_eplus48u.de.po 2002-11-22 08:31:31 +00:00
epson.de.po
…
epson.ru.po
…
epson.sv.po Added Swedish translation (from Dennis Björklund <db@zigo.dhs.org>). 2002-11-30 10:35:04 +00:00
gt68xx.de.po
…
matsushita.fr.po
…
matsushita.ru.po
…
mustek.de.po
…
mustek.ru.po
…
mustek_usb.de.po
…
mustek_usb.ru.po
…
plustek.de.po
…
plustek.es.po
…
plustek.ru.po
…
pnm.de.po
…
pnm.ru.po
…
sane-backends.de.po Minor spelling and translation fixes. 2002-12-05 09:17:19 +00:00
sane-backends.es.po Use only one file of translated messages per language. Merged all backend 2002-12-02 21:04:26 +00:00
sane-backends.fr.po Use only one file of translated messages per language. Merged all backend 2002-12-02 21:04:26 +00:00
sane-backends.ru.po Use only one file of translated messages per language. Merged all backend 2002-12-02 21:04:26 +00:00
sane-backends.sv.po Use only one file of translated messages per language. Merged all backend 2002-12-02 21:04:26 +00:00
saneopts.de.po
…
saneopts.es.po
…
saneopts.fr.po
…
saneopts.ru.po
…
saneopts.sv.po Added Swedish translation (from Dennis Björklund <db@zigo.dhs.org>). 2002-11-30 10:35:04 +00:00
sceptre.fr.po
…
sceptre.ru.po
…
snapscan.de.po
…
snapscan.ru.po
…
teco1.fr.po
…
teco1.ru.po
…
umax.de.po
…
umax.fr.po
…
umax.ru.po
…
umax_pp.de.po
…
umax_pp.fr.po
…
umax_pp.ru.po
…

README

2002-12-02

This directory contains translations for the options of the SANE backends.
They are only used if the gettext tools are found by configure.
You will need GNU gettext: xgettext, msgfmt and msgmerge. The translations
are used at least by the frontends XSane and quiteinsane.

What do you need to do if you want to:

- Just read the description of SANE options in your language
  * Use XSane or your favourite frontend that supports translations, read the
    documentation and set LANG to your local setting (e.g. de_DE for German
    language in Germany). Make sure, that you use a recent version of the
    frontends.

- Update existing translations when the source code has changed
  * cd po ; make
  * Edit sane-backends.lang.po, add/change translations. (with lang = your
    language, e.g. "de")
  * make install

- Add a new language
  * Edit po/Makefile.in, add your language to ALL_LINGUAS and add 
    sane-backends.lang.po to DISTFILES.
  * ./configure
  * cd po
  * touch sane-backends.lang.po
  * make
  * Edit sane-backends.lang.po and enter translations. You only need to enter
    the translations for texts actually used by your backend but the more you
    can translate, the better. Don't forget to edit the headers. UTF-8 is the
    preferred encoding.
  * make install

- Add a translation for a completely untranslated backend
  * Edit the source code of the backend and add SANE_I18N to the appropriate
    strings. Mark the descriptions (desc) and titles of options with
    SANE_I18N(). Do the same for string lists used in options. The name of
    options must NOT be marked. Do NOT mark macros. Especially you don't need
    to mark standard option strings like SANE_TITLE_NUM_OPTIONS as this is
    already done in saneopts.h.
    Examples: s->opt[5].title = SANE_I18N("Enhancement");
              #define STANDARD_FORMAT SANE_I18N("a4 Paper")
  * Edit po/Makefile.in. Add all soucecode files that conatain strings marked
    by SANE_I18N() to SRC_FILES.
  * If you want to also add a new language, see above.
  * ./configure
  * cd po ; make
  * Edit sane-backends.lang.po, enter translations. Add your name/email address
    to the header. If you don't agree with an already existing translation, ask
    the sane-devel mailing list.
  * make install

- Add support in your frontend:
  * The Makefile installs files called "sane-backends.mo" in the directory
    "$(prefix)/share/locale/lang/LC_MESSAGES/", e.g.:
    "/usr/local/share/locale/de/LC_MESSAGES/sane-backends.mo". For every
    language exactly one .mo file is installed. Earlier releases of
    sane-backends installed one file per backend, e.g. sane-umax.mo. For
    backward compatibility, frontends may want to check for these files, also.
  * As mentioned above, GNU gettext is used. 
  * With other NLS implementations, converting the mo files may work.

Bugs:
- Using sed to include macros into *.pot isn't nice.