"Fossies" - the Fresh Open Source Software Archive

Member "checkinstall-1.6.2/NLS_SUPPORT" (11 Nov 2008, 1630 Bytes) of package /linux/privat/old/checkinstall-1.6.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Native Language Support
    2 =======================
    3 
    4 Checkinstall now uses GNU gettext to support native language translation of
    5 all messages sent to the terminal. Set your LC_ALL variable to your
    6 ISO-639 language and ISO-3166 country codes. For example, to set spanish and
    7 Mexico you would use:
    8 
    9 export LC_ALL=es_MX
   10 
   11 
   12 How to translate to your language
   13 =================================
   14 
   15 5 simple steps:
   16 
   17 
   18 1) Edit the file checkinstall-template.po and fill in the msgstr lines with
   19    the translation for the phrase located in the matching msgid line.
   20 
   21 Example:
   22 
   23 - Original lines
   24 
   25 msgid "Restoring overwritten files from backup..."
   26 msgstr ""
   27 
   28 - Translation to spanish:
   29 
   30 msgid "Restoring overwritten files from backup..."
   31 msgstr "Restaurando los archivos sobreescritos..."
   32 
   33 2) After editing the file, save it as checkinstall-ll.po, where "ll" stands for 
   34    your language's ISO-639 two-letter code. In the case of the example, this
   35    would be "es" for spanish:
   36 
   37 checkinstall-es.po
   38 
   39 3) Now create the locale directory for your language. Remember to use the same
   40    ISO codes you use in your LC_ALL environment variable:
   41 
   42 mkdir -p /usr/local/lib/checkinstall/locale/es_MX/LC_MESSAGES
   43 
   44 4) Next, you should generate the .mo binary message file. Run msgfmt:
   45 
   46 msgfmt -o /usr/local/lib/checkinstall/locale/es_MX/LC_MESSAGES/checkinstall.mo \
   47      checkinstall-es.po
   48 
   49 (The above goes all in one line)
   50 
   51 5) Finally, send me an e-mail message with the .po file attached so I can
   52    include it in the next checkinstall release  :-).
   53 
   54 =====================================================
   55 $Id: NLS_SUPPORT,v 1.6.1.1 2006/11/01 07:30:26 izto Exp $