ABOUT-NLS
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:24k
源码类别:

多媒体

开发平台:

MultiPlatform

  1. Notes on the Free Translation Project
  2. *************************************
  3.    Free software is going international!  The Free Translation Project
  4. is a way to get maintainers of free software, translators, and users all
  5. together, so that will gradually become able to speak many languages.
  6. A few packages already provide translations for their messages.
  7.    If you found this `ABOUT-NLS' file inside a distribution, you may
  8. assume that the distributed package does use GNU `gettext' internally,
  9. itself available at your nearest GNU archive site.  But you do _not_
  10. need to install GNU `gettext' prior to configuring, installing or using
  11. this package with messages translated.
  12.    Installers will find here some useful hints.  These notes also
  13. explain how users should proceed for getting the programs to use the
  14. available translations.  They tell how people wanting to contribute and
  15. work at translations should contact the appropriate team.
  16.    When reporting bugs in the `intl/' directory or bugs which may be
  17. related to internationalization, you should tell about the version of
  18. `gettext' which is used.  The information can be found in the
  19. `intl/VERSION' file, in internationalized packages.
  20. Quick configuration advice
  21. ==========================
  22.    If you want to exploit the full power of internationalization, you
  23. should configure it using
  24.      ./configure --with-included-gettext
  25. to force usage of internationalizing routines provided within this
  26. package, despite the existence of internationalizing capabilities in the
  27. operating system where this package is being installed.  So far, only
  28. the `gettext' implementation in the GNU C library version 2 provides as
  29. many features (such as locale alias, message inheritance, automatic
  30. charset conversion or plural form handling) as the implementation here.
  31. It is also not possible to offer this additional functionality on top
  32. of a `catgets' implementation.  Future versions of GNU `gettext' will
  33. very likely convey even more functionality.  So it might be a good idea
  34. to change to GNU `gettext' as soon as possible.
  35.    So you need _not_ provide this option if you are using GNU libc 2 or
  36. you have installed a recent copy of the GNU gettext package with the
  37. included `libintl'.
  38. INSTALL Matters
  39. ===============
  40.    Some packages are "localizable" when properly installed; the
  41. programs they contain can be made to speak your own native language.
  42. Most such packages use GNU `gettext'.  Other packages have their own
  43. ways to internationalization, predating GNU `gettext'.
  44.    By default, this package will be installed to allow translation of
  45. messages.  It will automatically detect whether the system already
  46. provides the GNU `gettext' functions.  If not, the GNU `gettext' own
  47. library will be used.  This library is wholly contained within this
  48. package, usually in the `intl/' subdirectory, so prior installation of
  49. the GNU `gettext' package is _not_ required.  Installers may use
  50. special options at configuration time for changing the default
  51. behaviour.  The commands:
  52.      ./configure --with-included-gettext
  53.      ./configure --disable-nls
  54. will respectively bypass any pre-existing `gettext' to use the
  55. internationalizing routines provided within this package, or else,
  56. _totally_ disable translation of messages.
  57.    When you already have GNU `gettext' installed on your system and run
  58. configure without an option for your new package, `configure' will
  59. probably detect the previously built and installed `libintl.a' file and
  60. will decide to use this.  This might be not what is desirable.  You
  61. should use the more recent version of the GNU `gettext' library.  I.e.
  62. if the file `intl/VERSION' shows that the library which comes with this
  63. package is more recent, you should use
  64.      ./configure --with-included-gettext
  65. to prevent auto-detection.
  66.    The configuration process will not test for the `catgets' function
  67. and therefore it will not be used.  The reason is that even an
  68. emulation of `gettext' on top of `catgets' could not provide all the
  69. extensions of the GNU `gettext' library.
  70.    Internationalized packages have usually many `po/LL.po' files, where
  71. LL gives an ISO 639 two-letter code identifying the language.  Unless
  72. translations have been forbidden at `configure' time by using the
  73. `--disable-nls' switch, all available translations are installed
  74. together with the package.  However, the environment variable `LINGUAS'
  75. may be set, prior to configuration, to limit the installed set.
  76. `LINGUAS' should then contain a space separated list of two-letter
  77. codes, stating which languages are allowed.
  78. Using This Package
  79. ==================
  80.    As a user, if your language has been installed for this package, you
  81. only have to set the `LANG' environment variable to the appropriate
  82. `LL_CC' combination.  Here `LL' is an ISO 639 two-letter language code,
  83. and `CC' is an ISO 3166 two-letter country code.  For example, let's
  84. suppose that you speak German and live in Germany.  At the shell
  85. prompt, merely execute `setenv LANG de_DE' (in `csh'),
  86. `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
  87. This can be done from your `.login' or `.profile' file, once and for
  88. all.
  89.    You might think that the country code specification is redundant.
  90. But in fact, some languages have dialects in different countries.  For
  91. example, `de_AT' is used for Austria, and `pt_BR' for Brazil.  The
  92. country code serves to distinguish the dialects.
  93.    The locale naming convention of `LL_CC', with `LL' denoting the
  94. language and `CC' denoting the country, is the one use on systems based
  95. on GNU libc.  On other systems, some variations of this scheme are
  96. used, such as `LL' or `LL_CC.ENCODING'.  You can get the list of
  97. locales supported by your system for your country by running the command
  98. `locale -a | grep '^LL''.
  99.    Not all programs have translations for all languages.  By default, an
  100. English message is shown in place of a nonexistent translation.  If you
  101. understand other languages, you can set up a priority list of languages.
  102. This is done through a different environment variable, called
  103. `LANGUAGE'.  GNU `gettext' gives preference to `LANGUAGE' over `LANG'
  104. for the purpose of message handling, but you still need to have `LANG'
  105. set to the primary language; this is required by other parts of the
  106. system libraries.  For example, some Swedish users who would rather
  107. read translations in German than English for when Swedish is not
  108. available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
  109.    In the `LANGUAGE' environment variable, but not in the `LANG'
  110. environment variable, `LL_CC' combinations can be abbreviated as `LL'
  111. to denote the language's main dialect.  For example, `de' is equivalent
  112. to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
  113. (Portuguese as spoken in Portugal) in this context.
  114. Translating Teams
  115. =================
  116.    For the Free Translation Project to be a success, we need interested
  117. people who like their own language and write it well, and who are also
  118. able to synergize with other translators speaking the same language.
  119. Each translation team has its own mailing list.  The up-to-date list of
  120. teams can be found at the Free Translation Project's homepage,
  121. `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams"
  122. area.
  123.    If you'd like to volunteer to _work_ at translating messages, you
  124. should become a member of the translating team for your own language.
  125. The subscribing address is _not_ the same as the list itself, it has
  126. `-request' appended.  For example, speakers of Swedish can send a
  127. message to `sv-request@li.org', having this message body:
  128.      subscribe
  129.    Keep in mind that team members are expected to participate
  130. _actively_ in translations, or at solving translational difficulties,
  131. rather than merely lurking around.  If your team does not exist yet and
  132. you want to start one, or if you are unsure about what to do or how to
  133. get started, please write to `translation@iro.umontreal.ca' to reach the
  134. coordinator for all translator teams.
  135.    The English team is special.  It works at improving and uniformizing
  136. the terminology in use.  Proven linguistic skill are praised more than
  137. programming skill, here.
  138. Available Packages
  139. ==================
  140.    Languages are not equally supported in all packages.  The following
  141. matrix shows the current state of internationalization, as of August
  142. 2002.  The matrix shows, in regard of each package, for which languages
  143. PO files have been submitted to translation coordination, with a
  144. translation percentage of at least 50%.
  145.      Ready PO files    be bg ca cs da de el en eo es et fi fr
  146.                      +----------------------------------------+
  147.      a2ps            |             [] []             []    [] |
  148.      ap-utils        |                                        |
  149.      bash            |                []       [] []       [] |
  150.      bfd             |                            []       [] |
  151.      binutils        |                            []       [] |
  152.      bison           |                []          [] []    [] |
  153.      clisp           |                                        |
  154.      clisp           |                []    []    []       [] |
  155.      clisplow        |                                        |
  156.      cpio            |             [] []          []       [] |
  157.      darkstat        |             ()                         |
  158.      diffutils       |          [] [] []       [] []       [] |
  159.      enscript        |                []                   [] |
  160.      error           |                []          []       [] |
  161.      fetchmail       |       [] () [] []          []       () |
  162.      fileutils       |             [] []          [] []    [] |
  163.      findutils       |             [] []       [] [] []    [] |
  164.      flex            |       []    [] []          []       [] |
  165.      gas             |                            []       [] |
  166.      gawk            |                []          []       [] |
  167.      gcal            |       []                            [] |
  168.      gcc             |                            []       [] |
  169.      gettext         |       []    [] []          []       [] |
  170.      gnupg           |       []       [] []    [] [] []    [] |
  171.      gprof           |                            []       [] |
  172.      gpsdrive        |             () ()    ()    ()       () |
  173.      grep            |    [] []       [] []       [] [] [] [] |
  174.      gretl           |                            []          |
  175.      gthumb          |                ()          ()       () |
  176.      hello           |       []    [] [] []    [] [] [] [] [] |
  177.      id-utils        |             [] []                   [] |
  178.      indent          |       []       []       []    []    [] |
  179.      jpilot          |          () [] []                   [] |
  180.      jwhois          |                            []       [] |
  181.      kbd             |                []          []       [] |
  182.      ld              |                            []       [] |
  183.      libc            |       [] [] [] [] []       []    [] [] |
  184.      libiconv        |       []       []       [] []          |
  185.      lifelines       |                ()                   () |
  186.      lilypond        |             []                      [] |
  187.      lingoteach      |                         []          [] |
  188.      lingoteach_lessons|                ()          ()          |
  189.      lynx            |       [] [] [] []             []       |
  190.      m4              |          [] [] [] []                [] |
  191.      make            |             [] []          []       [] |
  192.      man-db          |       [] () () []          ()       () |
  193.      mysecretdiary   |                []          []       [] |
  194.      nano            |       [] () [] []          []       [] |
  195.      nano_1_0        |       [] () [] []          []       [] |
  196.      opcodes         |             []             []       [] |
  197.      parted          |       []    [] []          []       [] |
  198.      ptx             |             [] []       [] [] [] [] [] |
  199.      python          |                                        |
  200.      recode          |             [] [] []    [] []       [] |
  201.      sed             |       [] [] [] [] []    [] [] [] [] [] |
  202.      sh-utils        |                []          [] []    [] |
  203.      sharutils       |          [] [] [] []       [] []    [] |
  204.      sketch          |                ()          []       () |
  205.      soundtracker    |                []          []       [] |
  206.      sp              |                []                      |
  207.      tar             |          [] [] []          [] []    [] |
  208.      texinfo         |          [] [] []       []          [] |
  209.      textutils       |       []    [] []          []       [] |
  210.      util-linux      |          [] [] []          [] []    [] |
  211.      vorbis-tools    |                                     [] |
  212.      wastesedge      |                                        |
  213.      wdiff           |       []    [] []          [] []    [] |
  214.      wget            |    [] [] [] [] [] []       [] [] [] [] |
  215.                      +----------------------------------------+
  216.                        be bg ca cs da de el en eo es et fi fr
  217.                         0  2 19 10 30 44  9  1 12 44 17  6 53
  218.      
  219.                        gl he hr hu id it ja ko lv nb nl nn
  220.                      +-------------------------------------+
  221.      a2ps            |                ()    ()       []    |
  222.      ap-utils        |                                     |
  223.      bash            |          []                         |
  224.      bfd             |                   []                |
  225.      binutils        |                   []                |
  226.      bison           |       []       [] []          []    |
  227.      clisp           |                                     |
  228.      clisp           |                               []    |
  229.      clisplow        |                                     |
  230.      cpio            | []       []          []       []    |
  231.      darkstat        |                                     |
  232.      diffutils       | [] []    [] []    []                |
  233.      enscript        |       []                      []    |
  234.      error           |          []                         |
  235.      fetchmail       |                   []                |
  236.      fileutils       |          []    [] []                |
  237.      findutils       | []    [] [] [] [] [] []       []    |
  238.      flex            |                      []             |
  239.      gas             |                                     |
  240.      gawk            |    []                               |
  241.      gcal            |                                     |
  242.      gcc             |                   []                |
  243.      gettext         |                   [] []             |
  244.      gnupg           | []          [] [] []                |
  245.      gprof           |             []                      |
  246.      gpsdrive        |          []    ()             ()    |
  247.      grep            | [] [] [] [] [] [] []                |
  248.      gretl           |                                     |
  249.      gthumb          |                () ()                |
  250.      hello           | [] [] [] [] [] [] [] [] [] [] [] [] |
  251.      id-utils        |          []                   []    |
  252.      indent          | []       []       []          []    |
  253.      jpilot          |                   ()          ()    |
  254.      jwhois          |          [] []                      |
  255.      kbd             |                                     |
  256.      ld              |                                     |
  257.      libc            | []                [] []    []       |
  258.      libiconv        | []    [] []                         |
  259.      lifelines       |                                     |
  260.      lilypond        |                               []    |
  261.      lingoteach      |          []                         |
  262.      lingoteach_lessons|                                     |
  263.      lynx            |          []    [] []          []    |
  264.      m4              | []          []    []          []    |
  265.      make            | [] [] []          [] []       []    |
  266.      man-db          |                () ()                |
  267.      mysecretdiary   |             []                      |
  268.      nano            | []          [] []             []    |
  269.      nano_1_0        | []          [] []          []    [] |
  270.      opcodes         |             []                []    |
  271.      parted          | []                []             [] |
  272.      ptx             | []       [] []             [] []    |
  273.      python          |                                     |
  274.      recode          | [] []          []                   |
  275.      sed             | [] [] []    [] [] [] []       []    |
  276.      sh-utils        |                [] []       []       |
  277.      sharutils       | []                []          []    |
  278.      sketch          |                ()                   |
  279.      soundtracker    | []    []                            |
  280.      sp              |                                     |
  281.      tar             | []    []    [] [] []       []       |
  282.      texinfo         |    [] []          []                |
  283.      textutils       | []                [] []    []       |
  284.      util-linux      |                () []                |
  285.      vorbis-tools    |          []                         |
  286.      wastesedge      |                                     |
  287.      wdiff           | []       [] []                      |
  288.      wget            | [] [] [] []       []          []    |
  289.                      +-------------------------------------+
  290.                        gl he hr hu id it ja ko lv nb nl nn
  291.                        23  9 12 19 16 13 26  9  1  7 19  3
  292.      
  293.                        no pl pt pt_BR ru sk sl sv tr uk zh_CN zh_TW
  294.                      +----------------------------------------------+
  295.      a2ps            | () () ()  []   []    [] [] []                | 10
  296.      ap-utils        |                               ()             |  0
  297.      bash            |           []                                 |  6
  298.      bfd             |                         [] []                |  5
  299.      binutils        |                         [] []                |  5
  300.      bison           |           []   []       [] []                | 12
  301.      clisp           |                                              |  0
  302.      clisp           |                                              |  5
  303.      clisplow        |                                              |  0
  304.      cpio            |    []     []   []       []                   | 12
  305.      darkstat        |           []            []        ()    ()   |  2
  306.      diffutils       |    []     []   []       [] []           []   | 17
  307.      enscript        |           []   []       [] []                |  8
  308.      error           |                   []       []           []   |  7
  309.      fetchmail       |    ()     ()               []                |  6
  310.      fileutils       |                []    [] [] []     []    []   | 14
  311.      findutils       |    []     []   [] [] [] [] []                | 21
  312.      flex            |                []       [] []                |  9
  313.      gas             |                            []                |  3
  314.      gawk            |                         [] []                |  6
  315.      gcal            |                         [] []                |  4
  316.      gcc             |                            []                |  4
  317.      gettext         |                [] [] [] [] []           []   | 13
  318.      gnupg           |    []                   [] []                | 14
  319.      gprof           |                         [] []                |  5
  320.      gpsdrive        |                   []    []                   |  3
  321.      grep            |    []     []   []    []    []                | 20
  322.      gretl           |                                              |  1
  323.      gthumb          |           ()   ()       []                   |  1
  324.      hello           | [] []          [] []    [] [] []             | 28
  325.      id-utils        |           []   []       [] []                |  9
  326.      indent          |           []   [] []    [] []                | 14
  327.      jpilot          | ()                      () []           []   |  5
  328.      jwhois          |           []   ()       () []           []   |  7
  329.      kbd             |                         [] []                |  5
  330.      ld              |                         [] []                |  4
  331.      libc            | [] []     []      []    [] []                | 18
  332.      libiconv        |           []   [] []    [] []                | 12
  333.      lifelines       |                         []                   |  1
  334.      lilypond        |                         []                   |  4
  335.      lingoteach      |           []            []                   |  5
  336.      lingoteach_lessons|                                   ()         |  0
  337.      lynx            |           []   []       [] []                | 13
  338.      m4              |    []     []   []       []                   | 13
  339.      make            |    []     []   []       [] []                | 15
  340.      man-db          |                                              |  3
  341.      mysecretdiary   |           []            [] []                |  7
  342.      nano            |    []          []       []    []             | 13
  343.      nano_1_0        |    []          []       []    []             | 14
  344.      opcodes         |           []            [] []                |  8
  345.      parted          |       []  []            [] []                | 12
  346.      ptx             | [] [] []  []   []       [] []                | 19
  347.      python          |                                              |  0
  348.      recode          |    []     []   []    [] [] []                | 15
  349.      sed             |           []   [] [] [] [] []                | 24
  350.      sh-utils        |                []          []                |  9
  351.      sharutils       |                []       [] []           []   | 14
  352.      sketch          |           []   ()       []                   |  4
  353.      soundtracker    |                         []                   |  6
  354.      sp              |                                              |  1
  355.      tar             | [] []     []      [] [] [] []                | 19
  356.      texinfo         |                []       []                   | 10
  357.      textutils       |                []    [] [] []           []   | 14
  358.      util-linux      |           []            [] []                | 10
  359.      vorbis-tools    |                         []                   |  3
  360.      wastesedge      |                                              |  0
  361.      wdiff           |           []   [] []    [] []                | 14
  362.      wget            |    []          [] [] [] [] [] []        []   | 24
  363.                      +----------------------------------------------+
  364.        37 teams        no pl pt pt_BR ru sk sl sv tr uk zh_CN zh_TW
  365.        68 domains       4 15  2  28   28 12 10 49 43  4   1     9    609
  366.    Some counters in the preceding matrix are higher than the number of
  367. visible blocks let us expect.  This is because a few extra PO files are
  368. used for implementing regional variants of languages, or language
  369. dialects.
  370.    For a PO file in the matrix above to be effective, the package to
  371. which it applies should also have been internationalized and
  372. distributed as such by its maintainer.  There might be an observable
  373. lag between the mere existence a PO file and its wide availability in a
  374. distribution.
  375.    If August 2002 seems to be old, you may fetch a more recent copy of
  376. this `ABOUT-NLS' file on most GNU archive sites.  The most up-to-date
  377. matrix with full percentage details can be found at
  378. `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'.
  379. Using `gettext' in new packages
  380. ===============================
  381.    If you are writing a freely available program and want to
  382. internationalize it you are welcome to use GNU `gettext' in your
  383. package.  Of course you have to respect the GNU Library General Public
  384. License which covers the use of the GNU `gettext' library.  This means
  385. in particular that even non-free programs can use `libintl' as a shared
  386. library, whereas only free software can use `libintl' as a static
  387. library or use modified versions of `libintl'.
  388.    Once the sources are changed appropriately and the setup can handle
  389. to use of `gettext' the only thing missing are the translations.  The
  390. Free Translation Project is also available for packages which are not
  391. developed inside the GNU project.  Therefore the information given above
  392. applies also for every other Free Software Project.  Contact
  393. `translation@iro.umontreal.ca' to make the `.pot' files available to
  394. the translation teams.