CL-GETTEXT - A Common Lisp binding to GNU Gettext.


 

Abstract

The code is licenced under the LLGPL

Download shortcut: http://github.com/krzysz00/cl-gettext.


 

Contents

  1. Download
  2. The CL-GETTEXT dictionary
    1. bind-textdomain-codeset
    2. bindtextdomain
    3. gettext
    4. init-gettext
    5. lc-address
    6. lc-all
    7. lc-collate
    8. lc-ctype
    9. lc-identification
    10. lc-measurement
    11. lc-messages
    12. lc-monetary
    13. lc-name
    14. lc-numeric
    15. lc-paper
    16. lc-telephone
    17. lc-time
    18. localeconv
    19. ngettext
    20. setlocale
    21. textdomain
    22. _
    23. _noop
  3. Acknowledgements

 

Download

CL-GETTEXT together with this documentation can be downloaded from http://github.com/krzysz00/cl-gettext. The current version is 0.1.
 

The CL-GETTEXT dictionary


[Function]
bind-textdomain-codeset __domainname __codeset => result


Set the encoding for the strings stored in `__domain'. You normally don't need to call this, as the locale contains this information a;ready.


[Function]
bindtextdomain __domainname __dirname => result


Specify what directory the `textdomain' resides under. On Linux systems, this is usually "/usr/share/locale".


[Function]
gettext __msgid => result


Get the translation (if any) of `__msgid', which is a string


[Function]
init-gettext textdomain directory &optional locales => result


Wrapper for the series of calls needed to initialize gettext. `textdomain' holds the $foo part of $foo.mo . `directory' is where the .mo files will be stores. `locales' is a list of locale categories to initialize with `setlocale' if `lc-all' doesn't work for you.


[Constant]
lc-address


A locale category.


[Constant]
lc-all


A locale category. This category is the one which is most often used (and the default when initializing `cl-gettext')


[Constant]
lc-collate


A locale category.


[Constant]
lc-ctype


A locale category.


[Constant]
lc-identification


A locale category.


[Constant]
lc-measurement


A locale category.


[Constant]
lc-messages


A locale category.


[Constant]
lc-monetary


A locale category.


[Constant]
lc-name


A locale category.


[Constant]
lc-numeric


A locale category.


[Constant]
lc-paper


A locale category.


[Constant]
lc-telephone


A locale category.


[Constant]
lc-time


A locale category.


[Function]
localeconv => result


Returns an `lconv' structure with the information applicable for the current locale.


[Function]
ngettext __msgid1 __msgid2 __n => result


The plural version of `gettext' The first string should be the return value for n == 1, and the second string the value for n != 1. The third argument is n. Use this instead of an `if' because other languages have more or less than two branches for plurals, and this function allows translators to specify the plurals for their language.


[Function]
setlocale __category __locale => result


Set a locale category to the locale given in `__locale'. If __locale is "", the current system setting will be used.


[Function]
textdomain __domainname => result


Set the textdomain for the application. The textdomain is the name (before the dot) of your project's .mo files


[Macro]
_ string => result


Shorthand for `(gettext string)'


[Macro]
_noop string => result


A noop macro to mark translatable strings in places where the call to `gettext' would be evaluated too early. See the C documentation for details on this.

 

Acknowledgements

This documentation was prepared with DOCUMENTATION-TEMPLATE.

BACK TO REPOSITORY