tazpkg annotate README @ rev 343
Prepare for i18n with gettext
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 20 11:52:56 2010 +0200 (2010-06-20) |
parents | 1bd156f6fa52 |
children | f6dba4eac84a |
rev | line source |
---|---|
pankso@343 | 1 README for Tazpkg - Tiny autonomus packages manager |
pankso@0 | 2 =============================================================================== |
pankso@0 | 3 |
pankso@0 | 4 |
pankso@343 | 5 Tazpkg is a small but powerfull packages manager for SliTaz GNU/Linux and |
pankso@343 | 6 other UNIX like operating system. It use tazpkg package generaly build by |
pankso@343 | 7 Tazwok with receipt found in the wok. More information can be found in the |
pankso@343 | 8 SliTaz Cookbook and the manual. |
pankso@0 | 9 |
pankso@343 | 10 Tazpkg is entirely built from scratch using SHell script, compatible with |
pankso@343 | 11 Bash, it runs under Ash - part of the Busybox project. Tazpkg is distributed |
pankso@343 | 12 under the free GNU license GPL V3. |
pankso@0 | 13 |
pankso@0 | 14 |
pankso@343 | 15 Installation |
pankso@343 | 16 ------------ |
pankso@343 | 17 To install all needed files and compile translated messages, make and gettext |
pankso@343 | 18 must be installed. Running 'make install' will install everything in /usr, but |
pankso@343 | 19 another path and/or destination can be specified via PREFIX and DESTDIR. |
pankso@343 | 20 Example: |
pankso@0 | 21 |
pankso@343 | 22 $ make DESTDIR=$PWD/_pkg install |
pankso@0 | 23 |
pankso@343 | 24 Uninstall |
pankso@343 | 25 --------- |
pankso@343 | 26 Simply type: |
pankso@343 | 27 |
pankso@343 | 28 $ make uninstall |
pankso@0 | 29 |
pankso@343 | 30 Translation |
pankso@343 | 31 ----------- |
pankso@343 | 32 To start a new translation please use msginit from the pot file directory. |
pankso@343 | 33 Example for French/France locale (fr_FR): |
pankso@0 | 34 |
pankso@343 | 35 $ msginit -l fr_FR -o fr.po -i tazpkg.pot |
pankso@0 | 36 |
pankso@343 | 37 To update all translations from the pot file: |
pankso@0 | 38 |
pankso@343 | 39 $ make msgmerge |
pankso@0 | 40 |
pankso@343 | 41 To compile po files for testing purposes you can use 'make msgfmt' or manually |
pankso@343 | 42 compile your translation. Example for french locale, note that the file must be |
pankso@343 | 43 copied into /usr/share/locale/fr/LC_MESSAGES so gettext can find it: |
pankso@279 | 44 |
pankso@343 | 45 $ msgfmt -o tazpkg.mo fr.po |
pankso@0 | 46 |
pankso@0 | 47 |
pankso@0 | 48 =============================================================================== |
pankso@0 | 49 http://www.slitaz.org/ |