sane-project-backends/po
Henning Geinitz 062cefe068 Removed some warnings. Fixed segfault while exiting. Using empty
devicename works now. New version: 1.0-10.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-11 22:38:01 +00:00
..
Makefile.in Added pnm.de.po to DISTFILES. 2002-01-10 17:18:45 +00:00
README Added comment about DISTFILES. 2002-01-10 17:19:54 +00:00
epson.de.po Updated by make update-po. 2002-01-07 22:14:21 +00:00
mustek.de.po Updated German translations. They should be complete now. 2002-01-09 23:43:14 +00:00
mustek_usb.de.po Removed some warnings. Fixed segfault while exiting. Using empty 2002-01-11 22:38:01 +00:00
pnm.de.po hand_scanner and three_pass options need SANE_INFO_RELOAD_PARAMETERS. All 2002-01-11 18:26:29 +00:00
umax.de.po Updated by make update-po. 2002-01-07 22:14:21 +00:00

README

2002-01-10

This directory contains translations for the options of the SANE backends.
They are only used if configure is called with option --enable-translations.
You will nee GNU gettext: xgettext, msgfmt and msgmerge. Currently these
translations are only used by XSane.

What do you need to do if you want to:

- Just read the description of SANE options in your language
  * Use XSane, read the documentation and set LANG to your favorite
    setting (e.g. de_DE for German in Germany).

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

- Add a new language to an existing backend
  * cd po ; make backend.lang.po-gen 
  * Edit backend-lang.po, enter translations. Don't forget to edit the header.
  * Edit Makefile.in, add backend.lang.po to DISTFILES.
  * make ; make install

- Add a translation for a backend that is not listed yet in Makefile.in
  * Edit your sources 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.
    Example: s->opt[5].title = SANE_I18N("Enhancement");
  * Edit po/Makefile.in. Add a line "backend.*.po: yourfiles" where
    yourfiles is a space-separated list of all your files containing
    translatable text. Also add backend.lang.po to DISTFILES.
  * ./configure --enable-translations
  * cd po ; make backend.lang.po-gen
  * Edit backend-lang.po, enter translations. Don't forget to edit the header.
  * make ; make install

Bugs:
- This is the first attempt to support translations. It's probably very buggy
  and nearly untested.
- Lot's of ugly tricks and asumptions in Makefile.in
- All well known options are added to *.lang.po even if they are not used
  in the backend.