haskell-gettext: GetText runtime library implementation in pure Haskell

[ bsd3, library, program, text ] [ Propose Tags ]

This package is pure Haskell implementation of GetText library runtime. It allows you to:

  • Load GNU Gettext binary catalog files (`.mo`, `.gmo`).

  • Execute lookups for messages in catalog (gettext and ngettext functions).

Support for plural form selection expressions is fully implemented.

This package is however relatively low-level and may be not very nice to use in applications. So it can be used as a backend for some more user-friendly "translation framework".

This package has the following advantages comparing to hgettext:

  • It is easier to build it on different platforms, since it has no dependency on C code;

  • It does not depend on additional C libraries in runtime;

  • And probably the most important: this library does not use global process-level variables to store "current catalog" (current locale), the catalog should be specified for each call of translation function. So it can be much simpler to use this library for example in web applications.


[Skip to Readme]

Modules

[Last Documentation]

  • Data
    • Data.Gettext

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2.0
Dependencies base (>4 && <5), binary (>=0.7), bytestring (>=0.10), bytestring-trie (>=0.2), containers (>=0.5), filepath (>=1.4), haskell-src-exts (>=1.19.1), mtl (>=2.2.1), old-locale (>=1.0), parsec (>=3.1.11), text (>=1.2), time (>=1.5.0), transformers (>=0.3), uniplate (>=1.6.12) [details]
License BSD-3-Clause
Author IlyaPortnov
Maintainer portnov84@rambler.ru
Category Text
Source repo head: git clone https://github.com/portnov/haskell-gettext.git
Uploaded by IlyaPortnov at 2017-06-02T16:15:14Z
Distributions NixOS:0.1.2.0
Reverse Dependencies 3 direct, 4 indirect [details]
Executables hgettext
Downloads 2138 total (21 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-06-02 [all 3 reports]

Readme for haskell-gettext-0.1.0.0

[back to package description]

haskell-gettext README

This package is pure Haskell implementation of GetText library runtime. It allows you to:

  • Load GNU Gettext binary catalog files (.mo, .gmo).
  • Execute lookups for messages in catalog (gettext and ngettext functions).

Support for plural form selection expressions is fully implemented.

This package is however relatively low-level and may be not very nice to use in applications. So it can be used as a backend for some more user-friendly "translation framework".

This package has the following advantages comparing to hgettext:

  • It is easier to build it on different platforms, since it has no dependency on C code;
  • It does not depend on additional C libraries in runtime;
  • And probably the most important: this library does not use global process-level variables to store "current catalog" (current locale), the catalog should be specified for each call of translation function. So it can be much simpler to use this library for example in web applications.