Changes between Version 2 and Version 3 of Stacomi gettext


Ignore:
Timestamp:
Jan 24, 2017 1:40:34 PM (8 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Stacomi gettext

    v2 v3  
    55---------- 
    66 
     7téléchargement du logiciel 
    78https://www.gnu.org/software/gettext/ 
     9 
     10 
     11Dans R 
     12 
     13Utilisation de gettext 
     14 
     15Traduction des messages stop, warning et message + tout message encapsulé dans gettext et gettextf.  
     16 
     17Outils pour préparer : 
     18{{{ 
     19#!R 
     20tools::xgettext2pot  
     21tools::xgettext# extracts the actual calls  
     22}}} 
     23 xgettext extracts the actual calls and so is more useful when tidying up error messages. 
     24 
     25The R function ngettext provides an interface to the C function of the same name: see example in the previous section. It is safest to use domain="R-pkg" explicitly in calls to ngettext, and necessary for earlier versions of R unless they are calls directly from a function in the package.